anv: Also disallow CCS_E for multi-LOD images

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4616
Fixes: e3101c96bb ("anv/image: Disable multi-layer CCS_E on TGL+")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13680>
This commit is contained in:
Jason Ekstrand 2021-10-26 13:17:16 -05:00 committed by Marge Bot
parent 62983f276b
commit e614789588

View file

@ -690,7 +690,8 @@ add_aux_surface_if_supported(struct anv_device *device,
return VK_SUCCESS;
}
if (device->info.ver >= 12 && image->vk.array_layers > 1) {
if (device->info.ver >= 12 &&
(image->vk.array_layers > 1 || image->vk.mip_levels)) {
/* HSD 14010672564: On TGL, if a block of fragment shader outputs
* match the surface's clear color, the HW may convert them to
* fast-clears. Anv only does clear color tracking for the first