From: Jason Ekstrand Date: Thu, 28 Jan 2016 05:56:23 +0000 (-0800) Subject: anv/device: Improve the api version check to allow 1.0.X X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c64bc5463d840e46a022e9fd77a47be78a1933ef;p=mesa.git anv/device: Improve the api version check to allow 1.0.X --- diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index adf33a84cf4..66105f0a83d 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -214,7 +214,7 @@ VkResult anv_CreateInstance( assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO); - if (pCreateInfo->pApplicationInfo->apiVersion != VK_MAKE_VERSION(1, 0, 0)) + if (pCreateInfo->pApplicationInfo->apiVersion > VK_MAKE_VERSION(1, 0, 0xfff)) return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER); for (uint32_t i = 0; i < pCreateInfo->enabledExtensionCount; i++) {