From 8ac46d84ff6ed45671832590d143ad4dfa7ff66c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Tue, 15 Dec 2015 13:51:23 -0800 Subject: [PATCH] vk: Fix check for I915_PARAM_MMAP_VERSION Comparing the wrong thing for < 1. --- src/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 17056e35cb5..e276cc0b9c0 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -119,7 +119,7 @@ anv_physical_device_init(struct anv_physical_device *device, goto fail; } - if (anv_gem_get_param(fd, I915_PARAM_MMAP_VERSION < 1)) { + if (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