mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:b1c4c4c7f5("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> (cherry picked from commitefd7711e0e)
This commit is contained in:
parent
5ad7edf8af
commit
3342edc1d2
2 changed files with 2 additions and 2 deletions
|
|
@ -1705,7 +1705,7 @@
|
|||
"description": "st/mesa: Update constants on alpha test change if it's lowered",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "b1c4c4c7f53cde52a8f3b3ec17cd66b89bf04199"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -510,7 +510,7 @@ st_init_driver_flags(struct st_context *st)
|
|||
f->NewScissorTest = ST_NEW_SCISSOR | ST_NEW_RASTERIZER;
|
||||
|
||||
if (st->lower_alpha_test)
|
||||
f->NewAlphaTest = ST_NEW_FS_STATE;
|
||||
f->NewAlphaTest = ST_NEW_FS_STATE | ST_NEW_FS_CONSTANTS;
|
||||
else
|
||||
f->NewAlphaTest = ST_NEW_DSA;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue