From a19ceee46c553821332aca2ea0dff40fc83794b3 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 28 Jan 2016 15:43:44 -0800 Subject: [PATCH] anv/device: Fix version check The bottom-end check was wrong so it was only working on <= 1.0.0. Oops. --- 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 5bb9fec0085..fe9808f0bf7 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -215,7 +215,7 @@ VkResult anv_CreateInstance( assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO); uint32_t client_version = pCreateInfo->pApplicationInfo->apiVersion; - if (VK_MAKE_VERSION(1, 0, 0) < client_version || + if (VK_MAKE_VERSION(1, 0, 0) > client_version || client_version > VK_MAKE_VERSION(1, 0, 2)) { return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER); } -- 2.30.2