anv/device: Fix version check

The bottom-end check was wrong so it was only working on <= 1.0.0.  Oops.
This commit is contained in:
Jason Ekstrand
2016-01-28 15:43:44 -08:00
parent f28645f71c
commit a19ceee46c
+1 -1
View File
@@ -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);
}