[Mesa-dev] [PATCH 3/7] radv: do not recompute the output usage mask for clipdist twice

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Aug 30 09:01:14 UTC 2018


The shader info pass takes care of this now.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_nir_to_llvm.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c
index d7cd8cc069..17c76332e1 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);
 
-- 
2.18.0



More information about the mesa-dev mailing list