i965: Make sure the VS URB size is big enough to fit a VF VUE.
[mesa.git] / src / mesa / tnl / t_vb_render.c
index abc5429919e6070d336ca7f6e5f69338b5b74008..c1bebc99423589651e0e1dcd15d7124e89d4bc13 100644 (file)
  */
 
 
-#include "glheader.h"
-#include "context.h"
-#include "enums.h"
-#include "macros.h"
-#include "imports.h"
-#include "mtypes.h"
+#include "main/glheader.h"
+#include "main/context.h"
+#include "main/enums.h"
+#include "main/macros.h"
+#include "main/imports.h"
+#include "main/mtypes.h"
 
 #include "t_pipeline.h"
 
@@ -86,7 +86,6 @@
 do {                                           \
    GLubyte c1 = mask[v1], c2 = mask[v2];       \
    GLubyte ormask = c1|c2;                     \
-   printf("0x%x 0x%x 0x%x\n", c1, c2, CLIPMASK);\
    if (!ormask)                                        \
       LineFunc( ctx, v1, v2 );                 \
    else if (!(c1 & c2 & CLIPMASK))                     \
@@ -306,7 +305,7 @@ static GLboolean run_render( GLcontext *ctx,
 
       for (i = 0 ; i < VB->PrimitiveCount ; i++)
       {
-        GLuint prim = VB->Primitive[i].mode;
+        GLuint prim = _tnl_translate_prim(&VB->Primitive[i]);
         GLuint start = VB->Primitive[i].start;
         GLuint length = VB->Primitive[i].count;