summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-10-29 18:18:46 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-10-29 18:18:46 +0000
commit5b3cf5af74fe459ea6ebda4dec803b26b40c5b1f (patch)
tree83c5d772a34090f3f769d44d2813a36248213e96 /src/mesa
parent1a979736a6524a2987fcd6a8b1eda10016db96df (diff)
reduced swizzle comment
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/tnl/t_vb_arbprogram.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vb_arbprogram.h b/src/mesa/tnl/t_vb_arbprogram.h
index 92ae46113f..27f878c4e9 100644
--- a/src/mesa/tnl/t_vb_arbprogram.h
+++ b/src/mesa/tnl/t_vb_arbprogram.h
@@ -112,6 +112,10 @@ union instruction {
GLuint dword;
};
+
+/**
+ * Reduced swizzle is a 2-bit field; only X/Y/Z/W are allowed, not 0/1.
+ */
#define RSW_NOOP ((0<<0) | (1<<2) | (2<<4) | (3<<6))
#define GET_RSW(swz, idx) (((swz) >> ((idx)*2)) & 0x3)