From b4216b588e970c6d322fd068c553d0bfc5e7a062 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathias=20Fr=C3=B6hlich?= Date: Sat, 27 Jan 2018 12:09:00 -0700 Subject: [PATCH] mesa: Remove unused ffvertex_prog texunit_really_enabled. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Remove set but not read field from the state key used for hashing fixed function vertex shaders. Signed-off-by: Mathias Fröhlich Reviewed-by: Brian Paul --- src/mesa/main/ffvertex_prog.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/mesa/main/ffvertex_prog.c b/src/mesa/main/ffvertex_prog.c index 6f86477c49f..964d7079e1a 100644 --- a/src/mesa/main/ffvertex_prog.c +++ b/src/mesa/main/ffvertex_prog.c @@ -72,7 +72,6 @@ struct state_key { unsigned light_eyepos3_is_zero:1; unsigned light_spotcutoff_is_180:1; unsigned light_attenuated:1; - unsigned texunit_really_enabled:1; unsigned texmat_enabled:1; unsigned coord_replace:1; unsigned texgen_enabled:1; @@ -235,9 +234,6 @@ static void make_state_key( struct gl_context *ctx, struct state_key *key ) const int i = u_bit_scan(&mask); struct gl_texture_unit *texUnit = &ctx->Texture.Unit[i]; - if (texUnit->_Current) - key->unit[i].texunit_really_enabled = 1; - if (ctx->Point.PointSprite) if (ctx->Point.CoordReplace & (1u << i)) key->unit[i].coord_replace = 1; -- 2.30.2