Home | History | Annotate | Download | only in freedreno

Lines Matching refs:pctx

42 fd_context_flush(struct pipe_context *pctx, struct pipe_fence_handle **fence,
45 struct fd_context *ctx = fd_context(pctx);
65 fd_fence_ref(pctx->screen, fence, ctx->last_fence);
74 fd_emit_string_marker(struct pipe_context *pctx, const char *string, int len)
76 struct fd_context *ctx = fd_context(pctx);
107 fd_context_destroy(struct pipe_context *pctx)
109 struct fd_context *ctx = fd_context(pctx);
120 fd_fence_ref(pctx->screen, &ctx->last_fence, NULL);
122 fd_prog_fini(pctx);
123 fd_hw_query_fini(pctx);
129 pctx->delete_rasterizer_state(pctx, ctx->clear_rs_state);
155 fd_set_debug_callback(struct pipe_context *pctx,
158 struct fd_context *ctx = fd_context(pctx);
172 create_solid_vertexbuf(struct pipe_context *pctx)
178 struct pipe_resource *prsc = pipe_buffer_create(pctx->screen,
180 pipe_buffer_write(pctx, prsc, 0,
186 create_blit_texcoord_vertexbuf(struct pipe_context *pctx)
188 struct pipe_resource *prsc = pipe_buffer_create(pctx->screen,
196 struct pipe_context *pctx = &ctx->base;
198 ctx->solid_vbuf = create_solid_vertexbuf(pctx);
199 ctx->blit_texcoord_vbuf = create_blit_texcoord_vertexbuf(pctx);
202 ctx->solid_vbuf_state.vtx = pctx->create_vertex_elements_state(
203 pctx, 1, (struct pipe_vertex_element[]){{
213 ctx->blit_vbuf_state.vtx = pctx->create_vertex_elements_state(
214 pctx, 2, (struct pipe_vertex_element[]){{
233 struct pipe_context *pctx = &ctx->base;
235 pctx->delete_vertex_elements_state(pctx, ctx->solid_vbuf_state.vtx);
236 pctx->delete_vertex_elements_state(pctx, ctx->blit_vbuf_state.vtx);
247 struct pipe_context *pctx;
263 pctx = &ctx->base;
264 pctx->screen = pscreen;
265 pctx->priv = priv;
266 pctx->flush = fd_context_flush;
267 pctx->emit_string_marker = fd_emit_string_marker;
268 pctx->set_debug_callback = fd_set_debug_callback;
269 pctx->create_fence_fd = fd_create_fence_fd;
270 pctx->fence_server_sync = fd_fence_server_sync;
282 fd_draw_init(pctx);
283 fd_resource_context_init(pctx);
284 fd_query_context_init(pctx);
285 fd_texture_init(pctx);
286 fd_state_init(pctx);
287 fd_hw_query_init(pctx);
289 ctx->blitter = util_blitter_create(pctx);
293 ctx->primconvert = util_primconvert_create(pctx, ctx->primtype_mask);
297 return pctx;
300 pctx->destroy(pctx);