From 006633c0438e652b4704d4636e712d566dce4fdc Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 1 Oct 2021 17:28:31 -0500 Subject: [PATCH] lavapipe: Use vk_instance_get_proc_addr_unchecked for WSI It exists precisely to handle this case without the driver looking up trampolines itself. This is nearly identical to what ANV does. Reviewed-by: Dylan Baker Part-of: --- src/gallium/frontends/lavapipe/lvp_wsi.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/gallium/frontends/lavapipe/lvp_wsi.c b/src/gallium/frontends/lavapipe/lvp_wsi.c index 2a4562abf32..5d74e856abe 100644 --- a/src/gallium/frontends/lavapipe/lvp_wsi.c +++ b/src/gallium/frontends/lavapipe/lvp_wsi.c @@ -27,17 +27,7 @@ static VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL lvp_wsi_proc_addr(VkPhysicalDevice physicalDevice, const char *pName) { LVP_FROM_HANDLE(lvp_physical_device, pdevice, physicalDevice); - PFN_vkVoidFunction func; - - func = vk_instance_dispatch_table_get(&pdevice->vk.instance->dispatch_table, pName); - if (func != NULL) - return func; - - func = vk_physical_device_dispatch_table_get(&pdevice->vk.dispatch_table, pName); - if (func != NULL) - return func; - - return vk_device_dispatch_table_get(&vk_device_trampolines, pName); + return vk_instance_get_proc_addr_unchecked(pdevice->vk.instance, pName); } VkResult