From 3a503b48985d87dd12033dcae927d13fa60ac6d4 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 27 Feb 2026 16:09:26 +0200 Subject: [PATCH] anv: limit aux disabling on concurrent images to pre-Xe2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Reviewed-by: José Roberto de Souza Reviewed-by: Nanley Chery Part-of: --- src/intel/vulkan/anv_image.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index df4b8b560c5..4a159990529 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -1879,8 +1879,14 @@ anv_image_init(struct anv_device *device, struct anv_image *image, /* If the resource is created with the CONCURRENT sharing mode, we can't * support compression because we aren't allowed barriers in order to * construct the main surface data with FULL_RESOLVE/PARTIAL_RESOLVE. + * + * Only applies pre-Xe2, first there is no resolve going on color images + * on that platform (only for HIZ_CCS we need a partial resolve, but it + * would be handled with layout transitions), second we don't have + * restriction on the cache not being coherent between engines. */ - if (image->vk.sharing_mode == VK_SHARING_MODE_CONCURRENT) + if (image->vk.sharing_mode == VK_SHARING_MODE_CONCURRENT && + device->info->ver < 20) isl_extra_usage_flags |= ISL_SURF_USAGE_DISABLE_AUX_BIT; }