From c5ee7e9bdc7b2a690843c103e73268edb32692fd Mon Sep 17 00:00:00 2001 From: Jianxun Zhang Date: Sat, 13 Jul 2024 11:57:38 -0700 Subject: [PATCH] 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 Reviewed-by: Nanley Chery Part-of: --- src/intel/vulkan/anv_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 0bbeeb7665a..6e8225dc23c 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -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. */