projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2500d82
)
added SWIZZLE_XYZW
author
Brian
<brian@yutani.localnet.net>
Wed, 21 Mar 2007 21:40:54 +0000
(15:40 -0600)
committer
Brian
<brian@yutani.localnet.net>
Wed, 21 Mar 2007 21:40:54 +0000
(15:40 -0600)
src/mesa/shader/prog_instruction.h
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_instruction.h
b/src/mesa/shader/prog_instruction.h
index 66abb10cdb8f1930594affcc9dc02a0454ce300c..12e8480125ffa87219ef90208a10a8ce33f65b16 100644
(file)
--- a/
src/mesa/shader/prog_instruction.h
+++ b/
src/mesa/shader/prog_instruction.h
@@
-57,6
+57,7
@@
#define GET_SWZ(swz, idx) (((swz) >> ((idx)*3)) & 0x7)
#define GET_BIT(msk, idx) (((msk) >> (idx)) & 0x1)
+#define SWIZZLE_XYZW MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Z, SWIZZLE_W)
#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)