• Home
  • Raw
  • Download

Lines Matching refs:pctx

44 fd_context_flush(struct pipe_context *pctx, struct pipe_fence_handle **fencep,  in fd_context_flush()  argument
47 struct fd_context *ctx = fd_context(pctx); in fd_context_flush()
51 fd_fence_ref(pctx->screen, &fence, ctx->batch->fence); in fd_context_flush()
65 fd_fence_ref(pctx->screen, fencep, fence); in fd_context_flush()
67 fd_fence_ref(pctx->screen, &fence, NULL); in fd_context_flush()
71 fd_texture_barrier(struct pipe_context *pctx, unsigned flags) in fd_texture_barrier() argument
78 fd_context_flush(pctx, NULL, 0); in fd_texture_barrier()
86 fd_emit_string_marker(struct pipe_context *pctx, const char *string, int len) in fd_emit_string_marker() argument
88 struct fd_context *ctx = fd_context(pctx); in fd_emit_string_marker()
119 fd_context_destroy(struct pipe_context *pctx) in fd_context_destroy() argument
121 struct fd_context *ctx = fd_context(pctx); in fd_context_destroy()
132 fd_prog_fini(pctx); in fd_context_destroy()
137 if (pctx->stream_uploader) in fd_context_destroy()
138 u_upload_destroy(pctx->stream_uploader); in fd_context_destroy()
141 pctx->delete_rasterizer_state(pctx, ctx->clear_rs_state); in fd_context_destroy()
169 fd_set_debug_callback(struct pipe_context *pctx, in fd_set_debug_callback() argument
172 struct fd_context *ctx = fd_context(pctx); in fd_set_debug_callback()
186 create_solid_vertexbuf(struct pipe_context *pctx) in create_solid_vertexbuf() argument
192 struct pipe_resource *prsc = pipe_buffer_create(pctx->screen, in create_solid_vertexbuf()
194 pipe_buffer_write(pctx, prsc, 0, in create_solid_vertexbuf()
200 create_blit_texcoord_vertexbuf(struct pipe_context *pctx) in create_blit_texcoord_vertexbuf() argument
202 struct pipe_resource *prsc = pipe_buffer_create(pctx->screen, in create_blit_texcoord_vertexbuf()
210 struct pipe_context *pctx = &ctx->base; in fd_context_setup_common_vbos() local
212 ctx->solid_vbuf = create_solid_vertexbuf(pctx); in fd_context_setup_common_vbos()
213 ctx->blit_texcoord_vbuf = create_blit_texcoord_vertexbuf(pctx); in fd_context_setup_common_vbos()
216 ctx->solid_vbuf_state.vtx = pctx->create_vertex_elements_state( in fd_context_setup_common_vbos()
217 pctx, 1, (struct pipe_vertex_element[]){{ in fd_context_setup_common_vbos()
227 ctx->blit_vbuf_state.vtx = pctx->create_vertex_elements_state( in fd_context_setup_common_vbos()
228 pctx, 2, (struct pipe_vertex_element[]){{ in fd_context_setup_common_vbos()
247 struct pipe_context *pctx = &ctx->base; in fd_context_cleanup_common_vbos() local
249 pctx->delete_vertex_elements_state(pctx, ctx->solid_vbuf_state.vtx); in fd_context_cleanup_common_vbos()
250 pctx->delete_vertex_elements_state(pctx, ctx->blit_vbuf_state.vtx); in fd_context_cleanup_common_vbos()
261 struct pipe_context *pctx; in fd_context_init() local
287 pctx = &ctx->base; in fd_context_init()
288 pctx->screen = pscreen; in fd_context_init()
289 pctx->priv = priv; in fd_context_init()
290 pctx->flush = fd_context_flush; in fd_context_init()
291 pctx->emit_string_marker = fd_emit_string_marker; in fd_context_init()
292 pctx->set_debug_callback = fd_set_debug_callback; in fd_context_init()
293 pctx->create_fence_fd = fd_create_fence_fd; in fd_context_init()
294 pctx->fence_server_sync = fd_fence_server_sync; in fd_context_init()
295 pctx->texture_barrier = fd_texture_barrier; in fd_context_init()
297 pctx->stream_uploader = u_upload_create_default(pctx); in fd_context_init()
298 if (!pctx->stream_uploader) in fd_context_init()
300 pctx->const_uploader = pctx->stream_uploader; in fd_context_init()
309 fd_draw_init(pctx); in fd_context_init()
310 fd_resource_context_init(pctx); in fd_context_init()
311 fd_query_context_init(pctx); in fd_context_init()
312 fd_texture_init(pctx); in fd_context_init()
313 fd_state_init(pctx); in fd_context_init()
315 ctx->blitter = util_blitter_create(pctx); in fd_context_init()
319 ctx->primconvert = util_primconvert_create(pctx, ctx->primtype_mask); in fd_context_init()
326 return pctx; in fd_context_init()
329 pctx->destroy(pctx); in fd_context_init()