vk: Fix check for I915_PARAM_MMAP_VERSION

Comparing the wrong thing for < 1.
This commit is contained in:
Kristian Høgsberg Kristensen 2015-12-15 13:51:23 -08:00
parent 5e82a91324
commit 8ac46d84ff

View 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;