From 9667539b96f3896f50b3c3a629bc6be13069e5fb Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Sat, 2 Oct 2021 23:44:35 +0300 Subject: [PATCH] anv: honor INTEL_DEBUG=sync Useful debug option for hangs. Signed-off-by: Lionel Landwerlin Reviewed-by: Sagar Ghuge Part-of: --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index ff8a61e60e6..cfcf058a347 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -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 =