Home
last modified time | relevance | path

Searched refs:ptrans (Results 1 – 11 of 11) sorted by relevance

/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_transfer.c61 static void etna_patch_data(void *buffer, const struct pipe_transfer *ptrans) in etna_patch_data() argument
63 struct pipe_resource *prsc = ptrans->resource; in etna_patch_data()
65 struct etna_resource_level *level = &rsc->levels[ptrans->level]; in etna_patch_data()
77 etna_etc2_calculate_blocks(buffer, ptrans->stride, in etna_patch_data()
78 ptrans->box.width, ptrans->box.height, in etna_patch_data()
87 static void etna_unpatch_data(void *buffer, const struct pipe_transfer *ptrans) in etna_unpatch_data() argument
89 struct pipe_resource *prsc = ptrans->resource; in etna_unpatch_data()
91 struct etna_resource_level *level = &rsc->levels[ptrans->level]; in etna_unpatch_data()
102 etna_transfer_unmap(struct pipe_context *pctx, struct pipe_transfer *ptrans) in etna_transfer_unmap() argument
105 struct etna_transfer *trans = etna_transfer(ptrans); in etna_transfer_unmap()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_transfer_helper.c78 u_transfer(struct pipe_transfer *ptrans) in u_transfer() argument
80 debug_assert(handle_transfer(ptrans->resource)); in u_transfer()
81 return (struct u_transfer *)ptrans; in u_transfer()
170 struct pipe_transfer *ptrans = &trans->base; in transfer_map_msaa() local
172 pipe_resource_reference(&ptrans->resource, prsc); in transfer_map_msaa()
173 ptrans->level = level; in transfer_map_msaa()
174 ptrans->usage = usage; in transfer_map_msaa()
175 ptrans->box = *box; in transfer_map_msaa()
195 blit.src.resource = ptrans->resource; in transfer_map_msaa()
196 blit.src.format = ptrans->resource->format; in transfer_map_msaa()
[all …]
Du_transfer_helper.h71 struct pipe_transfer *ptrans,
75 struct pipe_transfer *ptrans);
116 struct pipe_transfer *ptrans,
120 struct pipe_transfer *ptrans);
141 struct pipe_transfer *ptrans);
/external/mesa3d/src/gallium/drivers/lima/
Dlima_resource.c557 struct pipe_transfer *ptrans; in lima_transfer_map() local
602 ptrans = &trans->base; in lima_transfer_map()
604 pipe_resource_reference(&ptrans->resource, pres); in lima_transfer_map()
605 ptrans->level = level; in lima_transfer_map()
606 ptrans->usage = usage; in lima_transfer_map()
607 ptrans->box = *box; in lima_transfer_map()
609 *pptrans = ptrans; in lima_transfer_map()
612 ptrans->stride = util_format_get_stride(pres->format, ptrans->box.width); in lima_transfer_map()
613 ptrans->layer_stride = ptrans->stride * ptrans->box.height; in lima_transfer_map()
615 trans->staging = malloc(ptrans->stride * ptrans->box.height * ptrans->box.depth); in lima_transfer_map()
[all …]
/external/mesa3d/src/gallium/drivers/v3d/
Dv3d_resource.c116 struct pipe_transfer *ptrans) in v3d_resource_transfer_unmap() argument
119 struct v3d_transfer *trans = v3d_transfer(ptrans); in v3d_resource_transfer_unmap()
122 struct v3d_resource *rsc = v3d_resource(ptrans->resource); in v3d_resource_transfer_unmap()
123 struct v3d_resource_slice *slice = &rsc->slices[ptrans->level]; in v3d_resource_transfer_unmap()
125 if (ptrans->usage & PIPE_MAP_WRITE) { in v3d_resource_transfer_unmap()
126 for (int z = 0; z < ptrans->box.depth; z++) { in v3d_resource_transfer_unmap()
129 ptrans->level, in v3d_resource_transfer_unmap()
130 ptrans->box.z + z); in v3d_resource_transfer_unmap()
134 ptrans->stride * in v3d_resource_transfer_unmap()
135 ptrans->box.height * z), in v3d_resource_transfer_unmap()
[all …]
Dv3d_resource.h175 v3d_transfer(struct pipe_transfer *ptrans) in v3d_transfer() argument
177 return (struct v3d_transfer *)ptrans; in v3d_transfer()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_resource.c74 struct pipe_transfer *ptrans) in vc4_resource_transfer_unmap() argument
77 struct vc4_transfer *trans = vc4_transfer(ptrans); in vc4_resource_transfer_unmap()
80 struct vc4_resource *rsc = vc4_resource(ptrans->resource); in vc4_resource_transfer_unmap()
81 struct vc4_resource_slice *slice = &rsc->slices[ptrans->level]; in vc4_resource_transfer_unmap()
83 if (ptrans->usage & PIPE_MAP_WRITE) { in vc4_resource_transfer_unmap()
85 ptrans->box.z * rsc->cube_map_stride, in vc4_resource_transfer_unmap()
87 trans->map, ptrans->stride, in vc4_resource_transfer_unmap()
89 &ptrans->box); in vc4_resource_transfer_unmap()
94 pipe_resource_reference(&ptrans->resource, NULL); in vc4_resource_transfer_unmap()
95 slab_free(&vc4->transfer_pool, ptrans); in vc4_resource_transfer_unmap()
[all …]
Dvc4_resource.h96 vc4_transfer(struct pipe_transfer *ptrans) in vc4_transfer() argument
98 return (struct vc4_transfer *)ptrans; in vc4_transfer()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_resource.c507 struct pipe_transfer *ptrans, in fd_resource_transfer_flush_region() argument
510 struct fd_resource *rsc = fd_resource(ptrans->resource); in fd_resource_transfer_flush_region()
512 if (ptrans->resource->target == PIPE_BUFFER) in fd_resource_transfer_flush_region()
514 ptrans->box.x + box->x, in fd_resource_transfer_flush_region()
515 ptrans->box.x + box->x + box->width); in fd_resource_transfer_flush_region()
566 struct pipe_transfer *ptrans) in fd_resource_transfer_unmap() argument
569 struct fd_resource *rsc = fd_resource(ptrans->resource); in fd_resource_transfer_unmap()
570 struct fd_transfer *trans = fd_transfer(ptrans); in fd_resource_transfer_unmap()
573 if (ptrans->usage & PIPE_MAP_WRITE) in fd_resource_transfer_unmap()
578 if (!(ptrans->usage & PIPE_MAP_UNSYNCHRONIZED)) { in fd_resource_transfer_unmap()
[all …]
Dfreedreno_resource.h199 fd_transfer(struct pipe_transfer *ptrans) in fd_transfer() argument
201 return (struct fd_transfer *)ptrans; in fd_transfer()
/external/mesa3d/src/gallium/drivers/zink/
Dzink_resource.c617 struct pipe_transfer *ptrans) in zink_transfer_unmap() argument
621 struct zink_resource *res = zink_resource(ptrans->resource); in zink_transfer_unmap()
622 struct zink_transfer *trans = (struct zink_transfer *)ptrans; in zink_transfer_unmap()
640 slab_free(&ctx->transfer_pool, ptrans); in zink_transfer_unmap()