zink: always emit fb attachment sync
the sync functions should be smart enough by now to figure this out Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36057>
This commit is contained in:
parent
485b520cf2
commit
919ad8c08d
1 changed files with 1 additions and 2 deletions
|
|
@ -2899,8 +2899,7 @@ prep_fb_attachment(struct zink_context *ctx, struct zink_resource *res, unsigned
|
|||
else if (layout != VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT &&
|
||||
i >= ctx->fb_state.nr_cbufs && screen->driver_workarounds.general_depth_layout)
|
||||
layout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
if (res->valid || res->layout != layout)
|
||||
screen->image_barrier(ctx, res, layout, access, pipeline);
|
||||
screen->image_barrier(ctx, res, layout, access, pipeline);
|
||||
if (!(res->aspect & VK_IMAGE_ASPECT_COLOR_BIT))
|
||||
ctx->zsbuf_readonly = res->layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL;
|
||||
res->obj->unordered_read = res->obj->unordered_write = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue