Lines Matching refs:sync
564 VkSync sync; in initializeVkSyncObjects() local
590 res = vkCreateFence(mDevice, &fence_ci, NULL, &sync.fence); in initializeVkSyncObjects()
599 res = vkCreateSemaphore(mDevice, &semaphore_ci, NULL, &sync.semaphore); in initializeVkSyncObjects()
606 res = vkAllocateCommandBuffers(mDevice, &present_cmd_info, &sync.command); in initializeVkSyncObjects()
619 res = vkBeginCommandBuffer(sync.command, &cmd_buf_info); in initializeVkSyncObjects()
631 res = vkCreateEvent(mDevice, &event_info, NULL, &sync.event); in initializeVkSyncObjects()
637 vkCmdSetEvent(sync.command, sync.event, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT); in initializeVkSyncObjects()
639 res = vkEndCommandBuffer(sync.command); in initializeVkSyncObjects()
645 mFreeSync[queue].push_back(sync); in initializeVkSyncObjects()
654 VkSync sync = mPendingSync[it->first].front(); in destroyVkSyncObjects() local
656 vkWaitForFences(mDevice, 1, &sync.fence, VK_TRUE, UINT64_MAX); in destroyVkSyncObjects()
657 vkResetFences(mDevice, 1, &sync.fence); in destroyVkSyncObjects()
658 mFreeSync[it->first].push_back(sync); in destroyVkSyncObjects()
662 VkSync sync = mFreeSync[it->first].front(); in destroyVkSyncObjects() local
664 vkFreeCommandBuffers(mDevice, mCommandPool[it->first], 1, &sync.command); in destroyVkSyncObjects()
665 vkDestroyEvent(mDevice, sync.event, NULL); in destroyVkSyncObjects()
666 vkDestroySemaphore(mDevice, sync.semaphore, NULL); in destroyVkSyncObjects()
667 vkDestroyFence(mDevice, sync.fence, NULL); in destroyVkSyncObjects()
677 VkSync sync = mPendingSync[queue].front(); in waitForFenceChoreographer() local
680 if (vkWaitForFences(mDevice, 1, &sync.fence, VK_TRUE, 0) == VK_TIMEOUT) { in waitForFenceChoreographer()
690 vkResetFences(mDevice, 1, &sync.fence); in waitForFenceChoreographer()
691 mFreeSync[queue].push_back(sync); in waitForFenceChoreographer()
733 VkSync sync = mFreeSync[queue].front(); in doQueuePresent() local
735 mPendingSync[queue].push_back(sync); in doQueuePresent()
746 submit_info.pCommandBuffers = &sync.command; in doQueuePresent()
748 submit_info.pSignalSemaphores = &sync.semaphore; in doQueuePresent()
749 ret = vkQueueSubmit(queue, 1, &submit_info, sync.fence); in doQueuePresent()
760 &sync.semaphore, in doQueuePresent()