Lines Matching full:pctx
59 fd_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
61 struct fd_context *ctx = fd_context(pctx);
74 if (!fd_render_condition_check(pctx))
208 fd_blitter_clear(struct pipe_context *pctx, unsigned buffers,
211 struct fd_context *ctx = fd_context(pctx);
223 pctx->set_stencil_ref(pctx, &sr);
229 pctx->set_constant_buffer(pctx, PIPE_SHADER_FRAGMENT, 0, &cb);
239 ctx->clear_rs_state = pctx->create_rasterizer_state(pctx, &tmpl);
241 pctx->bind_rasterizer_state(pctx, ctx->clear_rs_state);
247 pctx->set_viewport_states(pctx, 0, 1, &vp);
249 pctx->bind_vertex_elements_state(pctx, ctx->solid_vbuf_state.vtx);
250 pctx->set_vertex_buffers(pctx, blitter->vb_slot, 1,
252 pctx->set_stream_output_targets(pctx, 0, NULL, NULL);
253 pctx->bind_vs_state(pctx, ctx->solid_prog.vp);
254 pctx->bind_fs_state(pctx, ctx->solid_prog.fp);
280 fd_clear(struct pipe_context *pctx, unsigned buffers,
283 struct fd_context *ctx = fd_context(pctx);
291 if (!fd_render_condition_check(pctx))
348 fd_blitter_clear(pctx, buffers, color, depth, stencil);
370 fd_clear_render_target(struct pipe_context *pctx, struct pipe_surface *ps,
379 fd_clear_depth_stencil(struct pipe_context *pctx, struct pipe_surface *ps,
389 fd_draw_init(struct pipe_context *pctx)
391 pctx->draw_vbo = fd_draw_vbo;
392 pctx->clear = fd_clear;
393 pctx->clear_render_target = fd_clear_render_target;
394 pctx->clear_depth_stencil = fd_clear_depth_stencil;