anv: Disable CCS if image bound to wrong heap on Xe2+

Avoids HIZ + CCS flushes and helps debug.

Reviewed-by: Jianxun Zhang <jianxun.zhang@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32120>
This commit is contained in:
Nanley Chery
2024-11-12 17:52:07 -05:00
committed by Marge Bot
parent ab6141561d
commit 93dbfea720
+3 -2
View File
@@ -2788,6 +2788,7 @@ anv_bind_image_memory(struct anv_device *device,
*/
if (device->info->has_flat_ccs &&
(anv_bo_is_vram_only(bo) ||
(bo->alloc_flags & ANV_BO_ALLOC_COMPRESSED) ||
(bo->alloc_flags & ANV_BO_ALLOC_IMPORTED)))
continue;
@@ -2795,8 +2796,8 @@ anv_bind_image_memory(struct anv_device *device,
if (device->info->has_aux_map && anv_image_map_aux_tt(device, image, p))
continue;
/* Do nothing except for gfx12. There are no special requirements. */
if (device->info->ver != 12)
/* No special requirements on gfx9-11. */
if (device->info->ver <= 11)
continue;
/* The plane's BO cannot support CCS, disable compression on it. */