mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
aux/vk: Tidy get/import functions for native handles (NFC)
This commit is contained in:
parent
77ba132452
commit
29acdba23f
|
@ -130,18 +130,17 @@ def get_device_cmds():
|
|||
Cmd("vkQueuePresentKHR"),
|
||||
None,
|
||||
Cmd("vkGetMemoryWin32HandleKHR", requires=("VK_USE_PLATFORM_WIN32_KHR",)),
|
||||
Cmd("vkImportSemaphoreWin32HandleKHR", requires=("VK_USE_PLATFORM_WIN32_KHR",)),
|
||||
Cmd("vkImportFenceWin32HandleKHR", requires=("VK_USE_PLATFORM_WIN32_KHR",)),
|
||||
Cmd("vkGetFenceWin32HandleKHR", requires=("VK_USE_PLATFORM_WIN32_KHR",)),
|
||||
Cmd("vkGetSemaphoreWin32HandleKHR", requires=("VK_USE_PLATFORM_WIN32_KHR",)),
|
||||
Cmd("vkImportFenceWin32HandleKHR", requires=("VK_USE_PLATFORM_WIN32_KHR",)),
|
||||
Cmd("vkImportSemaphoreWin32HandleKHR", requires=("VK_USE_PLATFORM_WIN32_KHR",)),
|
||||
None,
|
||||
Cmd("vkGetMemoryFdKHR", requires=("!defined(VK_USE_PLATFORM_WIN32_KHR)",)),
|
||||
None,
|
||||
Cmd(
|
||||
"vkImportSemaphoreFdKHR", requires=("!defined(VK_USE_PLATFORM_WIN32_KHR)",)
|
||||
),
|
||||
Cmd("vkGetSemaphoreFdKHR", requires=("!defined(VK_USE_PLATFORM_WIN32_KHR)",)),
|
||||
None,
|
||||
Cmd("vkImportFenceFdKHR", requires=("!defined(VK_USE_PLATFORM_WIN32_KHR)",)),
|
||||
Cmd("vkGetFenceFdKHR", requires=("!defined(VK_USE_PLATFORM_WIN32_KHR)",)),
|
||||
Cmd("vkGetSemaphoreFdKHR", requires=("!defined(VK_USE_PLATFORM_WIN32_KHR)",)),
|
||||
Cmd("vkImportFenceFdKHR", requires=("!defined(VK_USE_PLATFORM_WIN32_KHR)",)),
|
||||
Cmd("vkImportSemaphoreFdKHR", requires=("!defined(VK_USE_PLATFORM_WIN32_KHR)",)),
|
||||
None,
|
||||
Cmd(
|
||||
"vkGetMemoryAndroidHardwareBufferANDROID",
|
||||
requires=("VK_USE_PLATFORM_ANDROID_KHR",),
|
||||
|
|
|
@ -1202,19 +1202,20 @@ vk_get_device_functions(struct vk_bundle *vk)
|
|||
|
||||
#if defined(VK_USE_PLATFORM_WIN32_KHR)
|
||||
vk->vkGetMemoryWin32HandleKHR = GET_DEV_PROC(vk, vkGetMemoryWin32HandleKHR);
|
||||
vk->vkImportSemaphoreWin32HandleKHR = GET_DEV_PROC(vk, vkImportSemaphoreWin32HandleKHR);
|
||||
vk->vkImportFenceWin32HandleKHR = GET_DEV_PROC(vk, vkImportFenceWin32HandleKHR);
|
||||
vk->vkGetFenceWin32HandleKHR = GET_DEV_PROC(vk, vkGetFenceWin32HandleKHR);
|
||||
vk->vkGetSemaphoreWin32HandleKHR = GET_DEV_PROC(vk, vkGetSemaphoreWin32HandleKHR);
|
||||
vk->vkImportFenceWin32HandleKHR = GET_DEV_PROC(vk, vkImportFenceWin32HandleKHR);
|
||||
vk->vkImportSemaphoreWin32HandleKHR = GET_DEV_PROC(vk, vkImportSemaphoreWin32HandleKHR);
|
||||
|
||||
#endif // defined(VK_USE_PLATFORM_WIN32_KHR)
|
||||
|
||||
#if !defined(VK_USE_PLATFORM_WIN32_KHR)
|
||||
vk->vkGetMemoryFdKHR = GET_DEV_PROC(vk, vkGetMemoryFdKHR);
|
||||
|
||||
vk->vkImportSemaphoreFdKHR = GET_DEV_PROC(vk, vkImportSemaphoreFdKHR);
|
||||
vk->vkGetSemaphoreFdKHR = GET_DEV_PROC(vk, vkGetSemaphoreFdKHR);
|
||||
|
||||
vk->vkImportFenceFdKHR = GET_DEV_PROC(vk, vkImportFenceFdKHR);
|
||||
vk->vkGetFenceFdKHR = GET_DEV_PROC(vk, vkGetFenceFdKHR);
|
||||
vk->vkGetSemaphoreFdKHR = GET_DEV_PROC(vk, vkGetSemaphoreFdKHR);
|
||||
vk->vkImportFenceFdKHR = GET_DEV_PROC(vk, vkImportFenceFdKHR);
|
||||
vk->vkImportSemaphoreFdKHR = GET_DEV_PROC(vk, vkImportSemaphoreFdKHR);
|
||||
|
||||
#endif // !defined(VK_USE_PLATFORM_WIN32_KHR)
|
||||
|
||||
#if defined(VK_USE_PLATFORM_ANDROID_KHR)
|
||||
|
|
|
@ -300,19 +300,20 @@ struct vk_bundle
|
|||
|
||||
#if defined(VK_USE_PLATFORM_WIN32_KHR)
|
||||
PFN_vkGetMemoryWin32HandleKHR vkGetMemoryWin32HandleKHR;
|
||||
PFN_vkImportSemaphoreWin32HandleKHR vkImportSemaphoreWin32HandleKHR;
|
||||
PFN_vkImportFenceWin32HandleKHR vkImportFenceWin32HandleKHR;
|
||||
PFN_vkGetFenceWin32HandleKHR vkGetFenceWin32HandleKHR;
|
||||
PFN_vkGetSemaphoreWin32HandleKHR vkGetSemaphoreWin32HandleKHR;
|
||||
PFN_vkImportFenceWin32HandleKHR vkImportFenceWin32HandleKHR;
|
||||
PFN_vkImportSemaphoreWin32HandleKHR vkImportSemaphoreWin32HandleKHR;
|
||||
|
||||
#endif // defined(VK_USE_PLATFORM_WIN32_KHR)
|
||||
|
||||
#if !defined(VK_USE_PLATFORM_WIN32_KHR)
|
||||
PFN_vkGetMemoryFdKHR vkGetMemoryFdKHR;
|
||||
|
||||
PFN_vkImportSemaphoreFdKHR vkImportSemaphoreFdKHR;
|
||||
PFN_vkGetSemaphoreFdKHR vkGetSemaphoreFdKHR;
|
||||
|
||||
PFN_vkImportFenceFdKHR vkImportFenceFdKHR;
|
||||
PFN_vkGetFenceFdKHR vkGetFenceFdKHR;
|
||||
PFN_vkGetSemaphoreFdKHR vkGetSemaphoreFdKHR;
|
||||
PFN_vkImportFenceFdKHR vkImportFenceFdKHR;
|
||||
PFN_vkImportSemaphoreFdKHR vkImportSemaphoreFdKHR;
|
||||
|
||||
#endif // !defined(VK_USE_PLATFORM_WIN32_KHR)
|
||||
|
||||
#if defined(VK_USE_PLATFORM_ANDROID_KHR)
|
||||
|
|
Loading…
Reference in a new issue