frontend/nine: Fix ATOC handling
authorAxel Davy <davyaxel0@gmail.com>
Fri, 29 Jul 2022 19:15:01 +0000 (21:15 +0200)
committerAxel Davy <davyaxel0@gmail.com>
Fri, 12 Aug 2022 19:53:11 +0000 (21:53 +0200)
commit4f953ad51299a744aa74b7667debd8a8245685f5
tree38f6e1c885ccc4440a9f8e3f264cacbb5042ed21
parente5124e83ba1f9a7c86a3b1b8d38e7c71cd481f88
frontend/nine: Fix ATOC handling

The previous code was incorrectly checking the previous
value of alphatestenable.
In addition, remove an optimization that cannot hit (as we
filter out redundant state settings).

cc: mesa-stable

Fixes: 1272640d5 ("st/nine: Fix alpha to coverage states")
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18021>
src/gallium/frontends/nine/nine_state.c