From: Alyssa Rosenzweig Date: Wed, 8 Apr 2020 17:43:59 +0000 (-0400) Subject: pan/midgard: Remove unused max_varying variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=776697dd349e4d5644a72fd293d8e7e436e6184c;p=mesa.git pan/midgard: Remove unused max_varying variable I don't know why this was here. Signed-off-by: Alyssa Rosenzweig Part-of: --- 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); } }