summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cell/common.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-24 18:26:37 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-25 08:20:09 -0700
commit78bff07f73a546363b737b33958311efa7b3ce53 (patch)
treebf95fd7aed2d18f020e83d393538c037b56e2dbb /src/mesa/pipe/cell/common.h
parenta148cc51fbe56266199057cfde2abb2b59eb8713 (diff)
Cell: new ROUNDUP16() macro
Diffstat (limited to 'src/mesa/pipe/cell/common.h')
-rw-r--r--src/mesa/pipe/cell/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/pipe/cell/common.h b/src/mesa/pipe/cell/common.h
index b9a00ccbb5..5c437daac6 100644
--- a/src/mesa/pipe/cell/common.h
+++ b/src/mesa/pipe/cell/common.h
@@ -43,6 +43,9 @@
assert((((unsigned long) (ptr)) & 0xf) == 0);
+/** round up value to next multiple of 16 */
+#define ROUNDUP16(k) (((k) + 0xf) & ~0xf)
+
#define TILE_SIZE 32