summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-11-16 14:30:47 -0800
committerIan Romanick <ian.d.romanick@intel.com>2009-11-16 15:23:16 -0800
commit5fb07a4046a7f00f060bbc6dae92213e635d55f5 (patch)
tree936d3fef7904236dc8869ec17ce485b8deee59b9 /src/mesa
parentaef3218f0bb48fdb286d2008ee07e507ea8aa98e (diff)
AL1616: Add macros to pack two GLushorts into a texel
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/colormac.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/colormac.h b/src/mesa/main/colormac.h
index 7ae781ae23..905f4e2283 100644
--- a/src/mesa/main/colormac.h
+++ b/src/mesa/main/colormac.h
@@ -210,6 +210,12 @@ do { \
#define PACK_COLOR_88_REV( L, A ) \
(((A) << 8) | (L))
+#define PACK_COLOR_1616( L, A ) \
+ (((L) << 16) | (A))
+
+#define PACK_COLOR_1616_REV( L, A ) \
+ (((A) << 16) | (L))
+
#define PACK_COLOR_332( R, G, B ) \
(((R) & 0xe0) | (((G) & 0xe0) >> 3) | (((B) & 0xc0) >> 6))