Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_transfer.c56 etna_transfer_unmap(struct pipe_context *pctx, struct pipe_transfer *ptrans) in etna_transfer_unmap() argument
59 struct etna_transfer *trans = etna_transfer(ptrans); in etna_transfer_unmap()
60 struct etna_resource *rsc = etna_resource(ptrans->resource); in etna_transfer_unmap()
68 assert(ptrans->level <= rsc->base.last_level); in etna_transfer_unmap()
73 if (ptrans->usage & PIPE_TRANSFER_WRITE) { in etna_transfer_unmap()
78 etna_copy_resource(pctx, ptrans->resource, trans->rsc, ptrans->level, in etna_transfer_unmap()
82 struct etna_resource_level *res_level = &rsc->levels[ptrans->level]; in etna_transfer_unmap()
88 mapped + ptrans->box.z * res_level->layer_stride, in etna_transfer_unmap()
89 trans->staging, ptrans->box.x, ptrans->box.y, in etna_transfer_unmap()
90 res_level->stride, ptrans->box.width, ptrans->box.height, in etna_transfer_unmap()
[all …]
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_resource.c72 struct pipe_transfer *ptrans) in vc4_resource_transfer_unmap() argument
75 struct vc4_transfer *trans = vc4_transfer(ptrans); in vc4_resource_transfer_unmap()
84 rsc = vc4_resource(ptrans->resource); in vc4_resource_transfer_unmap()
85 slice = &rsc->slices[ptrans->level]; in vc4_resource_transfer_unmap()
88 if (ptrans->usage & PIPE_TRANSFER_WRITE) { in vc4_resource_transfer_unmap()
90 ptrans->box.z * rsc->cube_map_stride, in vc4_resource_transfer_unmap()
92 trans->map, ptrans->stride, in vc4_resource_transfer_unmap()
94 &ptrans->box); in vc4_resource_transfer_unmap()
99 if (trans->ss_resource && (ptrans->usage & PIPE_TRANSFER_WRITE)) { in vc4_resource_transfer_unmap()
109 blit.dst.resource = ptrans->resource; in vc4_resource_transfer_unmap()
[all …]
Dvc4_resource.h112 vc4_transfer(struct pipe_transfer *ptrans) in vc4_transfer() argument
114 return (struct vc4_transfer *)ptrans; in vc4_transfer()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_resource.c391 struct pipe_transfer *ptrans, in fd_resource_transfer_flush_region() argument
394 struct fd_resource *rsc = fd_resource(ptrans->resource); in fd_resource_transfer_flush_region()
395 struct fd_transfer *trans = fd_transfer(ptrans); in fd_resource_transfer_flush_region()
397 if (ptrans->resource->target == PIPE_BUFFER) in fd_resource_transfer_flush_region()
399 ptrans->box.x + box->x, in fd_resource_transfer_flush_region()
400 ptrans->box.x + box->x + box->width); in fd_resource_transfer_flush_region()
408 struct pipe_transfer *ptrans) in fd_resource_transfer_unmap() argument
411 struct fd_resource *rsc = fd_resource(ptrans->resource); in fd_resource_transfer_unmap()
412 struct fd_transfer *trans = fd_transfer(ptrans); in fd_resource_transfer_unmap()
414 if (trans->staging && !(ptrans->usage & PIPE_TRANSFER_FLUSH_EXPLICIT)) { in fd_resource_transfer_unmap()
[all …]
Dfreedreno_resource.h130 fd_transfer(struct pipe_transfer *ptrans) in fd_transfer() argument
132 return (struct fd_transfer *)ptrans; in fd_transfer()