summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-08-22 15:06:52 -0700
committerIago Toral Quiroga <[email protected]>2015-01-12 11:20:27 +0100
commit3e4669a8f3f61dab54faf1ae8512569bca1e54da (patch)
tree4b6ce0772e7abf892b52e344392d37c14033f71d
parentec0bfba49668875462dfd75f4824f48018e82efe (diff)
mesa/colormac: Remove an unused macro
The PACK_565_REV macro is no longer used. It was also extremely confusing because it's actually a byteswapped 565 not reversed 565. Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r--src/mesa/main/colormac.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/main/colormac.h b/src/mesa/main/colormac.h
index c8adca6b67c..bc69f4673c4 100644
--- a/src/mesa/main/colormac.h
+++ b/src/mesa/main/colormac.h
@@ -69,9 +69,6 @@ _mesa_unclamped_float_rgba_to_ubyte(GLubyte dst[4], const GLfloat src[4])
#define PACK_COLOR_565( X, Y, Z ) \
((((X) & 0xf8) << 8) | (((Y) & 0xfc) << 3) | (((Z) & 0xf8) >> 3))
-#define PACK_COLOR_565_REV( X, Y, Z ) \
- (((X) & 0xf8) | ((Y) & 0xe0) >> 5 | (((Y) & 0x1c) << 11) | (((Z) & 0xf8) << 5))
-
#define PACK_COLOR_5551( R, G, B, A ) \
((((R) & 0xf8) << 8) | (((G) & 0xf8) << 3) | (((B) & 0xf8) >> 2) | \
((A) >> 7))