From: Kristian Høgsberg Kristensen Date: Sun, 20 Dec 2015 06:25:57 +0000 (-0800) Subject: vk: Only require wc bo mmap for !llc GPUs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=220ac9337b24c7099ac3534ba14c61592e1266ae;p=mesa.git vk: Only require wc bo mmap for !llc GPUs --- 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;