[Mesa-dev] [PATCH 2/3] anv/device: Check for kernel support of context isolation.

Rafael Antognolli rafael.antognolli at intel.com
Fri Jun 15 20:12:31 UTC 2018


---
 src/intel/vulkan/anv_device.c  | 3 +++
 src/intel/vulkan/anv_private.h | 1 +
 2 files changed, 4 insertions(+)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 63d5876edb1..d1637f097e8 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -377,6 +377,9 @@ anv_physical_device_init(struct anv_physical_device *device,
    device->use_softpin = anv_gem_get_param(fd, I915_PARAM_HAS_EXEC_SOFTPIN)
       && device->supports_48bit_addresses;
 
+   device->has_context_isolation =
+      anv_gem_get_param(fd, I915_PARAM_HAS_CONTEXT_ISOLATION);
+
    bool swizzled = anv_gem_get_bit6_swizzle(fd, I915_TILING_X);
 
    /* Starting with Gen10, the timestamp frequency of the command streamer may
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index b035bf1c943..6af2a0bd3f3 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -856,6 +856,7 @@ struct anv_physical_device {
     bool                                        has_syncobj_wait;
     bool                                        has_context_priority;
     bool                                        use_softpin;
+    bool                                        has_context_isolation;
 
     struct anv_device_extension_table           supported_extensions;
 
-- 
2.14.3



More information about the mesa-dev mailing list