From ef01a9cf3b465889fe8084732264dad0580270c3 Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Wed, 3 May 2023 01:57:28 +0200 Subject: [PATCH] mesa/main: drop unused variable Fixes: c5b3d488f9be ("mesa/main: make ffvertex output nir") Reviewed-by: Erik Faye-Lund Signed-off-by: David Heidelberg Part-of: --- src/mesa/main/ffvertex_prog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/main/ffvertex_prog.c b/src/mesa/main/ffvertex_prog.c index d2d8e30cf69..a8afe376c0c 100644 --- a/src/mesa/main/ffvertex_prog.c +++ b/src/mesa/main/ffvertex_prog.c @@ -816,7 +816,7 @@ static void build_lighting( struct tnl_program *p ) { const GLboolean twoside = p->state->light_twoside; const GLboolean separate = p->state->separate_specular; - GLuint nr_lights = 0, count = 0; + GLuint nr_lights = 0; nir_ssa_def *lit = NULL; nir_ssa_def *dots = nir_imm_zero(p->b, 4, 32); nir_ssa_def *normal = get_transformed_normal(p); @@ -941,7 +941,6 @@ static void build_lighting( struct tnl_program *p ) nir_ssa_def *att = NULL, *VPpli = NULL; nir_ssa_def *dist = NULL; - count++; if (p->state->unit[i].light_eyepos3_is_zero) { VPpli = load_state_var(p, STATE_LIGHT_POSITION_NORMALIZED, i, 0, 0,