Lines Matching defs:fence

243     /* +1 because we add the fence of the current buffer before popping an old one */
462 * swap_fences_pop_front - pull a fence from the throttle queue
466 * number of fences, and return the last fence pulled.
472 struct pipe_fence_handle *fence = NULL;
478 screen->fence_reference(screen, &fence, This->swap_fences[This->tail]);
483 return fence;
497 struct pipe_fence_handle *fence = NULL;
503 screen->fence_reference(screen, &fence, This->swap_fences[This->tail]);
505 return fence;
510 * swap_fences_push_back - push a fence onto the throttle queue at the back
512 * push a fence onto the throttle queue and pull fences of the queue
517 struct pipe_fence_handle *fence)
521 if (!fence || This->desired_fences == 0)
529 fence);
699 struct pipe_fence_handle *fence,
705 This->screen->fence_reference(This->screen, &work->fence_to_wait, fence);
726 struct pipe_fence_handle *fence;
891 fence = NULL;
892 /* When threadpool is enabled, we don't submit before the fence
894 pipe->flush(pipe, &fence, PIPE_FLUSH_END_OF_FRAME | (This->enable_threadpool ? PIPE_FLUSH_ASYNC : 0));
896 /* Present now for thread_submit, because we have the fence.
900 pend_present(This, fence, hDestWindowOverride);
901 if (fence) {
902 swap_fences_push_back(This, fence);
903 This->screen->fence_reference(This->screen, &fence, NULL);
912 fence = swap_fences_see_front(This);
913 if (fence) {
914 still_draw = !This->screen->fence_finish(This->screen, NULL, fence, 0);
915 This->screen->fence_reference(This->screen, &fence, NULL);
922 fence = swap_fences_pop_front(This);
923 if (fence) {
924 (void) This->screen->fence_finish(This->screen, NULL, fence, PIPE_TIMEOUT_INFINITE);
925 This->screen->fence_reference(This->screen, &fence, NULL);