diff options
author | Jason Ekstrand <[email protected]> | 2016-01-28 15:43:44 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-01-29 20:36:58 -0800 |
commit | a19ceee46c553821332aca2ea0dff40fc83794b3 (patch) | |
tree | dfc2dd3748c31904590c13af1ed6020f53b740fe | |
parent | f28645f71cbe49099908dbdfd8c05ae3f8d051d6 (diff) |
anv/device: Fix version check
The bottom-end check was wrong so it was only working on <= 1.0.0. Oops.
-rw-r--r-- | src/vulkan/anv_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 5bb9fec0085..fe9808f0bf7 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -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); } |