mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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:
parent
94d02e8dea
commit
f8bc9a4e7a
2 changed files with 8 additions and 8 deletions
|
|
@ -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()
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue