Lines Matching refs:ptrans
722 * that are currently being readback/flushed, and adjust the d3d12_transfer ptrans
731 struct pipe_transfer *ptrans/*inout*/)
734 ptrans->stride = plane_stride;
735 ptrans->layer_stride = plane_layer_stride;
736 ptrans->offset = plane_offset;
745 ptrans->box.width = width_multiplier * original_box->width;
746 ptrans->box.height = height_multiplier * original_box->height;
747 ptrans->box.x = width_multiplier * original_box->x;
748 ptrans->box.y = height_multiplier * original_box->y;
751 ptrans->box.width = util_format_get_plane_width(res->overall_format, plane_slice, ptrans->box.width);
752 ptrans->box.height = util_format_get_plane_height(res->overall_format, plane_slice, ptrans->box.height);
753 ptrans->box.x = util_format_get_plane_width(res->overall_format, plane_slice, ptrans->box.x);
754 ptrans->box.y = util_format_get_plane_height(res->overall_format, plane_slice, ptrans->box.y);
1566 struct pipe_transfer *ptrans = &trans->base.b;
1570 ptrans->level = level;
1571 ptrans->usage = (enum pipe_map_flags)usage;
1572 ptrans->box = *box;
1580 ptrans->stride = 0;
1581 ptrans->layer_stride = 0;
1583 ptrans->stride = util_format_get_stride(pres->format, box->width);
1584 ptrans->layer_stride = util_format_get_2d_size(pres->format,
1585 ptrans->stride,
1589 range = linear_range(box, ptrans->stride, ptrans->layer_stride);
1641 pipe_box original_box = ptrans->box;
1650 ptrans/*inout*/);
1666 ptrans->stride = strides[res->plane_slice];
1667 ptrans->layer_stride = layer_strides[res->plane_slice];
1671 ptrans->stride = align(util_format_get_stride(pres->format, box->width),
1673 ptrans->layer_stride = util_format_get_2d_size(pres->format,
1674 ptrans->stride,
1678 ptrans->layer_stride = align(ptrans->layer_stride,
1683 trans->zs_cpu_copy_stride = ptrans->stride;
1684 trans->zs_cpu_copy_layer_stride = ptrans->layer_stride;
1686 ptrans->stride = align(util_format_get_stride(pres->format, pres->width0),
1688 ptrans->layer_stride = util_format_get_2d_size(pres->format,
1689 ptrans->stride,
1692 range.Begin = box->y * ptrans->stride +
1696 unsigned staging_res_size = ptrans->layer_stride * box->depth;
1739 pipe_resource_reference(&ptrans->resource, pres);
1740 *transfer = ptrans;
1746 struct pipe_transfer *ptrans)
1749 struct d3d12_resource *res = d3d12_resource(ptrans->resource);
1750 struct d3d12_transfer *trans = (struct d3d12_transfer *)ptrans;
1769 ptrans->resource,
1789 assert(ptrans->box.x >= 0);
1791 (unsigned)ptrans->box.x % BUFFER_MAP_ALIGNMENT : 0;
1795 pipe_box original_box = ptrans->box;
1804 ptrans/*inout*/);
1814 assert(ptrans->box.x >= 0);
1816 (unsigned)ptrans->box.x % BUFFER_MAP_ALIGNMENT : 0;
1826 transfer_buf_to_buf(ctx, staging_res, res, src_offset, dst_offset, ptrans->box.width);
1835 range.Begin = ptrans->box.x;
1836 range.End = ptrans->box.x + ptrans->box.width;
1841 pipe_resource_reference(&ptrans->resource, NULL);
1842 slab_free(&d3d12_context(pctx)->transfer_pool, ptrans);