From: Mathias Fröhlich Date: Sat, 27 Jan 2018 19:09:00 +0000 (-0700) Subject: mesa: Remove unused ffvertex_prog texunit_really_enabled. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4216b588e970c6d322fd068c553d0bfc5e7a062;p=mesa.git mesa: Remove unused ffvertex_prog texunit_really_enabled. 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 --- 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;