From c50ac33cd2df59669e2ff87b8b381eaf10e1afd0 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 5 Aug 2025 07:48:35 -0400 Subject: [PATCH] zink: fix assert for unsynchronized non-GENERAL image barriers if this is already unsync then everything is fine Fixes: 213874d42bc ("zink: use unsynchronized cmdbuf for unsynchronized image GENERAL barriers") Part-of: --- src/gallium/drivers/zink/zink_synchronization.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_synchronization.cpp b/src/gallium/drivers/zink/zink_synchronization.cpp index 6d48159de29..107b5320e7c 100644 --- a/src/gallium/drivers/zink/zink_synchronization.cpp +++ b/src/gallium/drivers/zink/zink_synchronization.cpp @@ -354,7 +354,7 @@ template <> struct update_unordered_access_and_get_cmdbuf { static VkCommandBuffer apply(struct zink_context *ctx, struct zink_resource *res, bool usage_matches, bool is_write) { - assert(!usage_matches); + assert(!usage_matches || (res->obj->unordered_write && res->obj->unordered_read)); res->obj->unordered_write = true; res->obj->unordered_read = true; ctx->bs->has_unsync = true;