From 30e79aafa0ae9b84a530e94a486b937e631d1005 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 2 Jul 2025 15:30:21 -0400 Subject: [PATCH] zink: fix another case of blocking image op reordering with GENERAL layouts Part-of: --- src/gallium/drivers/zink/zink_synchronization.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_synchronization.cpp b/src/gallium/drivers/zink/zink_synchronization.cpp index 5c8819915db..c6de616eced 100644 --- a/src/gallium/drivers/zink/zink_synchronization.cpp +++ b/src/gallium/drivers/zink/zink_synchronization.cpp @@ -152,8 +152,7 @@ static ALWAYS_INLINE bool check_unordered_exec(struct zink_context *ctx, struct zink_resource *res, bool is_write) { if (res) { - if (!res->obj->is_buffer) { - /* TODO: figure out how to link up unordered layout -> ordered layout and delete this conditionals */ + if (!res->obj->is_buffer && !zink_screen(ctx->base.screen)->info.have_KHR_unified_image_layouts) { if (zink_resource_usage_is_unflushed(res) && !res->obj->unordered_read && !res->obj->unordered_write) return false; }