radv: Don't check the incoming apiVersion on CreateInstance.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 1 May 2018 20:44:42 +0000 (22:44 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 2 May 2018 19:57:08 +0000 (21:57 +0200)
This fixes

dEQP-VK.api.device_init.create_instance_invalid_api_version

CC: 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c

index ef32c37464a5d1572a80121dd518ff1a0f8e8044..ed1c35334ba9956e3990d9695c8b191620430fee 100644 (file)
@@ -463,15 +463,6 @@ VkResult radv_CreateInstance(
                client_version = VK_MAKE_VERSION(1, 0, 0);
        }
 
-       if (VK_MAKE_VERSION(1, 0, 0) > client_version ||
-           client_version > VK_MAKE_VERSION(1, 1, 0xfff)) {
-               return vk_errorf(VK_ERROR_INCOMPATIBLE_DRIVER,
-                                "Client requested version %d.%d.%d",
-                                VK_VERSION_MAJOR(client_version),
-                                VK_VERSION_MINOR(client_version),
-                                VK_VERSION_PATCH(client_version));
-       }
-
        instance = vk_zalloc2(&default_alloc, pAllocator, sizeof(*instance), 8,
                              VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
        if (!instance)