• Home
  • Raw
  • Download

Lines Matching refs:ptrans

61 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()
101 ptrans->stride, util_format_get_blocksize(rsc->base.format)); in etna_transfer_unmap()
104 res_level->layer_stride, ptrans->box.x, in etna_transfer_unmap()
105 ptrans->box.y, ptrans->box.z, ptrans->box.width, in etna_transfer_unmap()
106 ptrans->box.height, ptrans->box.depth, in etna_transfer_unmap()
107 trans->staging, ptrans->stride, in etna_transfer_unmap()
108 ptrans->layer_stride, 0, 0, 0 /* src x,y,z */); in etna_transfer_unmap()
128 if (!trans->rsc && !(ptrans->usage & PIPE_TRANSFER_UNSYNCHRONIZED)) in etna_transfer_unmap()
132 pipe_resource_reference(&ptrans->resource, NULL); in etna_transfer_unmap()
146 struct pipe_transfer *ptrans; in etna_transfer_map() local
156 ptrans = &trans->base; in etna_transfer_map()
157 pipe_resource_reference(&ptrans->resource, prsc); in etna_transfer_map()
158 ptrans->level = level; in etna_transfer_map()
159 ptrans->usage = usage; in etna_transfer_map()
160 ptrans->box = *box; in etna_transfer_map()
231 ptrans->box.width += ptrans->box.x & (w_align - 1); in etna_transfer_map()
232 ptrans->box.x = ptrans->box.x & ~(w_align - 1); in etna_transfer_map()
233 ptrans->box.width = align(ptrans->box.width, (ETNA_RS_WIDTH_MASK + 1)); in etna_transfer_map()
234 ptrans->box.height += ptrans->box.y & (h_align - 1); in etna_transfer_map()
235 ptrans->box.y = ptrans->box.y & ~(h_align - 1); in etna_transfer_map()
236 ptrans->box.height = align(ptrans->box.height, in etna_transfer_map()
242 etna_copy_resource_box(pctx, trans->rsc, prsc, level, &ptrans->box); in etna_transfer_map()
333 *out_transfer = ptrans; in etna_transfer_map()
336 ptrans->stride = res_level->stride; in etna_transfer_map()
337 ptrans->layer_stride = res_level->layer_stride; in etna_transfer_map()
353ptrans->stride = align(box->width, divSizeX) * util_format_get_blocksize(format); /* row stride in… in etna_transfer_map()
354 ptrans->layer_stride = align(box->height, divSizeY) * ptrans->stride; in etna_transfer_map()
355 size_t size = ptrans->layer_stride * box->depth; in etna_transfer_map()
364 mapped + ptrans->box.z * res_level->layer_stride, in etna_transfer_map()
365 ptrans->box.x, ptrans->box.y, res_level->stride, in etna_transfer_map()
366 ptrans->box.width, ptrans->box.height, ptrans->stride, in etna_transfer_map()
369 util_copy_box(trans->staging, rsc->base.format, ptrans->stride, in etna_transfer_map()
370 ptrans->layer_stride, 0, 0, 0, /* dst x,y,z */ in etna_transfer_map()
371 ptrans->box.width, ptrans->box.height, in etna_transfer_map()
372 ptrans->box.depth, mapped, res_level->stride, in etna_transfer_map()
373 res_level->layer_stride, ptrans->box.x, in etna_transfer_map()
374 ptrans->box.y, ptrans->box.z); in etna_transfer_map()
387 etna_transfer_unmap(pctx, ptrans); in etna_transfer_map()