anv: enable sparse resources by default

This of course only applies to xe.ko. There is no reason to keep it
disabled by default.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23045>
This commit is contained in:
Paulo Zanoni 2023-08-14 09:41:11 -07:00 committed by Marge Bot
parent 7e2d8cced3
commit b75da97a1d

View file

@ -1398,7 +1398,7 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
device->uses_relocs = device->info.kmd_type != INTEL_KMD_TYPE_XE;
device->has_sparse = device->info.kmd_type == INTEL_KMD_TYPE_XE &&
debug_get_bool_option("ANV_SPARSE", false);
debug_get_bool_option("ANV_SPARSE", true);
device->always_flush_cache = INTEL_DEBUG(DEBUG_STALL) ||
driQueryOptionb(&instance->dri_options, "always_flush_cache");