From: Ian Romanick Date: Mon, 16 Nov 2009 22:30:47 +0000 (-0800) Subject: AL1616: Add macros to pack two GLushorts into a texel X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5fb07a4046a7f00f060bbc6dae92213e635d55f5;p=mesa.git AL1616: Add macros to pack two GLushorts into a texel --- diff --git a/src/mesa/main/colormac.h b/src/mesa/main/colormac.h index 7ae781ae23d..905f4e22837 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))