mesa: decrease the array size of ctx->Texture.FixedFuncUnit to 8
authorMarek Olšák <marek.olsak@amd.com>
Wed, 15 Nov 2017 21:10:43 +0000 (22:10 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 13 Feb 2018 00:00:45 +0000 (01:00 +0100)
commit78043a75f6c05c470da97d1f18615821d69177c0
tree041ebf7ab6e8faf5c406913f22fd51533018c8a5
parent07c10cc59c164ddd0109e061dac8edf47437d8ca
mesa: decrease the array size of ctx->Texture.FixedFuncUnit to 8

GL allows doing glTexEnv on 192 texture units, while in reality,
only MaxTextureCoordUnits units are used by fixed-func shaders.

There is a piglit patch that adjusts piglits/texunits to check only
MaxTextureCoordUnits units.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/enable.c
src/mesa/main/mtypes.h
src/mesa/main/texenv.c
src/mesa/main/texstate.c
src/mesa/main/texstate.h