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 <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41034>
This commit is contained in:
Nanley Chery 2026-04-23 14:51:44 -04:00 committed by Marge Bot
parent 8e736f4d0d
commit df446326f8

View file

@ -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