anv: honor INTEL_DEBUG=sync

Useful debug option for hangs.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13161>
This commit is contained in:
Lionel Landwerlin 2021-10-02 23:44:35 +03:00 committed by Marge Bot
parent c6b8702eb4
commit 9667539b96

View file

@ -927,7 +927,7 @@ anv_physical_device_try_create(struct anv_instance *instance,
device->has_reg_timestamp = anv_gem_reg_read(fd, TIMESTAMP | I915_REG_READ_8B_WA,
&u64_ignore) == 0;
device->always_flush_cache =
device->always_flush_cache = (INTEL_DEBUG & DEBUG_SYNC) ||
driQueryOptionb(&instance->dri_options, "always_flush_cache");
device->has_mmap_offset =