Lines Matching defs:fence
49 struct pipe_fence_handle *fence = NULL;
53 * one if not (unless we need a fence)
68 /* With TC_FLUSH_ASYNC, the fence will have been pre-created from
71 * thread. So instead, replace the existing batch->fence with the
75 /* We don't currently expect async+flush in the fence-fd
82 fd_fence_ref(&batch->fence, *fencep);
85 * fence with the current state of the last-fence:
89 fd_fence_ref(&fence, *fencep);
99 } else if (!batch->fence) {
100 batch->fence = fd_fence_create(batch);
104 * not an "fd" fence, which results in eglDupNativeFenceFDANDROID()
112 * a fence, re-use the last one:
115 fd_fence_ref(&fence, ctx->last_fence);
120 /* Take a ref to the batch's fence (batch can be unref'd when flushed: */
121 fd_fence_ref(&fence, batch->fence);
124 fence->submit_fence.use_fence_fd = true;
129 /* If we get here, we need to flush for a fence, even if there is
144 fd_fence_ref(fencep, fence);
146 fd_fence_ref(&ctx->last_fence, fence);
148 fd_fence_ref(&fence, NULL);
274 * If there is a pending fence-fd that we need to sync on, this will