Mesa (main): anv: honor INTEL_DEBUG=sync
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Oct 3 11:14:55 UTC 2021
Module: Mesa
Branch: main
Commit: 9667539b96f3896f50b3c3a629bc6be13069e5fb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9667539b96f3896f50b3c3a629bc6be13069e5fb
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Sat Oct 2 23:44:35 2021 +0300
anv: honor INTEL_DEBUG=sync
Useful debug option for hangs.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13161>
---
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 =
More information about the mesa-commit
mailing list