mesa: Encode fog modes in a 2 bit field.
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)
commitd6b0ad51ec3747b5fcda23670c36d5fb45391e19
tree558e5ef990bad6d9cf36a5614fea1b6788930a6a
parent63e845d3cc4ce46a983f1f38c096b6091d998e1f
mesa: Encode fog modes in a 2 bit field.

For the state key for hashing fixed function
vertex shaders, encode the different fog modes, including
if fog is generally enabled or not, into a 2 bit field.

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