From 220ac9337b24c7099ac3534ba14c61592e1266ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Sat, 19 Dec 2015 22:25:57 -0800 Subject: [PATCH] vk: Only require wc bo mmap for !llc GPUs --- src/vulkan/anv_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 746fecb760f..0043bea5d13 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -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; -- 2.30.2