Lines Matching refs:pFence
2901 auto pFence = GetFenceState(submission.fence); in RetireWorkOnQueue() local
2902 if (pFence && pFence->scope == kSyncScopeInternal) { in RetireWorkOnQueue()
2903 pFence->state = FENCE_RETIRED; in RetireWorkOnQueue()
2918 static void SubmitFence(QUEUE_STATE *pQueue, FENCE_STATE *pFence, uint64_t submitCount) { in SubmitFence() argument
2919 pFence->state = FENCE_INFLIGHT; in SubmitFence()
2920 pFence->signaler.first = pQueue->queue; in SubmitFence()
2921 pFence->signaler.second = pQueue->seq + pQueue->submissions.size() + submitCount; in SubmitFence()
3070 bool CoreChecks::ValidateFenceForSubmit(const FENCE_STATE *pFence) const { in ValidateFenceForSubmit()
3073 if (pFence && pFence->scope == kSyncScopeInternal) { in ValidateFenceForSubmit()
3074 if (pFence->state == FENCE_INFLIGHT) { in ValidateFenceForSubmit()
3078 HandleToUint64(pFence->fence), kVUID_Core_DrawState_InvalidFence, in ValidateFenceForSubmit()
3079 … "%s is already in use by another submission.", report_data->FormatHandle(pFence->fence).c_str()); in ValidateFenceForSubmit()
3082 else if (pFence->state == FENCE_RETIRED) { in ValidateFenceForSubmit()
3086 HandleToUint64(pFence->fence), kVUID_Core_MemTrack_FenceState, in ValidateFenceForSubmit()
3088 report_data->FormatHandle(pFence->fence).c_str()); in ValidateFenceForSubmit()
3099 auto pFence = GetFenceState(fence); in PostCallRecordQueueSubmit() local
3101 if (pFence) { in PostCallRecordQueueSubmit()
3102 if (pFence->scope == kSyncScopeInternal) { in PostCallRecordQueueSubmit()
3104 SubmitFence(pQueue, pFence, std::max(1u, submitCount)); in PostCallRecordQueueSubmit()
3314 const auto *pFence = GetFenceState(fence); in PreCallValidateQueueSubmit() local
3315 bool skip = ValidateFenceForSubmit(pFence); in PreCallValidateQueueSubmit()
4026 auto pFence = GetFenceState(fence); in RetireFence() local
4027 if (pFence && pFence->scope == kSyncScopeInternal) { in RetireFence()
4028 if (pFence->signaler.first != VK_NULL_HANDLE) { in RetireFence()
4030 RetireWorkOnQueue(GetQueueState(pFence->signaler.first), pFence->signaler.second, true); in RetireFence()
4034 pFence->state = FENCE_RETIRED; in RetireFence()
4882 auto pFence = GetFenceState(pFences[i]); in PreCallValidateResetFences() local
4883 if (pFence && pFence->scope == kSyncScopeInternal && pFence->state == FENCE_INFLIGHT) { in PreCallValidateResetFences()
4894 auto pFence = GetFenceState(pFences[i]); in PostCallRecordResetFences() local
4895 if (pFence) { in PostCallRecordResetFences()
4896 if (pFence->scope == kSyncScopeInternal) { in PostCallRecordResetFences()
4897 pFence->state = FENCE_UNSIGNALED; in PostCallRecordResetFences()
4898 } else if (pFence->scope == kSyncScopeExternalTemporary) { in PostCallRecordResetFences()
4899 pFence->scope = kSyncScopeInternal; in PostCallRecordResetFences()
4984 … const VkAllocationCallbacks *pAllocator, VkFence *pFence, VkResult result) { in PostCallRecordCreateFence() argument
4987 fence_state->fence = *pFence; in PostCallRecordCreateFence()
4990 fenceMap[*pFence] = std::move(fence_state); in PostCallRecordCreateFence()
12140 auto pFence = GetFenceState(fence); in PreCallValidateQueueBindSparse() local
12141 bool skip = ValidateFenceForSubmit(pFence); in PreCallValidateQueueBindSparse()
12274 auto pFence = GetFenceState(fence); in PostCallRecordQueueBindSparse() local
12277 if (pFence) { in PostCallRecordQueueBindSparse()
12278 if (pFence->scope == kSyncScopeInternal) { in PostCallRecordQueueBindSparse()
12279 SubmitFence(pQueue, pFence, std::max(1u, bindInfoCount)); in PostCallRecordQueueBindSparse()
13237 auto pFence = GetFenceState(fence); in ValidateAcquireNextImage() local
13238 if (pFence) { in ValidateAcquireNextImage()
13239 skip |= ValidateFenceForSubmit(pFence); in ValidateAcquireNextImage()
13295 auto pFence = GetFenceState(fence); in RecordAcquireNextImageState() local
13296 if (pFence && pFence->scope == kSyncScopeInternal) { in RecordAcquireNextImageState()
13299 pFence->state = FENCE_INFLIGHT; in RecordAcquireNextImageState()
13300 …pFence->signaler.first = VK_NULL_HANDLE; // ANI isn't on a queue, so this can't participate in a … in RecordAcquireNextImageState()