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