mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 22:20:38 +02:00
turnip: fix update_stencil_mask
The previous value was not being cleared, resulting in some dynamic stencil
state failures. Fixes these two tests:
dEQP-VK.dynamic_state.ds_state.stencil_params_advanced
dEQP-VK.dynamic_state.ds_state.stencil_params_basic_1
Fixes: 233610f8cf ("turnip: refactor draw states and dynamic states")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5586>
This commit is contained in:
parent
9c0ae5704d
commit
04148f4411
1 changed files with 2 additions and 2 deletions
|
|
@ -2336,9 +2336,9 @@ static void
|
|||
update_stencil_mask(uint32_t *value, VkStencilFaceFlags face, uint32_t mask)
|
||||
{
|
||||
if (face & VK_STENCIL_FACE_FRONT_BIT)
|
||||
*value |= A6XX_RB_STENCILMASK_MASK(mask);
|
||||
*value = (*value & 0xff00) | (mask & 0xff);
|
||||
if (face & VK_STENCIL_FACE_BACK_BIT)
|
||||
*value |= A6XX_RB_STENCILMASK_BFMASK(mask);
|
||||
*value = (*value & 0xff) | (mask & 0xff) << 8;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue