vk: Only require wc bo mmap for !llc GPUs
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sun, 20 Dec 2015 06:25:57 +0000 (22:25 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sun, 20 Dec 2015 06:25:57 +0000 (22:25 -0800)
src/vulkan/anv_device.c

index 746fecb760f172cb08c2e8cc1057e5e2aab9d74a..0043bea5d13d6f8dc1feed548563f5fbd2dcca1e 100644 (file)
@@ -119,7 +119,8 @@ anv_physical_device_init(struct anv_physical_device *device,
       goto fail;
    }
 
-   if (anv_gem_get_param(fd, I915_PARAM_MMAP_VERSION) < 1) {
+   if (!device->info->has_llc &&
+       anv_gem_get_param(fd, I915_PARAM_MMAP_VERSION) < 1) {
       result = vk_errorf(VK_ERROR_INITIALIZATION_FAILED,
                          "kernel missing wc mmap");
       goto fail;