Skip to content

Commit

Permalink
anv: Disable sparse binding feature to workaround CTS failure
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
ShenghuaLinINTEL committed Mar 13, 2024
1 parent d336e0b commit 43d488a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/intel/vulkan/anv_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 43d488a

Please sign in to comment.