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 adf33a84cf4052bfad555c0fe8a21760129ae90b..66105f0a83d21398915b50b1b14b79b4923ec5db 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++) {