Lines Matching refs:pctx
69 etna_emit_string_marker(struct pipe_context *pctx, const char *string, int len)
71 struct etna_context *ctx = etna_context(pctx);
92 etna_set_frontend_noop(struct pipe_context *pctx, bool enable)
94 struct etna_context *ctx = etna_context(pctx);
96 pctx->flush(pctx, NULL, 0);
101 etna_context_destroy(struct pipe_context *pctx)
103 struct etna_context *ctx = etna_context(pctx);
116 if (pctx->stream_uploader)
117 u_upload_destroy(pctx->stream_uploader);
122 etna_texture_fini(pctx);
129 FREE(pctx);
215 etna_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info,
222 util_draw_multi(pctx, info, drawid_offset, indirect, draws, num_draws);
229 struct etna_context *ctx = etna_context(pctx);
266 !util_upload_index_buffer(pctx, info, &draws[0], &indexbuf, &index_offset, 4)) {
412 pctx->flush(pctx, NULL, 0);
506 etna_flush(struct pipe_context *pctx, struct pipe_fence_handle **fence,
509 struct etna_context *ctx = etna_context(pctx);
519 pctx->flush_resource(pctx, prsc);
532 *fence = etna_fence_create(pctx, out_fence_fd);
542 struct pipe_context *pctx = priv;
544 pctx->flush(pctx, NULL, 0);
549 etna_set_debug_callback(struct pipe_context *pctx,
552 struct etna_context *ctx = etna_context(pctx);
568 struct pipe_context *pctx;
573 pctx = &ctx->base;
574 pctx->priv = ctx;
575 pctx->screen = pscreen;
576 pctx->stream_uploader = u_upload_create_default(pctx);
577 if (!pctx->stream_uploader)
579 pctx->const_uploader = pctx->stream_uploader;
583 &etna_context_force_flush, pctx);
606 pctx->destroy = etna_context_destroy;
607 pctx->draw_vbo = etna_draw_vbo;
608 pctx->flush = etna_flush;
609 pctx->set_debug_callback = etna_set_debug_callback;
610 pctx->create_fence_fd = etna_create_fence_fd;
611 pctx->fence_server_sync = etna_fence_server_sync;
612 pctx->emit_string_marker = etna_emit_string_marker;
613 pctx->set_frontend_noop = etna_set_frontend_noop;
616 pctx->create_blend_state = etna_blend_state_create;
617 pctx->create_rasterizer_state = etna_rasterizer_state_create;
618 pctx->create_depth_stencil_alpha_state = etna_zsa_state_create;
620 etna_clear_blit_init(pctx);
621 etna_query_context_init(pctx);
622 etna_state_init(pctx);
623 etna_surface_init(pctx);
624 etna_shader_init(pctx);
625 etna_texture_init(pctx);
626 etna_transfer_init(pctx);
628 ctx->blitter = util_blitter_create(pctx);
635 return pctx;
638 pctx->destroy(pctx);