Home
last modified time | relevance | path

Searched refs:fence (Results 1 – 25 of 185) sorted by relevance

12345678

/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_fence.c34 nouveau_fence_new(struct nouveau_screen *screen, struct nouveau_fence **fence, in nouveau_fence_new() argument
37 *fence = CALLOC_STRUCT(nouveau_fence); in nouveau_fence_new()
38 if (!*fence) in nouveau_fence_new()
41 (*fence)->screen = screen; in nouveau_fence_new()
42 (*fence)->ref = 1; in nouveau_fence_new()
43 LIST_INITHEAD(&(*fence)->work); in nouveau_fence_new()
46 nouveau_fence_emit(*fence); in nouveau_fence_new()
52 nouveau_fence_trigger_work(struct nouveau_fence *fence) in nouveau_fence_trigger_work() argument
56 LIST_FOR_EACH_ENTRY_SAFE(work, tmp, &fence->work, list) { in nouveau_fence_trigger_work()
64 nouveau_fence_work(struct nouveau_fence *fence, in nouveau_fence_work() argument
[all …]
Dnouveau_fence.h41 nouveau_fence_ref(struct nouveau_fence *fence, struct nouveau_fence **ref) in nouveau_fence_ref() argument
43 if (fence) in nouveau_fence_ref()
44 ++fence->ref; in nouveau_fence_ref()
51 *ref = fence; in nouveau_fence_ref()
55 nouveau_fence(struct pipe_fence_handle *fence) in nouveau_fence() argument
57 return (struct nouveau_fence *)fence; in nouveau_fence()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_fence.c48 struct lp_fence *fence = CALLOC_STRUCT(lp_fence); in lp_fence_create() local
50 if (!fence) in lp_fence_create()
53 pipe_reference_init(&fence->reference, 1); in lp_fence_create()
55 pipe_mutex_init(fence->mutex); in lp_fence_create()
56 pipe_condvar_init(fence->signalled); in lp_fence_create()
58 fence->id = fence_id++; in lp_fence_create()
59 fence->rank = rank; in lp_fence_create()
62 debug_printf("%s %d\n", __FUNCTION__, fence->id); in lp_fence_create()
64 return fence; in lp_fence_create()
70 lp_fence_destroy(struct lp_fence *fence) in lp_fence_destroy() argument
[all …]
Dlp_query.c70 if (pq->fence) { in llvmpipe_destroy_query()
71 if (!lp_fence_issued(pq->fence)) in llvmpipe_destroy_query()
74 if (!lp_fence_signalled(pq->fence)) in llvmpipe_destroy_query()
75 lp_fence_wait(pq->fence); in llvmpipe_destroy_query()
77 lp_fence_reference(&pq->fence, NULL); in llvmpipe_destroy_query()
94 if (!pq->fence) { in llvmpipe_get_query_result()
100 if (!lp_fence_signalled(pq->fence)) { in llvmpipe_get_query_result()
101 if (!lp_fence_issued(pq->fence)) in llvmpipe_get_query_result()
107 lp_fence_wait(pq->fence); in llvmpipe_get_query_result()
131 if (pq->fence && !lp_fence_issued(pq->fence)) { in llvmpipe_begin_query()
Dlp_fence.h60 lp_fence_signal(struct lp_fence *fence);
63 lp_fence_signalled(struct lp_fence *fence);
66 lp_fence_wait(struct lp_fence *fence);
73 lp_fence_destroy(struct lp_fence *fence);
89 lp_fence_issued(const struct lp_fence *fence) in lp_fence_issued() argument
91 return fence->issued; in lp_fence_issued()
Dlp_flush.c47 struct pipe_fence_handle **fence, in llvmpipe_flush() argument
55 lp_setup_flush(llvmpipe->setup, fence, reason); in llvmpipe_flush()
81 struct pipe_fence_handle *fence = NULL; in llvmpipe_finish() local
82 llvmpipe_flush(pipe, &fence, reason); in llvmpipe_finish()
83 if (fence) { in llvmpipe_finish()
84 pipe->screen->fence_finish(pipe->screen, fence, PIPE_TIMEOUT_INFINITE); in llvmpipe_finish()
85 pipe->screen->fence_reference(pipe->screen, &fence, NULL); in llvmpipe_finish()
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_fence.c67 vmw_fence(struct pipe_fence_handle *fence) in vmw_fence() argument
69 return (struct vmw_fence *) fence; in vmw_fence()
83 struct vmw_fence *fence = CALLOC_STRUCT(vmw_fence); in vmw_fence_create() local
85 if (!fence) in vmw_fence_create()
88 p_atomic_set(&fence->refcount, 1); in vmw_fence_create()
89 fence->handle = handle; in vmw_fence_create()
90 fence->mask = mask; in vmw_fence_create()
91 p_atomic_set(&fence->signalled, 0); in vmw_fence_create()
93 return (struct pipe_fence_handle *) fence; in vmw_fence_create()
122 struct pipe_fence_handle *fence) in vmw_fence_reference() argument
[all …]
/external/mesa3d/src/gallium/winsys/i915/drm/
Di915_drm_fence.c23 struct i915_drm_fence *fence = CALLOC_STRUCT(i915_drm_fence); in i915_drm_fence_create() local
25 pipe_reference_init(&fence->reference, 1); in i915_drm_fence_create()
29 fence->bo = bo; in i915_drm_fence_create()
32 return (struct pipe_fence_handle *)fence; in i915_drm_fence_create()
38 struct pipe_fence_handle *fence) in i915_drm_fence_reference() argument
41 struct i915_drm_fence *f = (struct i915_drm_fence *)fence; in i915_drm_fence_reference()
48 *ptr = fence; in i915_drm_fence_reference()
53 struct pipe_fence_handle *fence) in i915_drm_fence_signalled() argument
55 struct i915_drm_fence *f = (struct i915_drm_fence *)fence; in i915_drm_fence_signalled()
66 struct pipe_fence_handle *fence) in i915_drm_fence_finish() argument
[all …]
/external/mesa3d/src/gallium/winsys/i915/sw/
Di915_sw_fence.c15 struct i915_sw_fence *fence = CALLOC_STRUCT(i915_sw_fence); in i915_sw_fence_create() local
17 pipe_reference_init(&fence->reference, 1); in i915_sw_fence_create()
19 return (struct pipe_fence_handle *)fence; in i915_sw_fence_create()
25 struct pipe_fence_handle *fence) in i915_sw_fence_reference() argument
28 struct i915_sw_fence *f = (struct i915_sw_fence *)fence; in i915_sw_fence_reference()
33 *ptr = fence; in i915_sw_fence_reference()
38 struct pipe_fence_handle *fence) in i915_sw_fence_signalled() argument
47 struct pipe_fence_handle *fence) in i915_sw_fence_finish() argument
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_flush.c47 struct pipe_fence_handle **fence ) in softpipe_flush() argument
99 if (fence) in softpipe_flush()
100 *fence = (void*)(intptr_t)1; in softpipe_flush()
105 struct pipe_fence_handle **fence ) in softpipe_flush_wrapped() argument
107 softpipe_flush(pipe, SP_FLUSH_TEXTURE_CACHE, fence); in softpipe_flush_wrapped()
149 struct pipe_fence_handle *fence = NULL; in softpipe_flush_resource() local
154 softpipe_flush(pipe, flush_flags, &fence); in softpipe_flush_resource()
156 if (fence) { in softpipe_flush_resource()
161 pipe->screen->fence_finish(pipe->screen, fence, in softpipe_flush_resource()
163 pipe->screen->fence_reference(pipe->screen, &fence, NULL); in softpipe_flush_resource()
Dsp_fence.c37 struct pipe_fence_handle *fence) in softpipe_fence_reference() argument
39 *ptr = fence; in softpipe_fence_reference()
45 struct pipe_fence_handle *fence) in softpipe_fence_signalled() argument
47 assert(fence); in softpipe_fence_signalled()
54 struct pipe_fence_handle *fence, in softpipe_fence_finish() argument
57 assert(fence); in softpipe_fence_finish()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_syncobj.c43 struct pipe_fence_handle *fence; member
62 screen->fence_reference(screen, &so->fence, NULL); in st_delete_sync_object()
73 assert(so->fence == NULL); in st_fence_sync()
75 pipe->flush(pipe, &so->fence); in st_fence_sync()
83 if (so->fence && screen->fence_signalled(screen, so->fence)) { in st_check_sync()
84 screen->fence_reference(screen, &so->fence, NULL); in st_check_sync()
99 if (so->fence && in st_client_wait_sync()
100 screen->fence_finish(screen, so->fence, timeout)) { in st_client_wait_sync()
101 screen->fence_reference(screen, &so->fence, NULL); in st_client_wait_sync()
Dst_cb_flush.c80 struct pipe_fence_handle **fence ) in st_flush() argument
86 st->pipe->flush( st->pipe, fence ); in st_flush()
95 struct pipe_fence_handle *fence = NULL; in st_finish() local
97 st_flush(st, &fence); in st_finish()
99 if(fence) { in st_finish()
100 st->pipe->screen->fence_finish(st->pipe->screen, fence, in st_finish()
102 st->pipe->screen->fence_reference(st->pipe->screen, &fence, NULL); in st_finish()
/external/mesa3d/src/gallium/state_trackers/dri/drm/
Ddri_drawable.c296 struct pipe_fence_handle *fence = NULL; in swap_fences_pop_front() local
302 screen->fence_reference(screen, &fence, draw->swap_fences[draw->tail]); in swap_fences_pop_front()
307 return fence; in swap_fences_pop_front()
319 struct pipe_fence_handle *fence) in swap_fences_push_back() argument
323 if (!fence || draw->desired_fences == 0) in swap_fences_push_back()
331 fence); in swap_fences_push_back()
372 struct pipe_fence_handle *fence; in dri_throttle() local
378 fence = swap_fences_pop_front(draw); in dri_throttle()
379 if (fence) { in dri_throttle()
380 (void) screen->fence_finish(screen, fence, PIPE_TIMEOUT_INFINITE); in dri_throttle()
[all …]
/external/mesa3d/src/gallium/state_trackers/dri/sw/
Ddri_drawable.c296 struct pipe_fence_handle *fence = NULL; in swap_fences_pop_front() local
302 screen->fence_reference(screen, &fence, draw->swap_fences[draw->tail]); in swap_fences_pop_front()
307 return fence; in swap_fences_pop_front()
319 struct pipe_fence_handle *fence) in swap_fences_push_back() argument
323 if (!fence || draw->desired_fences == 0) in swap_fences_push_back()
331 fence); in swap_fences_push_back()
372 struct pipe_fence_handle *fence; in dri_throttle() local
378 fence = swap_fences_pop_front(draw); in dri_throttle()
379 if (fence) { in dri_throttle()
380 (void) screen->fence_finish(screen, fence, PIPE_TIMEOUT_INFINITE); in dri_throttle()
[all …]
/external/mesa3d/src/gallium/state_trackers/dri/common/
Ddri_drawable.c296 struct pipe_fence_handle *fence = NULL; in swap_fences_pop_front() local
302 screen->fence_reference(screen, &fence, draw->swap_fences[draw->tail]); in swap_fences_pop_front()
307 return fence; in swap_fences_pop_front()
319 struct pipe_fence_handle *fence) in swap_fences_push_back() argument
323 if (!fence || draw->desired_fences == 0) in swap_fences_push_back()
331 fence); in swap_fences_push_back()
372 struct pipe_fence_handle *fence; in dri_throttle() local
378 fence = swap_fences_pop_front(draw); in dri_throttle()
379 if (fence) { in dri_throttle()
380 (void) screen->fence_finish(screen, fence, PIPE_TIMEOUT_INFINITE); in dri_throttle()
[all …]
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_buffer_fenced.c148 struct pipe_fence_handle *fence; member
210 assert(!fenced_buf->fence); in fenced_manager_dump_locked()
226 signaled = ops->fence_signalled(ops, fenced_buf->fence, 0); in fenced_manager_dump_locked()
232 (void *) fenced_buf->fence, in fenced_manager_dump_locked()
249 assert(!fenced_buf->fence); in fenced_buffer_destroy_locked()
274 assert(fenced_buf->fence); in fenced_buffer_add_locked()
298 assert(fenced_buf->fence); in fenced_buffer_remove_locked()
301 ops->fence_reference(ops, &fenced_buf->fence, NULL); in fenced_buffer_remove_locked()
341 assert(fenced_buf->fence); in fenced_buffer_finish_locked()
343 if(fenced_buf->fence) { in fenced_buffer_finish_locked()
[all …]
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_context.c351 struct xa_fence *fence = calloc(1, sizeof(*fence)); in xa_fence_get() local
354 if (!fence) in xa_fence_get()
357 fence->xa = ctx->xa; in xa_fence_get()
360 fence->pipe_fence = NULL; in xa_fence_get()
362 screen->fence_reference(screen, &fence->pipe_fence, ctx->last_fence); in xa_fence_get()
364 return fence; in xa_fence_get()
368 xa_fence_wait(struct xa_fence *fence, uint64_t timeout) in xa_fence_wait() argument
370 if (!fence) in xa_fence_wait()
373 if (fence->pipe_fence) { in xa_fence_wait()
374 struct pipe_screen *screen = fence->xa->screen; in xa_fence_wait()
[all …]
/external/bison/m4/
Dmemchr.m49 dnl Check for prerequisites for memory fence checks.
45 char *fence = NULL;
62 fence = two_pages + pagesize;
65 if (fence)
67 if (memchr (fence, 0, 0))
69 strcpy (fence - 9, "12345678");
70 if (memchr (fence - 9, 0, 79) != fence - 1)
72 if (memchr (fence - 1, 0, 3) != fence - 1)
/external/libdrm/intel/tests/
Dgm45-3d.batch-ref.txt38 0x12300094: 0x05212040: vs fence: 64, clip_fence: 82, gs_fence: 72
39 0x12300098: 0x18000062: sf fence: 98, vfe_fence: 0, cs_fence: 384
76 0x1230012c: 0x05212040: vs fence: 64, clip_fence: 82, gs_fence: 72
77 0x12300130: 0x18000062: sf fence: 98, vfe_fence: 0, cs_fence: 384
99 0x12300188: 0x05212040: vs fence: 64, clip_fence: 82, gs_fence: 72
100 0x1230018c: 0x18000062: sf fence: 98, vfe_fence: 0, cs_fence: 384
117 0x123001d0: 0x05212040: vs fence: 64, clip_fence: 82, gs_fence: 72
118 0x123001d4: 0x18000062: sf fence: 98, vfe_fence: 0, cs_fence: 384
135 0x12300218: 0x05212040: vs fence: 64, clip_fence: 82, gs_fence: 72
136 0x1230021c: 0x18000062: sf fence: 98, vfe_fence: 0, cs_fence: 384
[all …]
Dgen4-3d.batch-ref.txt37 0x12300090: 0x0320a020: vs fence: 32, clip_fence: 50, gs_fence: 40
38 0x12300094: 0x10000042: sf fence: 66, vfe_fence: 0, cs_fence: 256
75 0x12300128: 0x0320a020: vs fence: 32, clip_fence: 50, gs_fence: 40
76 0x1230012c: 0x10000042: sf fence: 66, vfe_fence: 0, cs_fence: 256
98 0x12300184: 0x0320a020: vs fence: 32, clip_fence: 50, gs_fence: 40
99 0x12300188: 0x10000042: sf fence: 66, vfe_fence: 0, cs_fence: 256
116 0x123001cc: 0x0320a020: vs fence: 32, clip_fence: 50, gs_fence: 40
117 0x123001d0: 0x10000042: sf fence: 66, vfe_fence: 0, cs_fence: 256
134 0x12300214: 0x0320a020: vs fence: 32, clip_fence: 50, gs_fence: 40
135 0x12300218: 0x10000042: sf fence: 66, vfe_fence: 0, cs_fence: 256
[all …]
Dgen5-3d.batch-ref.txt41 0x123000a0: 0x12444100: vs fence: 256, clip_fence: 292, gs_fence: 272
42 0x123000a4: 0x40000184: sf fence: 388, vfe_fence: 0, cs_fence: 1024
82 0x12300144: 0x12444100: vs fence: 256, clip_fence: 292, gs_fence: 272
83 0x12300148: 0x40000184: sf fence: 388, vfe_fence: 0, cs_fence: 1024
106 0x123001a4: 0x12444100: vs fence: 256, clip_fence: 292, gs_fence: 272
107 0x123001a8: 0x40000184: sf fence: 388, vfe_fence: 0, cs_fence: 1024
125 0x123001f0: 0x12444100: vs fence: 256, clip_fence: 292, gs_fence: 272
126 0x123001f4: 0x40000184: sf fence: 388, vfe_fence: 0, cs_fence: 1024
146 0x12300244: 0x12444100: vs fence: 256, clip_fence: 292, gs_fence: 272
147 0x12300248: 0x40000184: sf fence: 388, vfe_fence: 0, cs_fence: 1024
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dradeonsi_pipe.c59 struct r600_fence *fence = NULL; in r600_create_fence() local
84 fence = entry; in r600_create_fence()
90 if (!fence) { in r600_create_fence()
113 fence = &block->fences[index % FENCE_BLOCK_SIZE]; in r600_create_fence()
114 fence->index = index; in r600_create_fence()
117 pipe_reference_init(&fence->reference, 1); in r600_create_fence()
119 rscreen->fences.data[fence->index] = 0; in r600_create_fence()
120 si_context_emit_fence(rctx, rscreen->fences.bo, fence->index, 1); in r600_create_fence()
123 fence->sleep_bo = si_resource_create_custom(&rctx->screen->screen, PIPE_USAGE_STAGING, 1); in r600_create_fence()
126 r600_context_bo_reloc(rctx, fence->sleep_bo, RADEON_USAGE_READWRITE); in r600_create_fence()
[all …]
/external/mesa3d/src/gallium/state_trackers/egl/common/
Degl_g3d_sync.c85 gctx->stctxi->flush(gctx->stctxi, 0x0, &gsync->fence); in egl_g3d_insert_fence_sync()
86 if (!gsync->fence) in egl_g3d_insert_fence_sync()
100 if (gsync->fence) { in egl_g3d_wait_fence_sync()
104 struct pipe_fence_handle *fence = gsync->fence; in egl_g3d_wait_fence_sync() local
106 gsync->fence = NULL; in egl_g3d_wait_fence_sync()
110 screen->fence_finish(screen, fence, PIPE_TIMEOUT_INFINITE); in egl_g3d_wait_fence_sync()
116 screen->fence_reference(screen, &fence, NULL); in egl_g3d_wait_fence_sync()
139 if (gsync->fence) { in egl_g3d_unref_sync()
144 screen->fence_reference(screen, &gsync->fence, NULL); in egl_g3d_unref_sync()
/external/mesa3d/src/gallium/drivers/i915/
Di915_flush.c42 struct pipe_fence_handle **fence ) in i915_flush_pipe() argument
49 if (!fence && i915->batch && (i915->batch->map == i915->batch->ptr)) { in i915_flush_pipe()
55 FLUSH_BATCH(fence); in i915_flush_pipe()
69 void i915_flush(struct i915_context *i915, struct pipe_fence_handle **fence) in i915_flush() argument
73 batch->iws->batchbuffer_flush(batch, fence); in i915_flush()

12345678