diff options
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r-- | src/panfrost/midgard/midgard_compile.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 954f073af7c..6986de29950 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -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); } } |