mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
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:
parent
a59dc9d157
commit
c53fc5f48e
1 changed files with 2 additions and 0 deletions
|
|
@ -2508,6 +2508,8 @@ begin_rendering(struct zink_context *ctx)
|
||||||
return 0;
|
return 0;
|
||||||
ctx->dynamic_fb.attachments[i].imageView = iv;
|
ctx->dynamic_fb.attachments[i].imageView = iv;
|
||||||
}
|
}
|
||||||
|
if (has_swapchain)
|
||||||
|
zink_render_fixup_swapchain(ctx);
|
||||||
if (ctx->fb_state.zsbuf && zsbuf_used) {
|
if (ctx->fb_state.zsbuf && zsbuf_used) {
|
||||||
struct zink_surface *surf = zink_csurface(ctx->fb_state.zsbuf);
|
struct zink_surface *surf = zink_csurface(ctx->fb_state.zsbuf);
|
||||||
VkImageView iv = zink_prep_fb_attachment(ctx, surf, ctx->fb_state.nr_cbufs);
|
VkImageView iv = zink_prep_fb_attachment(ctx, surf, ctx->fb_state.nr_cbufs);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue