aboutsummaryrefslogtreecommitdiff
path: root/src/mesa/swrast/swrast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast/swrast.h')
-rw-r--r--src/mesa/swrast/swrast.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/swrast/swrast.h b/src/mesa/swrast/swrast.h
index 7fb0d2a..a3cd9e0 100644
--- a/src/mesa/swrast/swrast.h
+++ b/src/mesa/swrast/swrast.h
@@ -62,14 +62,19 @@
*/
typedef struct {
/** win[0], win[1] are the screen-coords of SWvertex. win[2] is the
- * z-coord. what is win[3]? */
+ * z-coord. what is win[3]?
+ *
+ * The texcoord array (most of the struct) trails so a
+ * fixed-function vertex's hot fields share fewer cache lines. All
+ * access is by field name, no code depends on member order.
+ */
GLfloat win[4];
- GLfloat texcoord[MAX_TEXTURE_COORD_UNITS][4];
GLchan color[4];
GLchan specular[4];
GLfloat fog;
GLfloat index;
GLfloat pointSize;
+ GLfloat texcoord[MAX_TEXTURE_COORD_UNITS][4];
} SWvertex;