vulkan/device-select: fix vkGetInstanceProcAddr self-resolving

vkGetInstanceProcAddr(instance, "vkGetInstanceProcAddr") should return our
vkGetInstanceProcAddr not the next in the chain.

CC: mesa-stable
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8286>
This commit is contained in:
Georg Lehmann 2020-12-31 17:17:34 +01:00 committed by Marge Bot
parent d2524ed4a0
commit 67de6356f8

View file

@ -490,6 +490,8 @@ static void (*get_pdevice_proc_addr(VkInstance instance, const char* name))()
static void (*get_instance_proc_addr(VkInstance instance, const char* name))()
{
if (strcmp(name, "vkGetInstanceProcAddr") == 0)
return (void(*)())get_instance_proc_addr;
if (strcmp(name, "vkCreateInstance") == 0)
return (void(*)())device_select_CreateInstance;
if (strcmp(name, "vkDestroyInstance") == 0)