Lines Matching defs:box
795 unsigned level, const struct pipe_box *box)
800 tmpl.width0 = box->width;
801 tmpl.height0 = box->height;
802 /* for array textures, box->depth is the array_size, otherwise
808 tmpl.array_size = box->depth;
812 tmpl.depth0 = box->depth;
849 blit.dst.box = trans->base.box;
853 blit.src.box = trans->staging.box;
869 blit.src.box = trans->base.box;
873 blit.dst.box = trans->staging.box;
899 for (unsigned z = 0; z < ptrans->box.depth; ++z) {
903 (z + ptrans->box.z) * stride;
905 panfrost_load_tiled_image(dst, map, ptrans->box.x,
906 ptrans->box.y, ptrans->box.width,
907 ptrans->box.height, ptrans->stride,
925 for (unsigned z = 0; z < ptrans->box.depth; ++z) {
929 (z + ptrans->box.z) * stride;
932 ptrans->box.x, ptrans->box.y,
933 ptrans->box.width, ptrans->box.height,
941 const struct pipe_box *box)
944 util_texrange_covers_whole_level(resource, 0, box->x, box->y,
945 box->z, box->width, box->height,
946 box->depth);
954 const struct pipe_box *box,
971 transfer->base.box = *box;
981 struct panfrost_resource *staging = pan_alloc_staging(ctx, rsrc, level, box);
993 transfer->staging.box = *box;
994 transfer->staging.box.x = 0;
995 transfer->staging.box.y = 0;
996 transfer->staging.box.z = 0;
1024 panfrost_box_covers_resource(resource, box) &&
1037 && !util_ranges_intersect(&rsrc->valid_buffer_range, box->x, box->x + box->width)) &&
1105 && !util_ranges_intersect(&rsrc->valid_buffer_range, box->x, box->x + box->width)) {
1123 u_box_pixels_to_blocks(&box_blocks, box, format);
1128 transfer->map = ralloc_size(transfer, transfer->base.layer_stride * box->depth);
1160 + box->z * transfer->base.layer_stride
1184 struct pipe_box box =
1190 .dst.box = box,
1193 .src.box = box,
1262 transfer->box.width == prsrc->base.width0 &&
1263 transfer->box.height == prsrc->base.height0 &&
1264 transfer->box.x == 0 &&
1265 transfer->box.y == 0;
1344 transfer->box.width,
1345 transfer->box.height,
1358 transfer->box.x,
1359 transfer->box.x + transfer->box.width);
1373 const struct pipe_box *box)
1379 transfer->box.x + box->x,
1380 transfer->box.x + box->x + box->width);