Lines Matching defs:box
1571 struct pipe_box box = (struct pipe_box) {
1577 &old_res->base.b, 0, &box);
1580 struct pipe_box box = (struct pipe_box) {
1587 &old_res->base.b, l, &box);
1965 src_box.x += xfer->box.x % IRIS_MAP_BUFFER_ALIGNMENT;
1968 .x = xfer->box.x + flush_box->x,
1969 .y = xfer->box.y + flush_box->y,
1970 .z = xfer->box.z + flush_box->z,
1994 struct pipe_box *box = &xfer->box;
1998 box->x % IRIS_MAP_BUFFER_ALIGNMENT : 0;
2002 .width0 = box->width + extra,
2003 .height0 = box->height,
2007 .array_size = box->depth,
2029 xfer->resource, xfer->level, box);
2114 const struct pipe_box *box = &xfer->box;
2123 for (int s = 0; s < box->depth; s++) {
2125 get_image_offset_el(surf, xfer->level, box->z + s, &x0_el, &y0_el);
2127 for (uint32_t y = 0; y < box->height; y++) {
2128 for (uint32_t x = 0; x < box->width; x++) {
2130 x0_el + box->x + x,
2131 y0_el + box->y + y);
2146 const struct pipe_box *box = &xfer->box;
2151 xfer->layer_stride = xfer->stride * box->height;
2157 map->buffer = map->ptr = malloc(xfer->layer_stride * box->depth);
2170 for (int s = 0; s < box->depth; s++) {
2172 get_image_offset_el(surf, xfer->level, box->z + s, &x0_el, &y0_el);
2174 for (uint32_t y = 0; y < box->height; y++) {
2175 for (uint32_t x = 0; x < box->width; x++) {
2177 x0_el + box->x + x,
2178 y0_el + box->y + y);
2194 const struct pipe_box *box,
2202 assert(box->x % fmtl->bw == 0);
2203 assert(box->y % fmtl->bh == 0);
2206 get_image_offset_el(surf, level, box->z + z, &x0_el, &y0_el);
2208 *x1_B = (box->x / fmtl->bw + x0_el) * cpp;
2209 *y1_el = box->y / fmtl->bh + y0_el;
2210 *x2_B = (DIV_ROUND_UP(box->x + box->width, fmtl->bw) + x0_el) * cpp;
2211 *y2_el = DIV_ROUND_UP(box->y + box->height, fmtl->bh) + y0_el;
2218 const struct pipe_box *box = &xfer->box;
2228 for (int s = 0; s < box->depth; s++) {
2230 tile_extents(surf, box, xfer->level, s, &x1, &x2, &y1, &y2);
2247 const struct pipe_box *box = &xfer->box;
2252 xfer->layer_stride = xfer->stride * box->height;
2255 tile_extents(surf, box, xfer->level, 0, &x1, &x2, &y1, &y2);
2262 os_malloc_aligned(xfer->layer_stride * box->depth, 16);
2272 for (int s = 0; s < box->depth; s++) {
2274 tile_extents(surf, box, xfer->level, s, &x1, &x2, &y1, &y2);
2276 /* Use 's' rather than 'box->z' to rebase the first slice to 0. */
2292 struct pipe_box *box = &xfer->box;
2302 map->ptr = ptr + box->x;
2310 assert(box->x % fmtl->bw == 0);
2311 assert(box->y % fmtl->bh == 0);
2312 get_image_offset_el(surf, xfer->level, box->z, &x0_el, &y0_el);
2314 x0_el += box->x / fmtl->bw;
2315 y0_el += box->y / fmtl->bh;
2326 const struct pipe_box *box,
2335 !util_ranges_intersect(&res->valid_buffer_range, box->x,
2336 box->x + box->width);
2344 const struct pipe_box *box,
2362 can_promote_to_async(res, box, usage)) {
2388 iris_has_invalid_primary(res, level, 1, box->z, box->depth);
2412 xfer->box = *box;
2416 util_ranges_intersect(&res->valid_buffer_range, box->x,
2417 box->x + box->width);
2420 util_range_add(&res->base.b, &res->valid_buffer_range, box->x, box->x + box->width);
2432 !iris_has_invalid_primary(res, level, 1, box->z, box->depth)) {
2462 iris_resource_access_raw(ice, res, level, box->z, box->depth,
2489 const struct pipe_box *box)
2496 iris_flush_staging_region(xfer, box);
2499 util_range_add(&res->base.b, &res->valid_buffer_range, box->x, box->x + box->width);
2518 .width = xfer->box.width,
2519 .height = xfer->box.height,
2520 .depth = xfer->box.depth,
2548 const struct pipe_box *box,
2573 return u_default_texture_subdata(ctx, resource, level, usage, box,
2579 iris_resource_access_raw(ice, res, level, box->z, box->depth, true);
2588 for (int s = 0; s < box->depth; s++) {
2593 get_image_offset_el(surf, level, box->z + s, &x0_el, &y0_el);
2595 for (unsigned y = 0; y < box->height; y++) {
2596 for (unsigned x = 0; x < box->width; x++) {
2598 x0_el + box->x + x,
2599 y0_el + box->y + y);
2606 tile_extents(surf, box, level, s, &x1, &x2, &y1, &y2);