From: Jason Ekstrand Date: Thu, 28 Jan 2016 23:43:44 +0000 (-0800) Subject: anv/device: Fix version check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a19ceee46c553821332aca2ea0dff40fc83794b3;p=mesa.git anv/device: Fix version check The bottom-end check was wrong so it was only working on <= 1.0.0. Oops. --- 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); }