Module: Mesa
Branch: master
Commit: e7d606289c648969f3a13d98d4852b4090469bb8
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e7d606289c648969f3a13d98d4852b4090469bb8

Author: Marek Olšák <[email protected]>
Date:   Tue Sep  1 17:04:24 2020 -0400

radeonsi: remove swizzle == ~0 dead code in si_llvm_load_input_gs

Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6623>

---

 src/gallium/drivers/radeonsi/si_shader_llvm_gs.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_shader_llvm_gs.c 
b/src/gallium/drivers/radeonsi/si_shader_llvm_gs.c
index 3bbb18019f3..9337b28a9aa 100644
--- a/src/gallium/drivers/radeonsi/si_shader_llvm_gs.c
+++ b/src/gallium/drivers/radeonsi/si_shader_llvm_gs.c
@@ -88,15 +88,6 @@ static LLVMValueRef si_llvm_load_input_gs(struct 
ac_shader_abi *abi, unsigned in
    }
 
    /* GFX6: input load from the ESGS ring in memory. */
-   if (swizzle == ~0) {
-      LLVMValueRef values[4];
-      unsigned chan;
-      for (chan = 0; chan < 4; chan++) {
-         values[chan] = si_llvm_load_input_gs(abi, input_index, 
vtx_offset_param, type, chan);
-      }
-      return ac_build_gather_values(&ctx->ac, values, 4);
-   }
-
    /* Get the vertex offset parameter on GFX6. */
    LLVMValueRef gs_vtx_offset = ac_get_arg(&ctx->ac, 
ctx->gs_vtx_offset[vtx_offset_param]);
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to