X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fauxiliary%2Futil%2Fu_box.h;h=0b28d0f12c3530cde20aaa3bdc09d0a8af81e51b;hb=f0ed082babe29eee502ec81302dae5fc15347e3f;hp=919967b55a709ccea5be48381d1e317097ee76c0;hpb=e4c54d404959aa1bce26caa313c0a47e65ff211a;p=mesa.git diff --git a/src/gallium/auxiliary/util/u_box.h b/src/gallium/auxiliary/util/u_box.h index 919967b55a7..0b28d0f12c3 100644 --- a/src/gallium/auxiliary/util/u_box.h +++ b/src/gallium/auxiliary/util/u_box.h @@ -61,13 +61,20 @@ void u_box_2d_zslice( unsigned x, } static INLINE -struct pipe_subresource u_subresource( unsigned face, - unsigned level ) +void u_box_3d( unsigned x, + unsigned y, + unsigned z, + unsigned w, + unsigned h, + unsigned d, + struct pipe_box *box ) { - struct pipe_subresource subresource; - subresource.face = face; - subresource.level = level; - return subresource; + box->x = x; + box->y = y; + box->z = z; + box->width = w; + box->height = h; + box->depth = d; } #endif