ac: remove unused parameters in abi::load_tess_coord()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 9 Feb 2018 12:54:25 +0000 (13:54 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 12 Feb 2018 10:54:17 +0000 (11:54 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_shader_abi.h
src/gallium/drivers/radeonsi/si_shader.c

index dff9fd2ee346a21b9fb297d5eb3a847f1175e7ba..fe83864548e8aa45cb21c4c77ba47cc84b9b8a4a 100644 (file)
@@ -4227,8 +4227,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);
 
@@ -4487,7 +4486,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);
index c89987c35f8b41fd4c3ecc5d48f906d05f76c149..290014ad238960611259daefa31ff3c25e2ccc22 100644 (file)
@@ -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);
 
index ca43530d92469a619769020610f4c51de02c08af..9340360376d029b68b5f0851a18507cfc612d5de 100644 (file)
@@ -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: