Lines Matching defs:box
63 blit.src.box = *src_box;
67 blit.dst.box.x = dstx;
68 blit.dst.box.y = dsty;
69 blit.dst.box.z = dstz;
70 blit.dst.box.width = src_box->width;
71 blit.dst.box.height = src_box->height;
72 blit.dst.box.depth = src_box->depth;
96 si_copy_region_with_blit(ctx, dst, 0, 0, 0, 0, 0, src, src_level, &transfer->box);
100 si_resource_copy_region(ctx, dst, 0, 0, 0, 0, src, src_level, &transfer->box);
111 u_box_3d(0, 0, 0, transfer->box.width, transfer->box.height, transfer->box.depth, &sbox);
117 si_copy_region_with_blit(ctx, dst, dst_level, dst_sample, transfer->box.x, transfer->box.y,
118 transfer->box.z, src, 0, &sbox);
127 si_resource_copy_region(ctx, dst, transfer->level, transfer->box.x, transfer->box.y,
128 transfer->box.z, src, 0, &sbox);
132 unsigned level, const struct pipe_box *box, unsigned *stride,
146 if (!box)
151 return tex->surface.u.gfx9.surf_offset + box->z * tex->surface.u.gfx9.surf_slice_size +
153 (box->y / tex->surface.blk_h * pitch + box->x / tex->surface.blk_w) *
160 if (!box)
166 box->z * (uint64_t)tex->surface.u.legacy.level[level].slice_size_dw * 4 +
167 (box->y / tex->surface.blk_h * tex->surface.u.legacy.level[level].nblk_x +
168 box->x / tex->surface.blk_w) *
456 struct pipe_box box;
459 util_num_layers(&templ, i), &box);
462 i, 0, 0, 0, &tex->buffer.b.b, i, &box);
785 struct pipe_box box;
786 u_box_1d(0, newb->width0, &box);
787 sctx->b.resource_copy_region(&sctx->b, newb, 0, 0, 0, 0, &res->b.b, 0, &box);
1346 struct pipe_box *box, bool commit)
1360 unsigned x = box->x / surface->prt_tile_width;
1361 unsigned y = box->y / surface->prt_tile_height;
1362 unsigned z = box->z / surface->prt_tile_depth;
1364 unsigned w = DIV_ROUND_UP(box->width, surface->prt_tile_width);
1365 unsigned h = DIV_ROUND_UP(box->height, surface->prt_tile_height);
1366 unsigned d = DIV_ROUND_UP(box->depth, surface->prt_tile_depth);
1751 * Initialize the pipe_resource descriptor to be of the same size as the box,
1756 const struct pipe_box *box, unsigned level,
1761 res->width0 = box->width;
1762 res->height0 = box->height;
1781 res->width0 = util_format_get_nblocksx(orig->format, box->width);
1782 res->height0 = util_format_get_nblocksy(orig->format, box->height);
1785 /* We must set the correct texture target and dimensions for a 3D box. */
1786 if (box->depth > 1 && util_max_layer(orig, level) > 0) {
1788 res->array_size = box->depth;
1795 unsigned transfer_usage, const struct pipe_box *box)
1799 util_texrange_covers_whole_level(&tex->buffer.b.b, 0, box->x, box->y, box->z, box->width,
1800 box->height, box->depth);
1823 unsigned level, unsigned usage, const struct pipe_box *box,
1837 assert(box->width && box->height && box->depth);
1853 if (!sctx->screen->info.has_dedicated_vram && real_level == 0 && box->width >= 4 &&
1854 box->height >= 4 && p_atomic_inc_return(&tex->num_level0_transfers) == 10) {
1855 bool can_invalidate = si_can_invalidate_texture(sctx->screen, tex, usage, box);
1883 if (si_can_invalidate_texture(sctx->screen, tex, usage, box))
1896 trans->b.b.box = *box;
1904 si_init_temp_resource_from_box(&resource, texture, box, real_level, bo_usage,
1934 offset = si_texture_get_offset(sctx->screen, tex, real_level, box, &trans->b.b.stride,