• Home
  • Raw
  • Download

Lines Matching refs:ptrans

355 		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()
430 ptrans->box.x, in fd_resource_transfer_unmap()
431 ptrans->box.x + ptrans->box.width); in fd_resource_transfer_unmap()
433 pipe_resource_reference(&ptrans->resource, NULL); in fd_resource_transfer_unmap()
434 slab_free(&ctx->transfer_pool, ptrans); in fd_resource_transfer_unmap()
448 struct pipe_transfer *ptrans; in fd_resource_transfer_map() local
458 ptrans = slab_alloc(&ctx->transfer_pool); in fd_resource_transfer_map()
459 if (!ptrans) in fd_resource_transfer_map()
463 trans = fd_transfer(ptrans); in fd_resource_transfer_map()
466 pipe_resource_reference(&ptrans->resource, prsc); in fd_resource_transfer_map()
467 ptrans->level = level; in fd_resource_transfer_map()
468 ptrans->usage = usage; in fd_resource_transfer_map()
469 ptrans->box = *box; in fd_resource_transfer_map()
470 ptrans->stride = util_format_get_nblocksx(format, slice->pitch) * rsc->cpp; in fd_resource_transfer_map()
471 ptrans->layer_stride = rsc->layer_first ? rsc->layer_size : slice->size0; in fd_resource_transfer_map()
503 *pptrans = ptrans; in fd_resource_transfer_map()
592 *pptrans = ptrans; in fd_resource_transfer_map()
623 box->y / util_format_get_blockheight(format) * ptrans->stride + in fd_resource_transfer_map()
630 *pptrans = ptrans; in fd_resource_transfer_map()
635 fd_resource_transfer_unmap(pctx, ptrans); in fd_resource_transfer_map()