mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-30 21:54:16 +08:00
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:
parent
db371633e6
commit
a3c2be8f85
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user