• Home
  • Raw
  • Download

Lines Matching refs:pctx

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