anv/device: Improve the api version check to allow 1.0.X

This commit is contained in:
Jason Ekstrand 2016-01-27 21:56:23 -08:00
parent 4604b2871a
commit c64bc5463d
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {