diff options
author | Brian <brian@yutani.localnet.net> | 2007-02-20 10:40:08 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-02-20 10:40:08 -0700 |
commit | bd894c4705e214d1ddc0165e2420bf96e321305f (patch) | |
tree | 87f29d0a112eae25ee55931bfff4b3db2900d170 /src/mesa/shader | |
parent | 174c5554145a54d925444ec47f06777420e04ea1 (diff) | |
download | external_mesa3d-bd894c4705e214d1ddc0165e2420bf96e321305f.zip external_mesa3d-bd894c4705e214d1ddc0165e2420bf96e321305f.tar.gz external_mesa3d-bd894c4705e214d1ddc0165e2420bf96e321305f.tar.bz2 |
added SWIZZLE_XXXX, SWIZZLE_YYYY, etc
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/prog_instruction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/shader/prog_instruction.h b/src/mesa/shader/prog_instruction.h index 05265ce..14305f1 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. |