mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
vc4: Don't look at back stencil state unless two-sided stencil is enabled.
Fixes regressions in the next bugfix, because gallium util stuff leaves the back stencil state as 0 if !back->enabled.
This commit is contained in:
parent
4f17e026bb
commit
48f6351940
1 changed files with 6 additions and 2 deletions
|
|
@ -203,12 +203,16 @@ vc4_create_depth_stencil_alpha_state(struct pipe_context *pctx,
|
|||
|
||||
uint8_t front_writemask_bits =
|
||||
tlb_stencil_setup_writemask(front->writemask);
|
||||
uint8_t back_writemask_bits =
|
||||
tlb_stencil_setup_writemask(back->writemask);
|
||||
uint8_t back_writemask = front->writemask;
|
||||
uint8_t back_writemask_bits = front_writemask_bits;
|
||||
|
||||
so->stencil_uniforms[0] =
|
||||
tlb_stencil_setup_bits(front, front_writemask_bits);
|
||||
if (back->enabled) {
|
||||
back_writemask = back->writemask;
|
||||
back_writemask_bits =
|
||||
tlb_stencil_setup_writemask(back->writemask);
|
||||
|
||||
so->stencil_uniforms[0] |= (1 << 30);
|
||||
so->stencil_uniforms[1] =
|
||||
tlb_stencil_setup_bits(back, back_writemask_bits);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue