anv: Disable legacy CCS setup in binding (xe2)

The condition of flat ccs and vram_only checker causes different
aux usage at binding stage. The current design is reusing CCS_E
on Xe2, so we want both Xe2 integrated and discreted GPUs behave
the same way.

Xe2 shouldn't need any special setup of CCS in the loop.

Backport-to: 24.2
Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30111>
This commit is contained in:
Jianxun Zhang 2024-07-13 11:57:38 -07:00 committed by Marge Bot
parent e054068787
commit c5ee7e9bdc

View file

@ -2568,8 +2568,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 prior to gfx12. There are no special requirements. */
if (device->info->ver < 12)
/* Do nothing except for gfx12. There are no special requirements. */
if (device->info->ver != 12)
continue;
/* The plane's BO cannot support CCS, disable compression on it. */