From 43d488a997d98e1f8230be1e26bc39b5afede5f9 Mon Sep 17 00:00:00 2001 From: "Lin, Shenghua" Date: Mon, 11 Mar 2024 08:47:05 +0000 Subject: [PATCH] anv: Disable sparse binding feature to workaround CTS failure A lot of cases related with sparse binding failed on igpu, dgpu is ok. Sparse binding feature is not supported previously, cts won't execute this test and return "not supported" but android cts treat it as pass, it's actually a fake pass. Mesa of newer version add support for this feature and we observe cts failure on igpu. dgpu can pass. So disable this feature to make cts "fake pass". --- src/intel/vulkan/anv_device.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index df0fe2ee88f..b0961dee7c8 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -2307,10 +2307,7 @@ anv_physical_device_try_create(struct vk_instance *vk_instance, device->sparse_uses_trtt = debug_get_bool_option("ANV_SPARSE_USE_TRTT", false); } else { - device->has_sparse = - device->info.ver >= 12 && - device->has_exec_timeline && - debug_get_bool_option("ANV_SPARSE", true); + device->has_sparse = false; device->sparse_uses_trtt = true; }