From: Bas Nieuwenhuizen Date: Tue, 1 May 2018 20:44:42 +0000 (+0200) Subject: radv: Don't check the incoming apiVersion on CreateInstance. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=467c562a292b4424f24381932b90bcb9869c3d73;p=mesa.git radv: Don't check the incoming apiVersion on CreateInstance. This fixes dEQP-VK.api.device_init.create_instance_invalid_api_version CC: 18.1 Reviewed-by: Samuel Pitoiset --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index ef32c37464a..ed1c35334ba 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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)