Lines Matching defs:work
688 struct end_present_struct *work = data;
689 if (work->fence_to_wait) {
690 (void) work->screen->fence_finish(work->screen, NULL, work->fence_to_wait, PIPE_TIMEOUT_INFINITE);
691 work->screen->fence_reference(work->screen, &(work->fence_to_wait), NULL);
693 ID3DPresent_PresentBuffer(work->present, work->present_handle, work->hDestWindowOverride, NULL, NULL, NULL, 0);
694 p_atomic_set(work->pending_presentation, FALSE);
695 free(work);
702 struct end_present_struct *work = calloc(1, sizeof(struct end_present_struct));
704 work->screen = This->screen;
705 This->screen->fence_reference(This->screen, &work->fence_to_wait, fence);
706 work->present = This->present;
707 work->present_handle = This->present_handles[0];
708 work->hDestWindowOverride = hDestWindowOverride;
709 work->pending_presentation = This->pending_presentation[0];
710 p_atomic_set(work->pending_presentation, TRUE);
711 This->tasks[0] = _mesa_threadpool_queue_task(This->pool, work_present, work);