From 1d1ca611be803f707f9694d9716120e72d2090e8 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 28 May 2025 13:12:18 -0400 Subject: [PATCH] zink: don't fixup depth buffer if it's already big enough the zs buffer doesn't have to exactly match the size of the framebuffer, it just has to be "big enough" Part-of: --- src/gallium/drivers/zink/zink_kopper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_kopper.c b/src/gallium/drivers/zink/zink_kopper.c index e625a7a946c..a570851d9c8 100644 --- a/src/gallium/drivers/zink/zink_kopper.c +++ b/src/gallium/drivers/zink/zink_kopper.c @@ -1122,7 +1122,7 @@ zink_kopper_fixup_depth_buffer(struct zink_context *ctx) struct zink_ctx_surface *csurf = (struct zink_ctx_surface*)ctx->fb_zsbuf; unsigned width = pipe_surface_width(&ctx->fb_state.zsbuf); unsigned height = pipe_surface_height(&ctx->fb_state.zsbuf); - if (width == ctx->fb_state.width && height == ctx->fb_state.height) + if (width >= ctx->fb_state.width && height >= ctx->fb_state.height) return; struct pipe_resource templ = *ctx->fb_state.zsbuf.texture;