Lines Matching refs:semaphore
646 VK_FROM_HANDLE(vk_semaphore, semaphore,
647 info->waits[i].semaphore);
651 * "Applications can import a semaphore payload into an existing
652 * semaphore using an external semaphore handle. The effects of the
655 * implementation must restore the semaphore to its prior permanent
656 * state after submitting the next semaphore wait operation."
663 * VkSemaphoreTypeCreateInfo::semaphoreType field of the semaphore
668 if (semaphore->temporary) {
669 assert(semaphore->type == VK_SEMAPHORE_TYPE_BINARY);
670 sync = submit->_wait_temps[i] = semaphore->temporary;
671 semaphore->temporary = NULL;
673 if (semaphore->type == VK_SEMAPHORE_TYPE_BINARY) {
675 assert(semaphore->permanent.type->move);
679 sync = &semaphore->permanent;
682 uint32_t wait_value = semaphore->type == VK_SEMAPHORE_TYPE_TIMELINE ?
745 VK_FROM_HANDLE(vk_semaphore, semaphore,
746 info->signals[i].semaphore);
748 struct vk_sync *sync = vk_semaphore_get_active_sync(semaphore);
750 if (semaphore->type == VK_SEMAPHORE_TYPE_TIMELINE) {
844 * binary semaphore payloads get reset so that any other threads can
847 * semaphore payloads.
888 VK_FROM_HANDLE(vk_semaphore, semaphore,
889 info->waits[i].semaphore);
891 if (semaphore->type != VK_SEMAPHORE_TYPE_BINARY)
898 * it defines a memory dependency between prior semaphore
899 * signal operations and the batch, and defines semaphore
902 * Such semaphore wait operations set the semaphores
915 * We've already stolen temporary semaphore payloads above as
916 * part of basic semaphore processing. We steal permanent
917 * semaphore payloads here by way of vk_sync_move. For shared
920 * fairly cheap. Also, we only do this semaphore swapping in
924 * waits on binary semaphores AND said binary semaphore is
931 assert(submit->waits[i].sync == &semaphore->permanent);
939 * VK_SEMAPHORE_TYPE_BINARY must reference a semaphore
941 * and any semaphore signal operations on which it depends
955 semaphore->permanent.type,
964 &semaphore->permanent);
1013 * reference a semaphore signal operation that has been submitted for
1014 * execution and any semaphore signal operations on which it depends (if
1032 VK_FROM_HANDLE(vk_semaphore, semaphore,
1042 assert(semaphore->type == VK_SEMAPHORE_TYPE_BINARY);
1045 .sync = vk_semaphore_get_active_sync(semaphore),
1232 .semaphore = pBindInfo[i].pWaitSemaphores[j],
1240 .semaphore = pBindInfo[i].pSignalSemaphores[j],