summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-02-09 13:54:25 +0100
committerSamuel Pitoiset <[email protected]>2018-02-12 11:54:17 +0100
commite32f3749443183e92e3567214af41aceb60eaaeb (patch)
treecc8465a53e83c27fc8cd302491f6f417f4f36eb1 /src/amd/common
parent1e69db003da22c9068e5fd08bcf217442da5712c (diff)
ac: remove unused parameters in abi::load_tess_coord()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/ac_nir_to_llvm.c5
-rw-r--r--src/amd/common/ac_shader_abi.h4
2 files changed, 3 insertions, 6 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index dff9fd2ee34..fe83864548e 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -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);
diff --git a/src/amd/common/ac_shader_abi.h b/src/amd/common/ac_shader_abi.h
index c89987c35f8..290014ad238 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);