From: Keith Whitwell Date: Sat, 22 May 2010 19:31:11 +0000 (+0100) Subject: util: add u_box_3d X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6861be9cc42c19f7f0bb719e7e2dab5e592614e;p=mesa.git util: add u_box_3d --- diff --git a/src/gallium/auxiliary/util/u_box.h b/src/gallium/auxiliary/util/u_box.h index 919967b55a7..e9c71743fc8 100644 --- a/src/gallium/auxiliary/util/u_box.h +++ b/src/gallium/auxiliary/util/u_box.h @@ -60,6 +60,25 @@ void u_box_2d_zslice( unsigned x, box->depth = 1; } + +static INLINE +void u_box_3d( unsigned x, + unsigned y, + unsigned z, + unsigned w, + unsigned h, + unsigned d, + struct pipe_box *box ) +{ + box->x = x; + box->y = y; + box->z = z; + box->width = w; + box->height = h; + box->depth = d; +} + + static INLINE struct pipe_subresource u_subresource( unsigned face, unsigned level )