mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 08:40:11 +01:00
zink: use unsynchronized cmdbuf for unsynchronized image GENERAL barriers
this fixes all the random sync issues Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35979>
This commit is contained in:
parent
09096189c0
commit
213874d42b
1 changed files with 1 additions and 1 deletions
|
|
@ -410,7 +410,7 @@ zink_resource_image_barrier(struct zink_context *ctx, struct zink_resource *res,
|
|||
bool completed = zink_resource_usage_check_completion_fast(zink_screen(ctx->base.screen), res, rw);
|
||||
bool usage_matches = !completed && zink_resource_usage_matches(res, ctx->bs);
|
||||
VkCommandBuffer cmdbuf = GENERAL && new_layout == VK_IMAGE_LAYOUT_GENERAL ?
|
||||
(is_write ? zink_get_cmdbuf(ctx, NULL, res) : zink_get_cmdbuf(ctx, res, NULL)) :
|
||||
(UNSYNCHRONIZED ? ctx->bs->unsynchronized_cmdbuf : is_write ? zink_get_cmdbuf(ctx, NULL, res) : zink_get_cmdbuf(ctx, res, NULL)) :
|
||||
update_unordered_access_and_get_cmdbuf<UNSYNCHRONIZED>::apply(ctx, res, usage_matches, is_write);
|
||||
|
||||
assert(new_layout);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue