vk: Fix check for I915_PARAM_MMAP_VERSION
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 15 Dec 2015 21:51:23 +0000 (13:51 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 19 Dec 2015 01:24:19 +0000 (17:24 -0800)
Comparing the wrong thing for < 1.

src/vulkan/anv_device.c

index 17056e35cb58115b9dc71bf611c459b6320d921c..e276cc0b9c02fa807c3913f3210c8dfeaefc8d84 100644 (file)
@@ -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;