From defc3dfa794a17687b1f15d0ae94dcf7460fdc3a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 18 Jun 2025 16:58:09 -0400 Subject: [PATCH] zink: use a better check for current fb zsbuf in zink_clear_depth_stencil() Part-of: --- src/gallium/drivers/zink/zink_clear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_clear.c b/src/gallium/drivers/zink/zink_clear.c index ba1681403b4..1749b017597 100644 --- a/src/gallium/drivers/zink/zink_clear.c +++ b/src/gallium/drivers/zink/zink_clear.c @@ -600,7 +600,7 @@ zink_clear_depth_stencil(struct pipe_context *pctx, struct pipe_surface *dst, zink_stop_conditional_render(ctx); ctx->render_condition_active = false; } - bool cur_attachment = ctx->fb_zsbuf == dst; + bool cur_attachment = pipe_surface_equal(&ctx->fb_state.zsbuf, dst); if (dstx > ctx->fb_state.width || dsty > ctx->fb_state.height || dstx + width > ctx->fb_state.width || dsty + height > ctx->fb_state.height)