Mesa (master): util: add u_box_3d

Keith Whitwell keithw at kemper.freedesktop.org
Mon Jun 7 08:35:43 PDT 2010


Module: Mesa
Branch: master
Commit: d6861be9cc42c19f7f0bb719e7e2dab5e592614e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6861be9cc42c19f7f0bb719e7e2dab5e592614e

Author: Keith Whitwell <keithw at vmware.com>
Date:   Sat May 22 20:31:11 2010 +0100

util: add u_box_3d

---

 src/gallium/auxiliary/util/u_box.h |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_box.h b/src/gallium/auxiliary/util/u_box.h
index 919967b..e9c7174 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 )



More information about the mesa-commit mailing list