added SWIZZLE_XXXX, SWIZZLE_YYYY, etc
authorBrian <brian@yutani.localnet.net>
Tue, 20 Feb 2007 17:40:08 +0000 (10:40 -0700)
committerBrian <brian@yutani.localnet.net>
Tue, 20 Feb 2007 17:40:08 +0000 (10:40 -0700)
src/mesa/shader/prog_instruction.h

index 05265ce0ab1c4fcb5fce4aa3255bde8994e1a370..14305f17d384bbdef13768c9194251a8a6318511 100644 (file)
 #define GET_SWZ(swz, idx)      (((swz) >> ((idx)*3)) & 0x7)
 #define GET_BIT(msk, idx)      (((msk) >> (idx)) & 0x1)
 
+#define SWIZZLE_XXXX MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_X, SWIZZLE_X, SWIZZLE_X)
+#define SWIZZLE_YYYY MAKE_SWIZZLE4(SWIZZLE_Y, SWIZZLE_Y, SWIZZLE_Y, SWIZZLE_Y)
+#define SWIZZLE_ZZZZ MAKE_SWIZZLE4(SWIZZLE_Z, SWIZZLE_Z, SWIZZLE_Z, SWIZZLE_Z)
+#define SWIZZLE_WWWW MAKE_SWIZZLE4(SWIZZLE_W, SWIZZLE_W, SWIZZLE_W, SWIZZLE_W)
+
 
 /**
  * Writemask values, 1 bit per component.