From bd894c4705e214d1ddc0165e2420bf96e321305f Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 20 Feb 2007 10:40:08 -0700 Subject: added SWIZZLE_XXXX, SWIZZLE_YYYY, etc --- src/mesa/shader/prog_instruction.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/shader/prog_instruction.h b/src/mesa/shader/prog_instruction.h index 05265ce0ab1..14305f17d38 100644 --- a/src/mesa/shader/prog_instruction.h +++ b/src/mesa/shader/prog_instruction.h @@ -57,6 +57,11 @@ #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. -- cgit v1.2.3