Lines Matching defs:box

245                                 blit->dst.box.x, blit->dst.box.y,
246 blit->dst.box.z, blit->src.resource,
247 blit->src.level, &blit->src.box);
352 * @level: the level to discard (if box != NULL, otherwise ignored)
353 * @box: the box to discard (or NULL if none)
358 unsigned level, const struct pipe_box *box,
403 bool discard_whole_level = box && util_texrange_covers_whole_level(
404 prsc, level, box->x, box->y, box->z,
405 box->width, box->height, box->depth);
408 if ((prsc->target >= PIPE_TEXTURE_2D) && box && !discard_whole_level)
486 if (box && l == level)
491 set_box(box.width, u_minify(prsc->width0, l));
492 set_box(box.height, u_minify(prsc->height0, l));
493 set_box(box.depth, u_minify(prsc->depth0, l));
496 set_box(box.z, i);
504 if (box && !discard_whole_level) {
510 set_box(box.y, 0);
511 set_box(box.z, 0);
512 set_box(box.height, 1);
513 set_box(box.depth, 1);
515 if (box->x > 0) {
516 set_box(box.x, 0);
517 set_box(box.width, box->x);
521 if ((box->x + box->width) < u_minify(prsc->width0, level)) {
522 set_box(box.x, box->x + box->width);
523 set_box(box.width,
524 u_minify(prsc->width0, level) - (box->x + box->width));
577 unsigned level, const struct pipe_box *box)
590 tmpl.width0 = box->width;
591 tmpl.height0 = box->height;
592 /* for array textures, box->depth is the array_size, otherwise
598 tmpl.array_size = box->depth;
602 tmpl.depth0 = box->depth;
627 blit.dst.box = trans->b.b.box;
631 blit.src.box = trans->staging_box;
648 blit.src.box = trans->b.b.box;
652 blit.dst.box = trans->staging_box;
662 const struct pipe_box *box)
668 ptrans->box.x + box->x,
669 ptrans->box.x + box->x + box->width);
717 util_range_add(&rsc->b.b, &rsc->valid_buffer_range, ptrans->box.x,
718 ptrans->box.x + ptrans->box.width);
748 const struct pipe_box *box,
758 staging_rsc = fd_alloc_staging(ctx, rsc, level, box);
765 trans->staging_box = *box;
784 unsigned usage, const struct pipe_box *box,
801 return resource_transfer_map_staging(pctx, prsc, level, usage, box, trans);
803 offset = box->y / util_format_get_blockheight(format) * trans->b.b.stride +
804 box->x / util_format_get_blockwidth(format) * rsc->layout.cpp +
805 fd_resource_offset(rsc, level, box->z);
821 const struct pipe_box *box,
845 return resource_transfer_map_staging(pctx, prsc, level, usage, box, trans);
847 perf_debug_ctx(ctx, "wc readback: prsc=%p, level=%u, usage=%x, box=%dx%d+%d,%d",
848 prsc, level, usage, box->width, box->height, box->x, box->y);
875 if (needs_flush && fd_try_shadow_resource(ctx, rsc, level, box,
893 staging_rsc = fd_alloc_staging(ctx, rsc, level, box);
899 trans->staging_box = *box;
928 return resource_transfer_map_unsync(pctx, prsc, level, usage, box, trans);
933 unsigned usage, const struct pipe_box *box)
951 !util_ranges_intersect(&rsc->valid_buffer_range, box->x,
952 box->x + box->width)) {
966 const struct pipe_box *box,
974 DBG("prsc=%p, level=%u, usage=%x, box=%dx%d+%d,%d", prsc, level, usage,
975 box->width, box->height, box->x, box->y);
993 usage = improve_transfer_map_usage(ctx, rsc, usage, box);
998 ptrans->box = *box;
1004 ret = resource_transfer_map_unsync(pctx, prsc, level, usage, box, trans);
1006 ret = resource_transfer_map(pctx, prsc, level, usage, box, trans);