Lines Matching refs:ctx
161 fence_create(struct fd_context *ctx, struct fd_batch *batch, int fence_fd,
174 fence->ctx = ctx;
176 fence->pipe = fd_pipe_ref(ctx->pipe);
177 fence->screen = ctx->screen;
189 struct fd_context *ctx = fd_context(pctx);
200 assert(ctx->screen->has_syncobj);
201 ret = drmSyncobjFDToHandle(fd_device_fd(ctx->screen->dev), fd, &syncobj);
216 struct fd_context *ctx = fd_context(pctx);
232 if (sync_accumulate("freedreno", &ctx->in_fence_fd, fence->submit_fence.fence_fd)) {
241 struct fd_context *ctx = fd_context(pctx);
244 drmSyncobjSignal(fd_device_fd(ctx->screen->dev), &fence->syncobj, 1);
256 /* NOTE: in the deferred fence case, the pctx we want is the threaded-ctx
260 fence_flush(&fence->ctx->tc->base, fence, PIPE_TIMEOUT_INFINITE);
273 return fence_create(batch->ctx, batch, -1, 0);