diff options
author | Niklas Haas <[email protected]> | 2018-11-23 00:32:29 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-01-27 12:49:28 +0100 |
commit | d12dc3939620dcc942523a30a7fcc3271e751a6c (patch) | |
tree | cb16be12246ef979363059729c47e51d4bed6ed3 /src | |
parent | d9bd3b1cb874c44e4250c28605031ddf1c520cd1 (diff) |
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |