• Home
  • Raw
  • Download

Lines Matching refs:ptrans

507 		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()
583 ptrans->box.x, in fd_resource_transfer_unmap()
584 ptrans->box.x + ptrans->box.width); in fd_resource_transfer_unmap()
586 pipe_resource_reference(&ptrans->resource, NULL); in fd_resource_transfer_unmap()
587 slab_free(&ctx->transfer_pool, ptrans); in fd_resource_transfer_unmap()
600 struct pipe_transfer *ptrans; in fd_resource_transfer_map() local
615 ptrans = slab_alloc(&ctx->transfer_pool); in fd_resource_transfer_map()
616 if (!ptrans) in fd_resource_transfer_map()
620 trans = fd_transfer(ptrans); in fd_resource_transfer_map()
623 pipe_resource_reference(&ptrans->resource, prsc); in fd_resource_transfer_map()
624 ptrans->level = level; in fd_resource_transfer_map()
625 ptrans->usage = usage; in fd_resource_transfer_map()
626 ptrans->box = *box; in fd_resource_transfer_map()
627 ptrans->stride = fd_resource_pitch(rsc, level); in fd_resource_transfer_map()
628 ptrans->layer_stride = fd_resource_layer_stride(rsc, level); in fd_resource_transfer_map()
660 *pptrans = ptrans; in fd_resource_transfer_map()
752 *pptrans = ptrans; in fd_resource_transfer_map()
783 box->y / util_format_get_blockheight(format) * ptrans->stride + in fd_resource_transfer_map()
790 *pptrans = ptrans; in fd_resource_transfer_map()
795 fd_resource_transfer_unmap(pctx, ptrans); in fd_resource_transfer_map()