diff options
author | Dave Airlie <[email protected]> | 2017-03-30 08:51:31 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-04-01 07:14:39 +1000 |
commit | 6279646306dcd2c18a1af7c63168247cd8e47e32 (patch) | |
tree | 724b89b1883b889dc6edaafce3fe41ce52d9e44d | |
parent | a58d03a5a210098e6cd8bd3559538cf21a4b6d23 (diff) |
radv: drop unneeded start
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 4 |
1 files 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 91e2a1afbb5..a83d8562447 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); } } |