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;