reduced swizzle comment
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 29 Oct 2005 18:18:46 +0000 (18:18 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 29 Oct 2005 18:18:46 +0000 (18:18 +0000)
src/mesa/tnl/t_vb_arbprogram.h

index 92ae461..27f878c 100644 (file)
@@ -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)