From 6064d838e79a7955a5f48d2731e28241d1c01ba0 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 22 Jul 2022 00:34:23 -0400 Subject: [PATCH] lavapipe: fix stencil clears this uses the value from the stencil attachment Fixes: 8068c68b1ff ("lavapipe: Delete render passes") Reviewed-by: Dave Airlie Part-of: --- src/gallium/frontends/lavapipe/lvp_execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index dee4752a8af..5de46236e1a 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -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) {