Added vertex attributes to the context
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Fri, 14 Apr 2006 22:43:44 +0000 (22:43 +0000)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Fri, 14 Apr 2006 22:43:44 +0000 (22:43 +0000)
src/mesa/drivers/dri/nouveau/nouveau_context.h

index 93c6f1dfffd9a96fdc110879457d3bcaef9679fe..dcb14420330e1cc972c1a5d25f04fe6afea2740d 100644 (file)
@@ -83,10 +83,14 @@ typedef struct nouveau_context {
        volatile unsigned char* mmio;
 
        /* State for tris */
-       GLuint vertex_size;
        GLuint color_offset;
        GLuint specular_offset;
 
+       /* Vertex state */
+       GLuint vertex_size;
+       struct tnl_attr_map vertex_attrs[VERT_ATTRIB_MAX];
+       GLuint vertex_attr_count;
+
        /* The drawing fallbacks */
        GLuint Fallback;
        nouveau_tri_func* draw_tri;