Home | History | Annotate | Download | only in freedreno

Lines Matching refs:box

122 				blit->dst.resource, blit->dst.level, blit->dst.box.x,
123 blit->dst.box.y, blit->dst.box.z,
124 blit->src.resource, blit->src.level, &blit->src.box);
130 unsigned level, unsigned usage, const struct pipe_box *box)
162 box->x, box->y, box->z, box->width, box->height, box->depth);
237 set_box(box.width, u_minify(prsc->width0, l));
238 set_box(box.height, u_minify(prsc->height0, l));
239 set_box(box.depth, u_minify(prsc->depth0, l));
253 set_box(box.y, 0);
254 set_box(box.z, 0);
255 set_box(box.height, 1);
256 set_box(box.depth, 1);
258 if (box->x > 0) {
259 set_box(box.x, 0);
260 set_box(box.width, box->x);
264 if ((box->x + box->width) < u_minify(prsc->width0, level)) {
265 set_box(box.x, box->x + box->width);
266 set_box(box.width, u_minify(prsc->width0, level) - (box->x + box->width));
297 fd_resource_flush_z32s8(struct fd_transfer *trans, const struct pipe_box *box)
305 fd_resource_layer_offset(rsc, slice, trans->base.box.z) +
306 (trans->base.box.y + box->y) * slice->pitch * 4 + (trans->base.box.x + box->x) * 4;
308 fd_resource_layer_offset(rsc->stencil, sslice, trans->base.box.z) +
309 (trans->base.box.y + box->y) * sslice->pitch + trans->base.box.x + box->x;
315 box->width, box->height);
320 box->width, box->height);
324 fd_resource_flush_rgtc(struct fd_transfer *trans, const struct pipe_box *box)
331 fd_resource_layer_offset(rsc, slice, trans->base.box.z) +
332 ((trans->base.box.y + box->y) * slice->pitch +
333 trans->base.box.x + box->x) * rsc->cpp;
336 util_format_get_nblocksy(format, box->y) * trans->base.stride +
337 util_format_get_stride(format, box->x);
347 box->width, box->height);
356 box->width, box->height);
365 fd_resource_flush(struct fd_transfer *trans, const struct pipe_box *box)
372 fd_resource_flush_z32s8(trans, box);
382 fd_resource_flush_rgtc(trans, box);
392 const struct pipe_box *box)
399 ptrans->box.x + box->x,
400 ptrans->box.x + box->x + box->width);
403 fd_resource_flush(trans, box);
415 struct pipe_box box;
416 u_box_2d(0, 0, ptrans->box.width, ptrans->box.height, &box);
417 fd_resource_flush(trans, &box);
427 ptrans->box.x,
428 ptrans->box.x + ptrans->box.width);
440 const struct pipe_box *box,
454 DBG("prsc=%p, level=%u, usage=%x, box=%dx%d+%d,%d", prsc, level, usage,
455 box->width, box->height, box->x, box->y);
468 ptrans->box = *box;
489 box->x, box->x + box->width)) {
520 if (fd_try_shadow_resource(ctx, rsc, level, usage, box)) {
562 box->y / util_format_get_blockheight(format) * ptrans->stride +
563 box->x / util_format_get_blockwidth(format) * rsc->cpp +
564 fd_resource_layer_offset(rsc, slice, box->z);
568 assert(trans->base.box.depth == 1);
570 trans->base.stride = trans->base.box.width * rsc->cpp * 2;
571 trans->staging = malloc(trans->base.stride * trans->base.box.height);
587 fd_resource_layer_offset(rsc, slice, box->z) +
588 box->y * slice->pitch * 4 + box->x * 4);
590 fd_resource_layer_offset(rsc->stencil, sslice, box->z) +
591 box->y * sslice->pitch + box->x;
597 box->width, box->height);
602 box->width, box->height);
609 assert(trans->base.box.depth == 1);
612 format, trans->base.box.width);
615 trans->base.box.height));
625 fd_resource_layer_offset(rsc, slice, box->z) +
626 box->y * slice->pitch * rsc->cpp + box->x * rsc->cpp;
636 box->width, box->height);
645 box->width, box->height);
948 /* TODO we could discard if dst box covers dst level fully.. */
1034 info.dst.level, info.dst.box.x, info.dst.box.y,
1035 info.dst.box.z, info.dst.box.width,
1036 info.dst.box.height, info.dst.box.depth);