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 <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13156>
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