From: Niklas Haas Date: Thu, 22 Nov 2018 23:32:29 +0000 (+0100) Subject: radv: correctly use vulkan 1.0 by default X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d12dc3939620dcc942523a30a7fcc3271e751a6c;p=mesa.git radv: correctly use vulkan 1.0 by default From the vulkan spec 3.2 "Instances": "Providing a NULL VkInstanceCreateInfo::pApplicationInfo or providing an apiVersion of 0 is equivalent to providing an apiVersion of VK_MAKE_VERSION(1,0,0)." Fixes: ffa15861ef7c924a33e1f "radv: UseEnumerateInstanceVersion for the default version." Reviewed-by: Eric Engestrom Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index c2de61c935d..8ba04cd2f58 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -533,7 +533,7 @@ VkResult radv_CreateInstance( pCreateInfo->pApplicationInfo->apiVersion != 0) { client_version = pCreateInfo->pApplicationInfo->apiVersion; } else { - radv_EnumerateInstanceVersion(&client_version); + client_version = VK_API_VERSION_1_0; } instance = vk_zalloc2(&default_alloc, pAllocator, sizeof(*instance), 8,