From c53fc5f48e8907e24351053f1b3252d7c6997b51 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 6 Jan 2023 14:04:34 -0500 Subject: [PATCH] zink: catch a potential corner case with dynamic render and swapchain updates zink_prep_fb_attachment() calls acquire internally, which means it's theoretically possible that fixups are required very late in this function never seen it happen, but who knows Part-of: --- src/gallium/drivers/zink/zink_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 5c07622b919..0323ae96ea3 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -2508,6 +2508,8 @@ begin_rendering(struct zink_context *ctx) return 0; ctx->dynamic_fb.attachments[i].imageView = iv; } + if (has_swapchain) + zink_render_fixup_swapchain(ctx); if (ctx->fb_state.zsbuf && zsbuf_used) { struct zink_surface *surf = zink_csurface(ctx->fb_state.zsbuf); VkImageView iv = zink_prep_fb_attachment(ctx, surf, ctx->fb_state.nr_cbufs);