diff --git a/scripts/generate_vk_helpers.py b/scripts/generate_vk_helpers.py index 0070fc07e..4ee9f9913 100755 --- a/scripts/generate_vk_helpers.py +++ b/scripts/generate_vk_helpers.py @@ -104,6 +104,16 @@ def get_device_cmds(): member_name="vkSignalSemaphore", requires=("VK_KHR_timeline_semaphore",), ), + Cmd( + "vkWaitSemaphoresKHR", + member_name="vkWaitSemaphores", + requires=("VK_KHR_timeline_semaphore",), + ), + Cmd( + "vkGetSemaphoreCounterValueKHR", + member_name="vkGetSemaphoreCounterValue", + requires=("VK_KHR_timeline_semaphore",), + ), Cmd("vkDestroySemaphore"), None, Cmd("vkCreateFence"), diff --git a/src/xrt/auxiliary/vk/vk_helpers.c b/src/xrt/auxiliary/vk/vk_helpers.c index f53526628..0007a177f 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.c +++ b/src/xrt/auxiliary/vk/vk_helpers.c @@ -993,6 +993,8 @@ vk_get_device_functions(struct vk_bundle *vk) vk->vkCreateSemaphore = GET_DEV_PROC(vk, vkCreateSemaphore); #if defined(VK_KHR_timeline_semaphore) vk->vkSignalSemaphore = GET_DEV_PROC(vk, vkSignalSemaphoreKHR); + vk->vkWaitSemaphores = GET_DEV_PROC(vk, vkWaitSemaphoresKHR); + vk->vkGetSemaphoreCounterValue = GET_DEV_PROC(vk, vkGetSemaphoreCounterValueKHR); #endif // defined(VK_KHR_timeline_semaphore) vk->vkDestroySemaphore = GET_DEV_PROC(vk, vkDestroySemaphore); diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h index 86fe606ae..9ea902cb1 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.h +++ b/src/xrt/auxiliary/vk/vk_helpers.h @@ -232,6 +232,8 @@ struct vk_bundle PFN_vkCreateSemaphore vkCreateSemaphore; #if defined(VK_KHR_timeline_semaphore) PFN_vkSignalSemaphoreKHR vkSignalSemaphore; + PFN_vkWaitSemaphoresKHR vkWaitSemaphores; + PFN_vkGetSemaphoreCounterValueKHR vkGetSemaphoreCounterValue; #endif // defined(VK_KHR_timeline_semaphore) PFN_vkDestroySemaphore vkDestroySemaphore;