vulkan,anv: Move GetDeviceProcAddr to common code

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8676>
This commit is contained in:
Jason Ekstrand 2021-01-24 14:29:28 -06:00 committed by Marge Bot
parent 94d02e8dea
commit f8bc9a4e7a
2 changed files with 8 additions and 8 deletions

View file

@ -2357,14 +2357,6 @@ VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetInstanceProcAddr(
return anv_GetInstanceProcAddr(instance, pName);
}
PFN_vkVoidFunction anv_GetDeviceProcAddr(
VkDevice _device,
const char* pName)
{
ANV_FROM_HANDLE(anv_device, device, _device);
return vk_device_get_proc_addr(&device->vk, pName);
}
/* With version 4+ of the loader interface the ICD should expose
* vk_icdGetPhysicalDeviceProcAddr()
*/

View file

@ -111,3 +111,11 @@ vk_device_get_proc_addr(const struct vk_device *device,
&instance->enabled_extensions,
&device->enabled_extensions);
}
PFN_vkVoidFunction
vk_common_GetDeviceProcAddr(VkDevice _device,
const char *pName)
{
VK_FROM_HANDLE(vk_device, device, _device);
return vk_device_get_proc_addr(device, pName);
}