[Mesa-dev] [PATCH 08/18] ac: remove unused parameters in abi::load_tess_coord()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Feb 9 12:54:25 UTC 2018


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/common/ac_nir_to_llvm.c          | 5 ++---
 src/amd/common/ac_shader_abi.h           | 4 +---
 src/gallium/drivers/radeonsi/si_shader.c | 6 ++----
 3 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 5d08e36c2d..88e3b3f68b 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -4226,8 +4226,7 @@ visit_end_primitive(struct ac_shader_abi *abi, unsigned stream)
 }
 
 static LLVMValueRef
-load_tess_coord(struct ac_shader_abi *abi, LLVMTypeRef type,
-		unsigned num_components)
+load_tess_coord(struct ac_shader_abi *abi)
 {
 	struct nir_to_llvm_context *ctx = nir_to_llvm_context_from_abi(abi);
 
@@ -4486,7 +4485,7 @@ static void visit_intrinsic(struct ac_nir_context *ctx,
 		ctx->abi->emit_primitive(ctx->abi, nir_intrinsic_stream_id(instr));
 		break;
 	case nir_intrinsic_load_tess_coord:
-		result = ctx->abi->load_tess_coord(ctx->abi, NULL, 0);
+		result = ctx->abi->load_tess_coord(ctx->abi);
 		break;
 	case nir_intrinsic_load_tess_level_outer:
 		result = ctx->abi->load_tess_level(ctx->abi, VARYING_SLOT_TESS_LEVEL_OUTER);
diff --git a/src/amd/common/ac_shader_abi.h b/src/amd/common/ac_shader_abi.h
index c89987c35f..290014ad23 100644
--- a/src/amd/common/ac_shader_abi.h
+++ b/src/amd/common/ac_shader_abi.h
@@ -115,9 +115,7 @@ struct ac_shader_abi {
 				  bool is_compact,
 				  unsigned writemask);
 
-	LLVMValueRef (*load_tess_coord)(struct ac_shader_abi *abi,
-					LLVMTypeRef type,
-					unsigned num_components);
+	LLVMValueRef (*load_tess_coord)(struct ac_shader_abi *abi);
 
 	LLVMValueRef (*load_patch_vertices_in)(struct ac_shader_abi *abi);
 
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index ca43530d92..9340360376 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1939,9 +1939,7 @@ static LLVMValueRef load_sample_mask_in(struct ac_shader_abi *abi)
 	return abi->sample_coverage;
 }
 
-static LLVMValueRef si_load_tess_coord(struct ac_shader_abi *abi,
-				       LLVMTypeRef type,
-				       unsigned num_components)
+static LLVMValueRef si_load_tess_coord(struct ac_shader_abi *abi)
 {
 	struct si_shader_context *ctx = si_shader_context_from_abi(abi);
 	struct lp_build_context *bld = &ctx->bld_base.base;
@@ -2116,7 +2114,7 @@ void si_load_system_value(struct si_shader_context *ctx,
 		break;
 
 	case TGSI_SEMANTIC_TESSCOORD:
-		value = si_load_tess_coord(&ctx->abi, NULL, 4);
+		value = si_load_tess_coord(&ctx->abi);
 		break;
 
 	case TGSI_SEMANTIC_VERTICESIN:
-- 
2.16.1



More information about the mesa-dev mailing list