Lines Matching refs:ctx
256 util_begin_pipestat_query(struct pipe_context *ctx)
259 ctx->create_query(ctx, PIPE_QUERY_PIPELINE_STATISTICS, 0);
263 ctx->begin_query(ctx, q);
269 util_end_pipestat_query(struct pipe_context *ctx, struct pipe_query *q,
275 ctx->end_query(ctx, q);
276 ctx->get_query_result(ctx, q, true, (void*)&stats);
277 ctx->destroy_query(ctx, q);
308 util_begin_time_query(struct pipe_context *ctx)
311 ctx->create_query(ctx, PIPE_QUERY_TIME_ELAPSED, 0);
315 ctx->begin_query(ctx, q);
321 util_end_time_query(struct pipe_context *ctx, struct pipe_query *q, FILE *f,
326 ctx->end_query(ctx, q);
327 ctx->get_query_result(ctx, q, true, &result);
328 ctx->destroy_query(ctx, q);
335 util_wait_for_idle(struct pipe_context *ctx)
339 ctx->flush(ctx, &fence, 0);
340 ctx->screen->fence_finish(ctx->screen, NULL, fence, PIPE_TIMEOUT_INFINITE);