From: Brian Date: Tue, 20 Feb 2007 17:40:08 +0000 (-0700) Subject: added SWIZZLE_XXXX, SWIZZLE_YYYY, etc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd894c4705e214d1ddc0165e2420bf96e321305f;p=mesa.git added SWIZZLE_XXXX, SWIZZLE_YYYY, etc --- 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.