anv/device: Check for kernel support of context isolation.
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 15 Jun 2018 16:31:25 +0000 (09:31 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Mon, 18 Jun 2018 21:41:38 +0000 (14:41 -0700)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_private.h

index 63d5876edb10504a9b79ada2735c7d27cafc6b71..d1637f097e8fbed5f347e3c72b79f5e622c5d656 100644 (file)
@@ -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
index b035bf1c943dd7730bfc7e4a3303d96254c51350..6af2a0bd3f3f6c859967ba4bb5e4561c472d63c7 100644 (file)
@@ -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;