[Mesa-dev] [PATCH 6/7] radv: remove radv_shader_context::num_output_{clips, culls}

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


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

diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c
index 069fb53b68..b2411fe38b 100644
--- a/src/amd/vulkan/radv_nir_to_llvm.c
+++ b/src/amd/vulkan/radv_nir_to_llvm.c
@@ -91,8 +91,6 @@ struct radv_shader_context {
 
 	uint64_t input_mask;
 	uint64_t output_mask;
-	uint8_t num_output_clips;
-	uint8_t num_output_culls;
 
 	bool is_gs_copy_shader;
 	LLVMValueRef gs_next_vertex;
@@ -3289,8 +3287,6 @@ LLVMModuleRef ac_translate_nir_to_llvm(struct ac_llvm_compiler *ac_llvm,
 	for(int i = 0; i < shader_count; ++i) {
 		ctx.stage = shaders[i]->info.stage;
 		ctx.output_mask = 0;
-		ctx.num_output_clips = shaders[i]->info.clip_distance_array_size;
-		ctx.num_output_culls = shaders[i]->info.cull_distance_array_size;
 
 		if (shaders[i]->info.stage == MESA_SHADER_GEOMETRY) {
 			ctx.gs_next_vertex = ac_build_alloca(&ctx.ac, ctx.ac.i32, "gs_next_vertex");
@@ -3683,9 +3679,6 @@ radv_compile_gs_copy_shader(struct ac_llvm_compiler *ac_llvm,
 	ctx.gs_max_out_vertices = geom_shader->info.gs.vertices_out;
 	ac_setup_rings(&ctx);
 
-	ctx.num_output_clips = geom_shader->info.clip_distance_array_size;
-	ctx.num_output_culls = geom_shader->info.cull_distance_array_size;
-
 	nir_foreach_variable(variable, &geom_shader->outputs) {
 		scan_shader_output_decl(&ctx, variable, geom_shader, MESA_SHADER_VERTEX);
 		ac_handle_shader_output_decl(&ctx.ac, &ctx.abi, geom_shader,
-- 
2.18.0



More information about the mesa-dev mailing list