summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/p_util.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-12-13 20:38:56 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2007-12-13 20:39:31 +0000
commit568fcf64c774f5f8e9f65bb86c121f5d550b1632 (patch)
tree60bac5b746779a1e85d52853a71545e2864ee30a /src/mesa/pipe/p_util.h
parentc605a55e9f771a2f0e85d69ff60059f7ea95320f (diff)
965: get fragment shader compiler compiling
Don't think that it will run though.
Diffstat (limited to 'src/mesa/pipe/p_util.h')
-rw-r--r--src/mesa/pipe/p_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_util.h b/src/mesa/pipe/p_util.h
index e6d284d932..46edcf3075 100644
--- a/src/mesa/pipe/p_util.h
+++ b/src/mesa/pipe/p_util.h
@@ -360,6 +360,11 @@ static INLINE float LOG2(float val)
#define CEILF(x) ((float) ceil(x))
#endif
+static INLINE int align(int value, int alignment)
+{
+ return (value + alignment - 1) & ~(alignment - 1);
+}
+
/* Convenient...
*/
extern void _mesa_printf(const char *str, ...);