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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20584>
This commit is contained in:
Mike Blumenkrantz 2023-01-06 14:04:34 -05:00 committed by Marge Bot
parent a59dc9d157
commit c53fc5f48e

View file

@ -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);