summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-08-30 10:01:26 +0200
committerSamuel Pitoiset <[email protected]>2018-08-31 17:34:41 +0200
commit732679c25eb470837e21dfc91812687d5698964d (patch)
tree9b73619ea6cddab63a4fe6fc7e2df5aa0cdef21c /src/amd
parent730c704f862b7a2455400c7255d7345ee728e659 (diff)
radv: do not recompute the output usage mask for clipdist twice
The shader info pass takes care of this now. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_nir_to_llvm.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c
index d7cd8cc0699..17c76332e18 100644
--- a/src/amd/vulkan/radv_nir_to_llvm.c
+++ b/src/amd/vulkan/radv_nir_to_llvm.c
@@ -1741,7 +1741,6 @@ visit_emit_vertex(struct ac_shader_abi *abi, unsigned stream, LLVMValueRef *addr
length = ctx->num_output_clips + ctx->num_output_culls;
if (length > 4)
slot_inc = 2;
- output_usage_mask = (1 << length) - 1;
}
for (unsigned j = 0; j < length; j++) {
@@ -2711,10 +2710,8 @@ handle_es_outputs_post(struct radv_shader_context *ctx,
ctx->shader_info->info.tes.output_usage_mask[i];
}
- if (i == VARYING_SLOT_CLIP_DIST0) {
+ if (i == VARYING_SLOT_CLIP_DIST0)
length = ctx->num_output_clips + ctx->num_output_culls;
- output_usage_mask = (1 << length) - 1;
- }
param_index = shader_io_get_unique_index(i);