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