st/mesa: Update constants on alpha test change if it's lowered
authorIcecream95 <ixn@disroot.org>
Fri, 5 Mar 2021 21:45:44 +0000 (10:45 +1300)
committerMarge Bot <eric+marge@anholt.net>
Sat, 6 Mar 2021 00:32:51 +0000 (00:32 +0000)
commitefd7711e0e140c75f3624997f91f46008a39c325
tree6a93e500fd4ddb019bff4914b23f9d045dbc7436
parent24ce0862fe0847ab4a24e3fb4465bd61847c5efb
st/mesa: Update constants on alpha test change if it's lowered

nir_lower_alpha_test creates a uniform for the alpha reference value;
this needs to be updated when changing alpha test state.

Fixes: b1c4c4c7f53 ("mesa/gallium: automatically lower alpha-testing")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4390
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9439>
src/mesa/state_tracker/st_context.c