Lines Matching refs:syncFd

1131     if (semInfo.syncFd.value_or(-1) >= 0) {  in unregister_VkSemaphore()
1134 syncHelper->close(semInfo.syncFd.value()); in unregister_VkSemaphore()
1172 if (fenceInfo.syncFd >= 0) { in unregister_VkFence()
1175 syncHelper->close(fenceInfo.syncFd); in unregister_VkFence()
4489 bool syncFd = pExternalFenceInfo->handleType & VK_EXTERNAL_FENCE_HANDLE_TYPE_SYNC_FD_BIT; in on_vkGetPhysicalDeviceExternalFenceProperties() local
4491 if (!syncFd) { in on_vkGetPhysicalDeviceExternalFenceProperties()
4584 if (info.syncFd >= 0) { in on_vkResetFences()
4586 goldfish_sync_signal(info.syncFd); in on_vkResetFences()
4589 syncHelper->close(info.syncFd); in on_vkResetFences()
4590 info.syncFd = -1; in on_vkResetFences()
4633 if (info.syncFd >= 0) { in on_vkImportFenceFdKHR()
4635 goldfish_sync_signal(info.syncFd); in on_vkImportFenceFdKHR()
4636 syncHelper->close(info.syncFd); in on_vkImportFenceFdKHR()
4642 info.syncFd = -1; in on_vkImportFenceFdKHR()
4645 info.syncFd = syncHelper->dup(pImportFenceFdInfo->fd); in on_vkImportFenceFdKHR()
4729 info.syncFd = -1; in on_vkGetFenceFdKHR()
4755 if (info.syncFd >= 0) { in on_vkWaitForFences()
4757 fencesExternalWaitFds.push_back(info.syncFd); in on_vkWaitForFences()
5113 for (int syncFd : imageInfo.pendingQsriSyncFds) { in on_vkDestroyImage() local
5114 int syncWaitRet = syncHelper->wait(syncFd, 3000); in on_vkDestroyImage()
5119 syncHelper->close(syncFd); in on_vkDestroyImage()
5520 info.syncFd.emplace(osHandle); in on_vkCreateSemaphore()
5526 int syncFd = -1; in on_vkCreateSemaphore() local
5531 &syncFd); in on_vkCreateSemaphore()
5532 info.syncFd.emplace(syncFd); in on_vkCreateSemaphore()
5567 *pFd = syncHelper->dup(semInfo.syncFd.value_or(-1)); in on_vkGetSemaphoreFdKHR()
5608 if (info.syncFd.value_or(-1) >= 0) { in on_vkImportSemaphoreFdKHR()
5609 syncHelper->close(info.syncFd.value()); in on_vkImportSemaphoreFdKHR()
5612 info.syncFd.emplace(pImportSemaphoreFdInfo->fd); in on_vkImportSemaphoreFdKHR()
5901 if (semInfo.syncFd.has_value()) { in on_vkQueueSubmitTemplate()
5902 pre_signal_sync_fds.push_back(semInfo.syncFd.value()); in on_vkQueueSubmitTemplate()
5927 if (semInfo.syncFd.value_or(-1) >= 0) { in on_vkQueueSubmitTemplate()
5928 post_wait_sync_fds.push_back(semInfo.syncFd.value()); in on_vkQueueSubmitTemplate()
5991 if (info.syncFd >= 0) { in on_vkQueueSubmitTemplate()
5992 externalFenceFdToSignal = info.syncFd; in on_vkQueueSubmitTemplate()
7055 int syncFd = *syncFdIt; in exportSyncFdForQSRILocked() local
7056 int syncWaitRet = syncHelper->wait(syncFd, /*timeout msecs*/ 0); in exportSyncFdForQSRILocked()
7060 syncHelper->close(syncFd); in exportSyncFdForQSRILocked()
7113 int syncFd; in on_vkQueueSignalReleaseImageANDROID() local
7114 result = exportSyncFdForQSRILocked(image, &syncFd); in on_vkQueueSignalReleaseImageANDROID()
7116 if (syncFd >= 0) { in on_vkQueueSignalReleaseImageANDROID()
7119 syncHelper->close(syncFd); in on_vkQueueSignalReleaseImageANDROID()