Mesa (main): freedreno/ir3: remove unused actual_in counting

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 23 17:48:12 UTC 2021


Module: Mesa
Branch: main
Commit: be048ec1122bf9fcd899a9a04675e4b9fca16342
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=be048ec1122bf9fcd899a9a04675e4b9fca16342

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sat Nov 20 18:48:34 2021 -0500

freedreno/ir3: remove unused actual_in counting

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13918>

---

 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;
 



More information about the mesa-commit mailing list