Lines Matching refs:fence
43 struct swr_fence *fence = (struct swr_fence *)userData; in swr_fence_cb() local
46 swr_fence_do_work(fence); in swr_fence_cb()
49 fence->read = userData2; in swr_fence_cb()
58 struct swr_fence *fence = swr_fence(fh); in swr_fence_submit() local
60 fence->write++; in swr_fence_submit()
61 fence->pending = TRUE; in swr_fence_submit()
62 ctx->api.pfnSwrSync(ctx->swrContext, swr_fence_cb, (uint64_t)fence, fence->write, 0); in swr_fence_submit()
72 struct swr_fence *fence = CALLOC_STRUCT(swr_fence); in swr_fence_create() local
73 if (!fence) in swr_fence_create()
76 pipe_reference_init(&fence->reference, 1); in swr_fence_create()
77 fence->id = fence_id++; in swr_fence_create()
78 fence->work.tail = &fence->work.head; in swr_fence_create()
80 return (struct pipe_fence_handle *)fence; in swr_fence_create()
85 swr_fence_destroy(struct swr_fence *fence) in swr_fence_destroy() argument
88 swr_fence_do_work(fence); in swr_fence_destroy()
89 FREE(fence); in swr_fence_destroy()
100 struct swr_fence *fence = swr_fence(f); in swr_fence_reference() local
110 if (pipe_reference(&old->reference, &fence->reference)) { in swr_fence_reference()