aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-08 13:43:59 -0400
committerTomeu Vizoso <[email protected]>2020-04-10 16:53:50 +0200
commit776697dd349e4d5644a72fd293d8e7e436e6184c (patch)
treec5004071f61f7262f835c97c77ef0680be792292 /src/panfrost/midgard
parent90e02db9a13527cc5c64d83201614181cc95c131 (diff)
pan/midgard: Remove unused max_varying variable
I don't know why this was here. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4505>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_compile.c2
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);
}
}