From: Dave Airlie <airl...@redhat.com>

---
 src/amd/common/ac_nir_to_llvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 8e77049..16c1eae 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -4559,7 +4559,7 @@ handle_es_outputs_post(struct nir_to_llvm_context *ctx,
                LLVMValueRef *out_ptr = &ctx->outputs[i * 4];
                int param_index;
                int length = 4;
-               int start = 0;
+
                if (!(ctx->output_mask & (1ull << i)))
                        continue;
 
@@ -4579,7 +4579,7 @@ handle_es_outputs_post(struct nir_to_llvm_context *ctx,
                                               ctx->esgs_ring,
                                               out_val, 1,
                                               NULL, ctx->es2gs_offset,
-                                              (4 * param_index + j + start) * 
4,
+                                              (4 * param_index + j) * 4,
                                               1, 1, true, true);
                }
        }
-- 
2.9.3

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to