frontend/nine: fix fog key overflow
authorAxel Davy <davyaxel0@gmail.com>
Thu, 13 Apr 2023 17:44:04 +0000 (19:44 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 22 Apr 2023 21:09:07 +0000 (21:09 +0000)
commit80d1da14f047f7ac4e4a28e9640d600b823df1cc
tree0fccbb5a2806740cc7f010826604a10dc5aeba89
parent9923a31945673dc40216a94c4fd3afa93d1d9efc
frontend/nine: fix fog key overflow

FOGTABLEMODE is 2 bits. It could thus
overwrite the part of the ps key reserved
for centroid interpolation.

Fix the size of FOGTABLEMODE and the key

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22583>
src/gallium/frontends/nine/nine_limits.h
src/gallium/frontends/nine/pixelshader9.c
src/gallium/frontends/nine/pixelshader9.h