radv: drop unneeded start
authorDave Airlie <airlied@redhat.com>
Thu, 30 Mar 2017 07:51:31 +0000 (08:51 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 31 Mar 2017 21:14:39 +0000 (07:14 +1000)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c

index 91e2a1afbb553dd541e999bcb0930c82e2c704c9..a83d85624478cf74152f09568618b0b818d59457 100644 (file)
@@ -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);
                }
        }