From: Kristian Høgsberg Kristensen Date: Tue, 15 Dec 2015 21:51:23 +0000 (-0800) Subject: vk: Fix check for I915_PARAM_MMAP_VERSION X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8ac46d84ff6ed45671832590d143ad4dfa7ff66c;p=mesa.git vk: Fix check for I915_PARAM_MMAP_VERSION Comparing the wrong thing for < 1. --- 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;