anv/device: Ignore the patch portion of the requested API version
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Mar 2016 23:17:09 +0000 (16:17 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Mar 2016 23:20:45 +0000 (16:20 -0700)
Fixes dEQP-VK.api.device_init.create_instance_name_version

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94661

src/intel/vulkan/anv_device.c

index ce2045ecf7bc5375eeb5aa58d2a730194cb88dc8..622e6422c5a3d499e9411322f01be587436f9c78 100644 (file)
@@ -223,7 +223,7 @@ VkResult anv_CreateInstance(
    }
 
    if (VK_MAKE_VERSION(1, 0, 0) > client_version ||
-       client_version > VK_MAKE_VERSION(1, 0, 3)) {
+       client_version > VK_MAKE_VERSION(1, 0, 0xfff)) {
       return vk_errorf(VK_ERROR_INCOMPATIBLE_DRIVER,
                        "Client requested version %d.%d.%d",
                        VK_VERSION_MAJOR(client_version),