mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
radeonsi: Set STENCILOPVAL fields to 1.
This is necessary for backwards compatibility with pre-SI for stencil. Fixes a number of stencil related piglit tests, and real apps using stencil. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
91c1d4472f
commit
73d9703a93
1 changed files with 4 additions and 2 deletions
|
|
@ -510,11 +510,13 @@ static void si_update_dsa_stencil_ref(struct r600_context *rctx)
|
|||
si_pm4_set_reg(pm4, R_028430_DB_STENCILREFMASK,
|
||||
S_028430_STENCILTESTVAL(ref->ref_value[0]) |
|
||||
S_028430_STENCILMASK(dsa->valuemask[0]) |
|
||||
S_028430_STENCILWRITEMASK(dsa->writemask[0]));
|
||||
S_028430_STENCILWRITEMASK(dsa->writemask[0]) |
|
||||
S_028430_STENCILOPVAL(1));
|
||||
si_pm4_set_reg(pm4, R_028434_DB_STENCILREFMASK_BF,
|
||||
S_028434_STENCILTESTVAL_BF(ref->ref_value[1]) |
|
||||
S_028434_STENCILMASK_BF(dsa->valuemask[1]) |
|
||||
S_028434_STENCILWRITEMASK_BF(dsa->writemask[1]));
|
||||
S_028434_STENCILWRITEMASK_BF(dsa->writemask[1]) |
|
||||
S_028434_STENCILOPVAL_BF(1));
|
||||
|
||||
si_pm4_set_state(rctx, dsa_stencil_ref, pm4);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue