aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-11-12 13:54:22 -0800
committerRob Clark <[email protected]>2019-11-12 13:57:52 -0800
commit0f33c255d3e80fde0d8f0ec595593ba17f56deb8 (patch)
tree890576a47f373b3b9ce75912f6f5a3b65064caed
parentdf7a88dca3e85ad40e5313840aadce884b28bb8d (diff)
freedreno/ir3: remove unused parameter
Signed-off-by: Rob Clark <[email protected]>
-rw-r--r--src/freedreno/ir3/ir3_compiler_nir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c
index 58d515b1e22..eeaab5698b9 100644
--- a/src/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/freedreno/ir3/ir3_compiler_nir.c
@@ -62,7 +62,7 @@ create_indirect_load(struct ir3_context *ctx, unsigned arrsz, int n,
}
static struct ir3_instruction *
-create_input_compmask(struct ir3_context *ctx, unsigned n, unsigned compmask)
+create_input(struct ir3_context *ctx, unsigned compmask)
{
struct ir3_instruction *in;
@@ -1212,7 +1212,7 @@ create_sysval_input(struct ir3_context *ctx, gl_system_value slot,
unsigned compmask)
{
assert(compmask);
- struct ir3_instruction *sysval = create_input_compmask(ctx, 0, compmask);
+ struct ir3_instruction *sysval = create_input(ctx, compmask);
add_sysval_input_compmask(ctx, slot, compmask, sysval);
return sysval;
}
@@ -2717,7 +2717,7 @@ setup_input(struct ir3_context *ctx, nir_variable *in)
*/
assert(frac == 0);
- struct ir3_instruction *input = create_input_compmask(ctx, 0, (1 << ncomp) - 1);
+ struct ir3_instruction *input = create_input(ctx, (1 << ncomp) - 1);
struct ir3_instruction *components[ncomp];
input->input.inidx = n;
@@ -2969,7 +2969,7 @@ emit_instructions(struct ir3_context *ctx)
if (ctx->so->type == MESA_SHADER_FRAGMENT) {
struct ir3_instruction *xy[2];
- vcoord = create_input_compmask(ctx, 0, 0x3);
+ vcoord = create_input(ctx, 0x3);
ir3_split_dest(ctx->block, xy, vcoord, 0, 2);
ctx->ij_pixel = ir3_create_collect(ctx, xy, 2);