Home
last modified time | relevance | path

Searched refs:stransfer (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_buffer.c485 struct si_transfer *stransfer = (struct si_transfer *)transfer; in si_buffer_do_flush_region() local
488 if (stransfer->staging) { in si_buffer_do_flush_region()
490stransfer->b.b.offset + transfer->box.x % SI_MAP_BUFFER_ALIGNMENT + (box->x - transfer->box.x); in si_buffer_do_flush_region()
493 si_copy_buffer(sctx, transfer->resource, &stransfer->staging->b.b, box->x, src_offset, in si_buffer_do_flush_region()
516 struct si_transfer *stransfer = (struct si_transfer *)transfer; in si_buffer_transfer_unmap() local
522 !stransfer->staging) in si_buffer_transfer_unmap()
523 sctx->ws->buffer_unmap(sctx->ws, si_resource(stransfer->b.b.resource)->buf); in si_buffer_transfer_unmap()
525 si_resource_reference(&stransfer->staging, NULL); in si_buffer_transfer_unmap()
526 assert(stransfer->b.staging == NULL); /* for threaded context only */ in si_buffer_transfer_unmap()
Dsi_texture.c87 static void si_copy_to_staging_texture(struct pipe_context *ctx, struct si_transfer *stransfer) in si_copy_to_staging_texture() argument
89 struct pipe_transfer *transfer = (struct pipe_transfer *)stransfer; in si_copy_to_staging_texture()
90 struct pipe_resource *dst = &stransfer->staging->b.b; in si_copy_to_staging_texture()
104 static void si_copy_from_staging_texture(struct pipe_context *ctx, struct si_transfer *stransfer) in si_copy_from_staging_texture() argument
106 struct pipe_transfer *transfer = (struct pipe_transfer *)stransfer; in si_copy_from_staging_texture()
108 struct pipe_resource *src = &stransfer->staging->b.b; in si_copy_from_staging_texture()
1961 struct si_transfer *stransfer = (struct si_transfer *)transfer; in si_texture_transfer_unmap() local
1969 struct si_resource *buf = stransfer->staging ? stransfer->staging : &tex->buffer; in si_texture_transfer_unmap()
1974 if ((transfer->usage & PIPE_MAP_WRITE) && stransfer->staging) in si_texture_transfer_unmap()
1975 si_copy_from_staging_texture(ctx, stransfer); in si_texture_transfer_unmap()
[all …]