From d12dc3939620dcc942523a30a7fcc3271e751a6c Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 23 Nov 2018 00:32:29 +0100 Subject: [PATCH] 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 --- src/amd/vulkan/radv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2