From df446326f8297df1c265402faac61cef6ea80dda Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Thu, 23 Apr 2026 14:51:44 -0400 Subject: [PATCH] anv: Avoid aux-disabling paths for block-compression We don't support CCS on block-compressed textures prior to Xe2. On Xe2, CCS is enabled on every image. Improves INTEL_DEBUG=perf outputs. For example, in the Naraka trace on DG2, we now report that r32_uint is CCS_E-incompatible instead of bptc_rgba. This incompatibility is due to the storage usage flag and will be clarified in future commits. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 581cb13a00f..bdda9f05032 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -1994,6 +1994,7 @@ anv_image_init(struct anv_device *device, struct anv_image *image, IMAGE_FORMAT_LIST_CREATE_INFO); if ((image->vk.aspects & VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV) && + !vk_format_is_block_compressed(image->vk.format) && image->vk.samples == 1) { if (image->n_planes != 1) { /* Multiplanar images seem to hit a sampler bug with CCS and R16G16