summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_device.c
diff options
context:
space:
mode:
authorRafael Antognolli <[email protected]>2018-06-15 09:31:25 -0700
committerRafael Antognolli <[email protected]>2018-06-18 14:41:38 -0700
commitbe18d5a0ce8bf6c3578deb693e34faf366c4a0db (patch)
treee362c05b82dcb87812aafaffb3636543f6c51b12 /src/intel/vulkan/anv_device.c
parent056214ebfcfb39f24f3c1be49e0d59f4db93bcab (diff)
anv/device: Check for kernel support of context isolation.
Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r--src/intel/vulkan/anv_device.c3
1 files changed, 3 insertions, 0 deletions
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