zink: set resolve layout when inferring scanout resolves

this is otherwise broken

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31124>
This commit is contained in:
Mike Blumenkrantz 2024-09-10 19:30:59 -04:00 committed by Marge Bot
parent db371633e6
commit a3c2be8f85

View File

@ -3006,6 +3006,7 @@ begin_rendering(struct zink_context *ctx, bool check_msaa_expand)
zink_screen(ctx->base.screen)->image_barrier(ctx, res, layout, 0, 0);
res->obj->unordered_read = res->obj->unordered_write = false;
ctx->dynamic_fb.attachments[0].resolveMode = VK_RESOLVE_MODE_AVERAGE_BIT;
ctx->dynamic_fb.attachments[0].resolveImageLayout = zink_resource(surf->base.texture)->layout;
ctx->dynamic_fb.attachments[0].resolveImageView = surf->image_view;
}
if (has_swapchain) {