Lines Matching refs:fence

57 				    struct pipe_fence_handle *fence)  in si_add_fence_dependency()  argument
62 ws->cs_add_fence_dependency(rctx->dma.cs, fence); in si_add_fence_dependency()
63 ws->cs_add_fence_dependency(rctx->gfx.cs, fence); in si_add_fence_dependency()
86 struct si_multi_fence *fence = CALLOC_STRUCT(si_multi_fence); in si_create_multi_fence() local
87 if (!fence) in si_create_multi_fence()
90 pipe_reference_init(&fence->reference, 1); in si_create_multi_fence()
91 util_queue_fence_init(&fence->ready); in si_create_multi_fence()
93 return fence; in si_create_multi_fence()
99 struct si_multi_fence *fence = si_create_multi_fence(); in si_create_fence() local
100 if (!fence) in si_create_fence()
103 util_queue_fence_reset(&fence->ready); in si_create_fence()
104 tc_unflushed_batch_token_reference(&fence->tc_token, tc_token); in si_create_fence()
106 return (struct pipe_fence_handle *)fence; in si_create_fence()
110 struct pipe_fence_handle *fence) in si_fence_server_sync() argument
113 struct si_multi_fence *rfence = (struct si_multi_fence *)fence; in si_fence_server_sync()
141 uint32_t *fence = (uint32_t*)(map + fine->offset); in si_fine_fence_signaled() local
142 return *fence != 0; in si_fine_fence_signaled()
186 struct pipe_fence_handle *fence, in si_fence_finish() argument
190 struct si_multi_fence *rfence = (struct si_multi_fence *)fence; in si_fence_finish()
326 struct pipe_fence_handle *fence) in si_fence_get_fd() argument
330 struct si_multi_fence *rfence = (struct si_multi_fence *)fence; in si_fence_get_fd()
373 struct pipe_fence_handle **fence, in si_flush_from_st() argument
390 assert(fence); in si_flush_from_st()
397 rctx->dma.flush(rctx, rflags, fence ? &sdma_fence : NULL); in si_flush_from_st()
400 if (fence) in si_flush_from_st()
413 fence) { in si_flush_from_st()
417 rctx->gfx.flush(rctx, rflags, fence ? &gfx_fence : NULL); in si_flush_from_st()
422 if (fence) { in si_flush_from_st()
426 multi_fence = (struct si_multi_fence *)*fence; in si_flush_from_st()
436 screen->fence_reference(screen, fence, NULL); in si_flush_from_st()
437 *fence = (struct pipe_fence_handle*)multi_fence; in si_flush_from_st()