mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
anv: Disable sparse even on Xe KMD with ANV_SPARSE
ANV_SPARSE had no effect on Xe KMD. Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30593>
This commit is contained in:
parent
4f746ad26c
commit
92f4008473
1 changed files with 12 additions and 13 deletions
|
|
@ -2397,22 +2397,21 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
|
|||
device->uses_relocs = device->info.kmd_type != INTEL_KMD_TYPE_XE;
|
||||
|
||||
/* While xe.ko can use both vm_bind and TR-TT, i915.ko only has TR-TT. */
|
||||
if (device->info.kmd_type == INTEL_KMD_TYPE_XE) {
|
||||
if (debug_get_bool_option("ANV_SPARSE_USE_TRTT", false))
|
||||
device->sparse_type = ANV_SPARSE_TYPE_TRTT;
|
||||
else
|
||||
device->sparse_type = ANV_SPARSE_TYPE_VM_BIND;
|
||||
} else {
|
||||
if (device->info.ver >= 12 &&
|
||||
device->has_exec_timeline &&
|
||||
debug_get_bool_option("ANV_SPARSE", true)) {
|
||||
device->sparse_type = ANV_SPARSE_TYPE_TRTT;
|
||||
} else if (instance->has_fake_sparse) {
|
||||
device->sparse_type = ANV_SPARSE_TYPE_FAKE;
|
||||
if (debug_get_bool_option("ANV_SPARSE", true)) {
|
||||
if (device->info.kmd_type == INTEL_KMD_TYPE_XE) {
|
||||
if (debug_get_bool_option("ANV_SPARSE_USE_TRTT", false))
|
||||
device->sparse_type = ANV_SPARSE_TYPE_TRTT;
|
||||
else
|
||||
device->sparse_type = ANV_SPARSE_TYPE_VM_BIND;
|
||||
} else {
|
||||
device->sparse_type = ANV_SPARSE_TYPE_NOT_SUPPORTED;
|
||||
if (device->info.ver >= 12 && device->has_exec_timeline)
|
||||
device->sparse_type = ANV_SPARSE_TYPE_TRTT;
|
||||
}
|
||||
}
|
||||
if (device->sparse_type == ANV_SPARSE_TYPE_NOT_SUPPORTED) {
|
||||
if (instance->has_fake_sparse)
|
||||
device->sparse_type = ANV_SPARSE_TYPE_FAKE;
|
||||
}
|
||||
|
||||
device->always_flush_cache = INTEL_DEBUG(DEBUG_STALL) ||
|
||||
driQueryOptionb(&instance->dri_options, "always_flush_cache");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue