anv/device: Improve the api version check to allow 1.0.X
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Jan 2016 05:56:23 +0000 (21:56 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Jan 2016 05:56:46 +0000 (21:56 -0800)
src/vulkan/anv_device.c

index adf33a8..66105f0 100644 (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++) {