Lines Matching defs:pctx
57 zink_create_tc_fence_for_tc(struct pipe_context *pctx, struct tc_unflushed_batch_token *tc_token)
144 zink_fence_finish(struct zink_screen *screen, struct pipe_context *pctx, struct zink_tc_fence *mfence,
147 pctx = threaded_context_unwrap_sync(pctx);
148 struct zink_context *ctx = zink_context(pctx);
153 if (pctx && mfence->deferred_ctx == pctx) {
155 zink_context(pctx)->batch.has_work = true;
157 pctx->flush(pctx, NULL, !timeout_ns ? PIPE_FLUSH_ASYNC : 0);
188 fence_finish(struct pipe_screen *pscreen, struct pipe_context *pctx,
191 return zink_fence_finish(zink_screen(pscreen), pctx, zink_tc_fence(pfence),
196 zink_fence_server_signal(struct pipe_context *pctx, struct pipe_fence_handle *pfence)
198 struct zink_context *ctx = zink_context(pctx);
206 pctx->flush(pctx, NULL, 0);
212 zink_fence_server_sync(struct pipe_context *pctx, struct pipe_fence_handle *pfence)
214 struct zink_context *ctx = zink_context(pctx);
217 if (mfence->deferred_ctx == pctx || !mfence->sem)
220 mfence->deferred_ctx = pctx;
231 zink_create_fence_fd(struct pipe_context *pctx, struct pipe_fence_handle **pfence, int fd, enum pipe_fd_type type)
233 struct zink_screen *screen = zink_screen(pctx->screen);