mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 22:18:13 +02:00
etnaviv: Fix rework ZSA into a derived state
In case the stencil is modified, it is also enabled. That was the behavior of the original code, which was also the correct behavior, so reinstate the behavior. Fixes dEQP-GLES2.functional.fragment_ops.depth_stencil.* on STM32MP1 GC400T. Fixes:b29fe26d43("etnaviv: rework ZSA into a derived state") Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: Marek Vasut <marex@denx.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8174> (cherry picked from commit33a6c01e12)
This commit is contained in:
parent
b83d96666d
commit
d7c09d09aa
2 changed files with 3 additions and 1 deletions
|
|
@ -526,7 +526,7 @@
|
|||
"description": "etnaviv: Fix rework ZSA into a derived state",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "b29fe26d43874c90df60edbffda70fca67b98e4a"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -77,11 +77,13 @@ etna_zsa_state_create(struct pipe_context *pctx,
|
|||
if (so->stencil[0].fail_op != PIPE_STENCIL_OP_KEEP ||
|
||||
so->stencil[0].zfail_op != PIPE_STENCIL_OP_KEEP ||
|
||||
so->stencil[0].zpass_op != PIPE_STENCIL_OP_KEEP) {
|
||||
cs->stencil_enabled = 1;
|
||||
cs->stencil_modified = 1;
|
||||
} else if (so->stencil[1].enabled) {
|
||||
if (so->stencil[1].fail_op != PIPE_STENCIL_OP_KEEP ||
|
||||
so->stencil[1].zfail_op != PIPE_STENCIL_OP_KEEP ||
|
||||
so->stencil[1].zpass_op != PIPE_STENCIL_OP_KEEP) {
|
||||
cs->stencil_enabled = 1;
|
||||
cs->stencil_modified = 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue