Lines Matching refs:pctx
59 etna_context_destroy(struct pipe_context *pctx) in etna_context_destroy() argument
61 struct etna_context *ctx = etna_context(pctx); in etna_context_destroy()
69 if (pctx->stream_uploader) in etna_context_destroy()
70 u_upload_destroy(pctx->stream_uploader); in etna_context_destroy()
80 FREE(pctx); in etna_context_destroy()
146 etna_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info) in etna_draw_vbo() argument
148 struct etna_context *ctx = etna_context(pctx); in etna_draw_vbo()
187 !util_upload_index_buffer(pctx, info, &indexbuf, &index_offset)) { in etna_draw_vbo()
297 pctx->flush(pctx, NULL, 0); in etna_draw_vbo()
308 etna_flush(struct pipe_context *pctx, struct pipe_fence_handle **fence, in etna_flush() argument
311 struct etna_context *ctx = etna_context(pctx); in etna_flush()
325 *fence = etna_fence_create(pctx, out_fence_fd); in etna_flush()
400 etna_set_debug_callback(struct pipe_context *pctx, in etna_set_debug_callback() argument
403 struct etna_context *ctx = etna_context(pctx); in etna_set_debug_callback()
416 struct pipe_context *pctx; in etna_context_create() local
421 pctx = &ctx->base; in etna_context_create()
422 pctx->priv = ctx; in etna_context_create()
423 pctx->screen = pscreen; in etna_context_create()
424 pctx->stream_uploader = u_upload_create_default(pctx); in etna_context_create()
425 if (!pctx->stream_uploader) in etna_context_create()
427 pctx->const_uploader = pctx->stream_uploader; in etna_context_create()
447 pctx->destroy = etna_context_destroy; in etna_context_create()
448 pctx->draw_vbo = etna_draw_vbo; in etna_context_create()
449 pctx->flush = etna_flush; in etna_context_create()
450 pctx->set_debug_callback = etna_set_debug_callback; in etna_context_create()
451 pctx->create_fence_fd = etna_create_fence_fd; in etna_context_create()
452 pctx->fence_server_sync = etna_fence_server_sync; in etna_context_create()
455 pctx->create_blend_state = etna_blend_state_create; in etna_context_create()
456 pctx->create_rasterizer_state = etna_rasterizer_state_create; in etna_context_create()
457 pctx->create_depth_stencil_alpha_state = etna_zsa_state_create; in etna_context_create()
459 etna_clear_blit_init(pctx); in etna_context_create()
460 etna_query_context_init(pctx); in etna_context_create()
461 etna_state_init(pctx); in etna_context_create()
462 etna_surface_init(pctx); in etna_context_create()
463 etna_shader_init(pctx); in etna_context_create()
464 etna_texture_init(pctx); in etna_context_create()
465 etna_transfer_init(pctx); in etna_context_create()
467 ctx->blitter = util_blitter_create(pctx); in etna_context_create()
482 ctx->primconvert = util_primconvert_create(pctx, ctx->prim_hwsupport); in etna_context_create()
489 return pctx; in etna_context_create()
492 pctx->destroy(pctx); in etna_context_create()