Lines Matching refs:ptrans
661 struct pipe_transfer *ptrans,
664 struct fd_resource *rsc = fd_resource(ptrans->resource);
666 if (ptrans->resource->target == PIPE_BUFFER)
668 ptrans->box.x + box->x,
669 ptrans->box.x + box->x + box->width);
700 struct pipe_transfer *ptrans)
704 struct fd_resource *rsc = fd_resource(ptrans->resource);
705 struct fd_transfer *trans = fd_transfer(ptrans);
708 if (ptrans->usage & PIPE_MAP_WRITE)
713 if (!(ptrans->usage & PIPE_MAP_UNSYNCHRONIZED)) {
717 util_range_add(&rsc->b.b, &rsc->valid_buffer_range, ptrans->box.x,
718 ptrans->box.x + ptrans->box.width);
720 pipe_resource_reference(&ptrans->resource, NULL);
727 slab_free(&ctx->transfer_pool, ptrans);
972 struct pipe_transfer *ptrans;
983 ptrans = slab_zalloc(&ctx->transfer_pool_unsync);
985 ptrans = slab_zalloc(&ctx->transfer_pool);
988 if (!ptrans)
991 trans = fd_transfer(ptrans);
995 pipe_resource_reference(&ptrans->resource, prsc);
996 ptrans->level = level;
997 ptrans->usage = usage;
998 ptrans->box = *box;
999 ptrans->stride = fd_resource_pitch(rsc, level);
1000 ptrans->layer_stride = fd_resource_layer_stride(rsc, level);
1010 *pptrans = ptrans;
1012 fd_resource_transfer_unmap(pctx, ptrans);