mesa: Remove unused ffvertex_prog texunit_really_enabled.
authorMathias Fröhlich <mathias.froehlich@web.de>
Sat, 27 Jan 2018 19:09:00 +0000 (12:09 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Jan 2018 16:07:59 +0000 (09:07 -0700)
Remove set but not read field from the state key used for hashing
fixed function vertex shaders.

Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/ffvertex_prog.c

index 6f86477c49f20fd0e7674fd5e716b033b9b7657f..964d7079e1a69d4d861c901dc57653065d7cf35e 100644 (file)
@@ -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;