Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_transfer.c61 etna_transfer_unmap(struct pipe_context *pctx, struct pipe_transfer *ptrans) in etna_transfer_unmap() argument
64 struct etna_transfer *trans = etna_transfer(ptrans); in etna_transfer_unmap()
65 struct etna_resource *rsc = etna_resource(ptrans->resource); in etna_transfer_unmap()
73 assert(ptrans->level <= rsc->base.last_level); in etna_transfer_unmap()
85 if (ptrans->usage & PIPE_TRANSFER_WRITE) { in etna_transfer_unmap()
90 etna_copy_resource_box(pctx, ptrans->resource, trans->rsc, ptrans->level, &ptrans->box); in etna_transfer_unmap()
93 struct etna_resource_level *res_level = &rsc->levels[ptrans->level]; in etna_transfer_unmap()
98 mapped + ptrans->box.z * res_level->layer_stride, in etna_transfer_unmap()
99 trans->staging, ptrans->box.x, ptrans->box.y, in etna_transfer_unmap()
100 res_level->stride, ptrans->box.width, ptrans->box.height, in etna_transfer_unmap()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_transfer_helper.c77 u_transfer(struct pipe_transfer *ptrans) in u_transfer() argument
79 debug_assert(handle_transfer(ptrans->resource)); in u_transfer()
80 return (struct u_transfer *)ptrans; in u_transfer()
168 struct pipe_transfer *ptrans = &trans->base; in transfer_map_msaa() local
170 pipe_resource_reference(&ptrans->resource, prsc); in transfer_map_msaa()
171 ptrans->level = level; in transfer_map_msaa()
172 ptrans->usage = usage; in transfer_map_msaa()
173 ptrans->box = *box; in transfer_map_msaa()
193 blit.src.resource = ptrans->resource; in transfer_map_msaa()
194 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);
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_resource.c76 struct pipe_transfer *ptrans) in vc4_resource_transfer_unmap() argument
79 struct vc4_transfer *trans = vc4_transfer(ptrans); in vc4_resource_transfer_unmap()
88 rsc = vc4_resource(ptrans->resource); in vc4_resource_transfer_unmap()
89 slice = &rsc->slices[ptrans->level]; in vc4_resource_transfer_unmap()
92 if (ptrans->usage & PIPE_TRANSFER_WRITE) { in vc4_resource_transfer_unmap()
94 ptrans->box.z * rsc->cube_map_stride, in vc4_resource_transfer_unmap()
96 trans->map, ptrans->stride, in vc4_resource_transfer_unmap()
98 &ptrans->box); in vc4_resource_transfer_unmap()
103 if (trans->ss_resource && (ptrans->usage & PIPE_TRANSFER_WRITE)) { in vc4_resource_transfer_unmap()
113 blit.dst.resource = ptrans->resource; in vc4_resource_transfer_unmap()
[all …]
Dvc4_resource.h99 vc4_transfer(struct pipe_transfer *ptrans) in vc4_transfer() argument
101 return (struct vc4_transfer *)ptrans; in vc4_transfer()
/external/mesa3d/src/gallium/drivers/vc5/
Dvc5_resource.c121 struct pipe_transfer *ptrans) in vc5_resource_transfer_unmap() argument
124 struct vc5_transfer *trans = vc5_transfer(ptrans); in vc5_resource_transfer_unmap()
127 struct vc5_resource *rsc = vc5_resource(ptrans->resource); in vc5_resource_transfer_unmap()
128 struct vc5_resource_slice *slice = &rsc->slices[ptrans->level]; in vc5_resource_transfer_unmap()
130 if (ptrans->usage & PIPE_TRANSFER_WRITE) { in vc5_resource_transfer_unmap()
132 ptrans->box.z * rsc->cube_map_stride, in vc5_resource_transfer_unmap()
134 trans->map, ptrans->stride, in vc5_resource_transfer_unmap()
137 ptrans->level), in vc5_resource_transfer_unmap()
138 &ptrans->box); in vc5_resource_transfer_unmap()
143 pipe_resource_reference(&ptrans->resource, NULL); in vc5_resource_transfer_unmap()
[all …]
Dvc5_resource.h153 vc5_transfer(struct pipe_transfer *ptrans) in vc5_transfer() argument
155 return (struct vc5_transfer *)ptrans; in vc5_transfer()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_resource.c355 struct pipe_transfer *ptrans, in fd_resource_transfer_flush_region() argument
358 struct fd_resource *rsc = fd_resource(ptrans->resource); in fd_resource_transfer_flush_region()
360 if (ptrans->resource->target == PIPE_BUFFER) in fd_resource_transfer_flush_region()
362 ptrans->box.x + box->x, in fd_resource_transfer_flush_region()
363 ptrans->box.x + box->x + box->width); in fd_resource_transfer_flush_region()
413 struct pipe_transfer *ptrans) in fd_resource_transfer_unmap() argument
416 struct fd_resource *rsc = fd_resource(ptrans->resource); in fd_resource_transfer_unmap()
417 struct fd_transfer *trans = fd_transfer(ptrans); in fd_resource_transfer_unmap()
420 if (ptrans->usage & PIPE_TRANSFER_WRITE) in fd_resource_transfer_unmap()
425 if (!(ptrans->usage & PIPE_TRANSFER_UNSYNCHRONIZED)) { in fd_resource_transfer_unmap()
[all …]
Dfreedreno_resource.h143 fd_transfer(struct pipe_transfer *ptrans) in fd_transfer() argument
145 return (struct fd_transfer *)ptrans; in fd_transfer()