From 776697dd349e4d5644a72fd293d8e7e436e6184c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 8 Apr 2020 13:43:59 -0400 Subject: [PATCH] pan/midgard: Remove unused max_varying variable I don't know why this was here. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/midgard_compile.c | 2 -- 1 file changed, 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); } } -- 2.30.2