Some compile fixes.
[mesa.git] / src / mesa / drivers / dri / nouveau / nouveau_context.h
index d287439fcf9668d01fcb163e20b85b9f092652a4..83ac2fd45568d0ba2940ab2ddfe87f806491a590 100644 (file)
@@ -54,6 +54,7 @@ nouveau_fifo;
 #include "tnl_dd/t_dd_vertex.h"
 #undef TAG
 
+struct nouveau_context;
 
 typedef void (*nouveau_tri_func)( struct nouveau_context*, 
                nouveauVertex *,
@@ -81,6 +82,11 @@ typedef struct nouveau_context {
        /* The read-only regs */
        volatile unsigned char* mmio;
 
+       /* State for tris */
+       GLuint vertex_size;
+       GLuint color_offset;
+       GLuint specular_offset;
+
        /* The drawing fallbacks */
        nouveau_tri_func* draw_tri;
        nouveau_line_func* draw_line;
@@ -107,6 +113,8 @@ typedef struct nouveau_context {
 
        /* Configuration cache */
        driOptionCache optionCache;
+
+        uint32_t vblank_flags;
 }nouveauContextRec, *nouveauContextPtr;
 
 #define NOUVEAU_CONTEXT(ctx)           ((nouveauContextPtr)(ctx->DriverCtx))