From be048ec1122bf9fcd899a9a04675e4b9fca16342 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sat, 20 Nov 2021 18:48:34 -0500 Subject: [PATCH] freedreno/ir3: remove unused actual_in counting Signed-off-by: Ilia Mirkin Part-of: --- src/freedreno/ir3/ir3_compiler_nir.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 98b6c1a9bdd..ee2b327a9d5 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -3551,7 +3551,6 @@ pack_inlocs(struct ir3_context *ctx) * Second Step: reassign varying inloc/slots: */ - unsigned actual_in = 0; unsigned inloc = 0; /* for clip+cull distances, unused components can't be eliminated because @@ -3585,7 +3584,6 @@ pack_inlocs(struct ir3_context *ctx) continue; compmask |= (1 << j); - actual_in++; maxcomp = j + 1; /* at this point, since used_components[i] mask is only @@ -4448,7 +4446,7 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler, so->branchstack = ctx->max_stack; - /* Note that actual_in counts inputs that are not bary.f'd for FS: */ + /* Note that max_bary counts inputs that are not bary.f'd for FS: */ if (so->type == MESA_SHADER_FRAGMENT) so->total_in = max_bary + 1;