lavapipe: fix stencil clears

this uses the value from the stencil attachment

Fixes: 8068c68b1f ("lavapipe: Delete render passes")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17705>
This commit is contained in:
Mike Blumenkrantz 2022-07-22 00:34:23 -04:00 committed by Marge Bot
parent f2f517b315
commit 6064d838e7
1 changed files with 1 additions and 1 deletions

View File

@ -1779,7 +1779,7 @@ static void render_clear(struct rendering_state *state)
uint32_t sclear_val = 0;
if (state->stencil_att.load_op == VK_ATTACHMENT_LOAD_OP_CLEAR) {
ds_clear_flags |= PIPE_CLEAR_STENCIL;
sclear_val = state->depth_att.clear_value.depthStencil.stencil;
sclear_val = state->stencil_att.clear_value.depthStencil.stencil;
}
if (ds_clear_flags) {