Lines Matching defs:box
721 * In this function, we take the res and box the caller passed, and the plane_* properties
744 /* Normalize box back to overall dimensions (first plane)*/
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);
999 buf_loc.PlacedFootprint.Footprint.Width = ALIGN(trans->base.b.box.width,
1001 buf_loc.PlacedFootprint.Footprint.Height = ALIGN(trans->base.b.box.height,
1047 trans->base.b.box.x, trans->base.b.box.y, trans->base.b.box.z,
1048 trans->base.b.box.width, trans->base.b.box.height, trans->base.b.box.depth,
1066 copy_info.dst_x = trans->base.b.box.x;
1067 copy_info.dst_y = trans->base.b.box.y;
1084 0, trans->base.b.box.depth, 0,
1085 trans->base.b.box.z, 0);
1087 int num_layers = trans->base.b.box.depth;
1088 int start_z = trans->base.b.box.z;
1106 struct pipe_box *box = &trans->base.b.box;
1121 box->x, box->y, start_box_z,
1122 box->width, box->height, depth);
1127 src_box.left = box->x;
1128 src_box.right = box->x + box->width;
1129 src_box.top = box->y;
1130 src_box.bottom = box->y + box->height;
1150 assert(resid == 0 || trans->base.b.box.depth == 1);
1154 trans->base.b.box.x, trans->base.b.box.y, trans->base.b.box.z,
1155 trans->base.b.box.width, trans->base.b.box.height, trans->base.b.box.depth,
1166 struct pipe_box box = {0,0,0, (int)res->base.b.width0, (int16_t)res->base.b.height0, (int16_t)res->base.b.depth0};
1168 resolve_info.dst.box = box;
1171 resolve_info.src.box = box;
1185 0, 0, trans->base.b.box.z, trans->base.b.box.depth);
1187 int start_layer = trans->base.b.box.z;
1188 for (int z = start_layer; z < start_layer + trans->base.b.box.depth; ++z) {
1238 linear_range(const struct pipe_box *box, unsigned stride, unsigned layer_stride)
1242 range.Begin = linear_offset(box->x, box->y, box->z,
1244 range.End = linear_offset(box->x + box->width,
1245 box->y + box->height - 1,
1246 box->z + box->depth - 1,
1337 const struct pipe_box *box,
1341 int width = copy_whole_resource ? res->base.b.width0 : box->width;
1342 int height = copy_whole_resource ? res->base.b.height0 : box->height;
1351 trans->zs_cpu_copy_stride = align(util_format_get_stride(res->base.b.format, box->width),
1355 box->height);
1364 const struct pipe_box *box,
1370 prepare_zs_layer_strides(screen, res, box, trans);
1427 depth_ptr += trans->base.b.box.y * trans->base.b.stride + trans->base.b.box.x * 4;
1428 stencil_ptr += trans->base.b.box.y * trans->base.b.stride + trans->base.b.box.x * 4;
1433 trans->base.b.box.width, trans->base.b.box.height);
1437 depth_ptr += trans->base.b.box.y * trans->base.b.stride + trans->base.b.box.x * 4;
1438 stencil_ptr += trans->base.b.box.y * trans->base.b.stride + trans->base.b.box.x;
1442 trans->base.b.box.width, trans->base.b.box.height);
1445 trans->base.b.box.width, trans->base.b.box.height);
1456 const struct pipe_box *box,
1460 prepare_zs_layer_strides(screen, res, box, trans);
1513 depth_ptr += trans->base.b.box.y * trans->base.b.stride + trans->base.b.box.x * 4;
1514 stencil_ptr += trans->base.b.box.y * trans->base.b.stride + trans->base.b.box.x * 4;
1517 trans->zs_cpu_copy_stride, trans->base.b.box.width,
1518 trans->base.b.box.height);
1520 trans->zs_cpu_copy_stride, trans->base.b.box.width,
1521 trans->base.b.box.height);
1525 depth_ptr += trans->base.b.box.y * trans->base.b.stride + trans->base.b.box.x * 4;
1526 stencil_ptr += trans->base.b.box.y * trans->base.b.stride + trans->base.b.box.x;
1529 trans->zs_cpu_copy_stride, trans->base.b.box.width,
1530 trans->base.b.box.height);
1532 trans->zs_cpu_copy_stride, trans->base.b.box.width,
1533 trans->base.b.box.height);
1553 const struct pipe_box *box,
1572 ptrans->box = *box;
1583 ptrans->stride = util_format_get_stride(pres->format, box->width);
1586 box->height);
1589 range = linear_range(box, ptrans->stride, ptrans->layer_stride);
1598 ptr = read_zs_surface(ctx, res, box, trans);
1600 ptr = prepare_write_zs_surface(res, box, trans);
1641 pipe_box original_box = ptrans->box;
1643 /* Adjust strides, offsets, box to the corresponding plane for the copytexture operation*/
1671 ptrans->stride = align(util_format_get_stride(pres->format, box->width),
1675 box->height);
1692 range.Begin = box->y * ptrans->stride +
1693 box->x * util_format_get_blocksize(pres->format);
1696 unsigned staging_res_size = ptrans->layer_stride * box->depth;
1701 assert(box->x >= 0);
1702 unsigned aligned_x = (unsigned)box->x % BUFFER_MAP_ALIGNMENT;
1703 staging_res_size = align(box->width + aligned_x,
1724 uint64_t src_offset = box->x;
1726 transfer_buf_to_buf(ctx, res, staging_res, src_offset, dst_offset, box->width);
1789 assert(ptrans->box.x >= 0);
1791 (unsigned)ptrans->box.x % BUFFER_MAP_ALIGNMENT : 0;
1795 pipe_box original_box = ptrans->box;
1814 assert(ptrans->box.x >= 0);
1816 (unsigned)ptrans->box.x % BUFFER_MAP_ALIGNMENT : 0;
1824 uint64_t dst_offset = trans->base.b.box.x;
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;