From 6726d1609831244e9593fd1ee4b29ba2485922a0 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: texgen_enabled is only 1 bit. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit For the state key for hashing fixed function vertex shaders, the texgen_enabled field requires only a single bit. Signed-off-by: Mathias Fröhlich Reviewed-by: Brian Paul --- src/mesa/main/ffvertex_prog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/ffvertex_prog.c b/src/mesa/main/ffvertex_prog.c index eebc3279377..2eccc1fdfec 100644 --- a/src/mesa/main/ffvertex_prog.c +++ b/src/mesa/main/ffvertex_prog.c @@ -76,7 +76,7 @@ struct state_key { unsigned texunit_really_enabled:1; unsigned texmat_enabled:1; unsigned coord_replace:1; - unsigned texgen_enabled:4; + unsigned texgen_enabled:1; unsigned texgen_mode0:4; unsigned texgen_mode1:4; unsigned texgen_mode2:4; -- 2.30.2