projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef3218
)
AL1616: Add macros to pack two GLushorts into a texel
author
Ian Romanick
<ian.d.romanick@intel.com>
Mon, 16 Nov 2009 22:30:47 +0000
(14:30 -0800)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Mon, 16 Nov 2009 23:23:16 +0000
(15:23 -0800)
src/mesa/main/colormac.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/colormac.h
b/src/mesa/main/colormac.h
index 7ae781ae23d5644d68c3fb125b93f19b965e51e9..905f4e2283733a5c7d416d2c0df9dcf27950ea3b 100644
(file)
--- 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))