pan/midgard: Remove unused max_varying variable
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 8 Apr 2020 17:43:59 +0000 (13:43 -0400)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 10 Apr 2020 14:53:50 +0000 (16:53 +0200)
I don't know why this was here.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4505>

src/panfrost/midgard/midgard_compile.c

index 954f073af7c3ba0e44e6ee9e25833763d0e0ecc7..6986de29950645d45e0ea5e2be8cdce2bd2b7faf 100644 (file)
@@ -2648,7 +2648,6 @@ midgard_compile_shader_nir(nir_shader *nir, panfrost_program *program, bool is_b
         struct exec_list *varyings =
                         ctx->stage == MESA_SHADER_VERTEX ? &nir->outputs : &nir->inputs;
 
-        unsigned max_varying = 0;
         nir_foreach_variable(var, varyings) {
                 unsigned loc = var->data.driver_location;
                 unsigned sz = glsl_type_size(var->type, FALSE);
@@ -2656,7 +2655,6 @@ midgard_compile_shader_nir(nir_shader *nir, panfrost_program *program, bool is_b
                 for (int c = 0; c < sz; ++c) {
                         program->varyings[loc + c] = var->data.location + c;
                         program->varying_type[loc + c] = pan_format_from_glsl(var->type);
-                        max_varying = MAX2(max_varying, loc + c);
                 }
         }