mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-26 04:30:34 +01:00
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:ffa15861ef"radv: UseEnumerateInstanceVersion for the default version." Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (cherry picked from commitd12dc39396)
This commit is contained in:
parent
220490cf5f
commit
e362fe26ea
1 changed files with 1 additions and 1 deletions
|
|
@ -525,7 +525,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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue