Lines Matching refs:ctx

315    if (sctx->ctx)
316 sctx->ws->ctx_destroy(sctx->ctx);
362 static enum pipe_reset_status si_get_reset_status(struct pipe_context *ctx)
364 struct si_context *sctx = (struct si_context *)ctx;
369 enum pipe_reset_status status = sctx->ws->ctx_query_reset_status(sctx->ctx, false, &needs_reset);
380 static void si_set_device_reset_callback(struct pipe_context *ctx,
383 struct si_context *sctx = (struct si_context *)ctx;
399 static void si_emit_string_marker(struct pipe_context *ctx, const char *string, int len)
401 struct si_context *sctx = (struct si_context *)ctx;
412 static void si_set_debug_callback(struct pipe_context *ctx, const struct util_debug_callback *cb)
414 struct si_context *sctx = (struct si_context *)ctx;
426 static void si_set_log_context(struct pipe_context *ctx, struct u_log_context *log)
428 struct si_context *sctx = (struct si_context *)ctx;
435 static void si_set_context_param(struct pipe_context *ctx, enum pipe_context_param param,
438 struct radeon_winsys *ws = ((struct si_context *)ctx)->ws;
448 static void si_set_frontend_noop(struct pipe_context *ctx, bool enable)
450 struct si_context *sctx = (struct si_context *)ctx;
452 ctx->flush(ctx, NULL, PIPE_FLUSH_ASYNC);
516 sctx->ctx = sctx->ws->ctx_create(sctx->ws, priority);
517 if (!sctx->ctx && priority != RADEON_CTX_PRIORITY_MEDIUM) {
524 sctx->ctx = sctx->ws->ctx_create(sctx->ws, priority);
526 if (!sctx->ctx) {
531 ws->cs_create(&sctx->gfx_cs, sctx->ctx, sctx->has_graphics ? AMD_IP_GFX : AMD_IP_COMPUTE,
805 saux->ctx, true, NULL);
853 struct pipe_context *ctx;
858 ctx = si_create_context(screen, flags);
860 if (ctx && sscreen->info.gfx_level >= GFX9 && sscreen->debug_flags & DBG(SQTT)) {
866 } else if (!si_init_thread_trace((struct si_context *)ctx)) {
867 FREE(ctx);
873 return ctx;
877 return ctx;
882 return ctx;
887 threaded_context_create(ctx, &sscreen->pool_transfers,
895 &((struct si_context *)ctx)->tc);
897 if (tc && tc != ctx)
998 struct pipe_context *ctx = sscreen->aux_context;
999 struct si_context *sctx = (struct si_context *)ctx;
1012 ctx->flush(ctx, NULL, 0);
1016 util_test_constant_buffer(ctx, buf);
1030 ws->cs_create(&cs[i], sctx->ctx, AMD_IP_COMPUTE, NULL, NULL, false);
1060 struct mesa_sha1 ctx;
1064 _mesa_sha1_init(&ctx);
1066 if (!disk_cache_get_function_identifier(si_disk_cache_create, &ctx) ||
1067 !disk_cache_get_function_identifier(LLVMInitializeAMDGPUTargetInfo, &ctx))
1070 _mesa_sha1_final(&ctx, sha1);