restore primitive trimming in sp_draw_arrays.c
authorkeithw <keithw@keithw-laptop.(none)>
Wed, 26 Sep 2007 10:57:28 +0000 (11:57 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 27 Sep 2007 06:56:23 +0000 (07:56 +0100)
src/mesa/pipe/softpipe/sp_draw_arrays.c
src/mesa/pipe/softpipe/sp_prim_setup.c

index 21c30b5..405659f 100644 (file)
@@ -99,12 +99,15 @@ softpipe_draw_elements(struct pipe_context *pipe,
 
    /* first, check that the primitive is not malformed.  It is the
     * state tracker's responsibility to do send only correctly formed
-    * primitives down.
+    * primitives down.  It currently isn't doing that though...
     */
-//   count = draw_trim_prim( mode, count );
-
+#if 1
+   count = draw_trim_prim( mode, count );
+#else
    if (!draw_validate_prim( mode, count ))
       assert(0);
+#endif
+
 
    if (sp->dirty)
       softpipe_update_derived( sp );
index 621a445..2e27d00 100644 (file)
@@ -41,7 +41,7 @@
 #include "pipe/draw/draw_vertex.h"
 #include "pipe/p_util.h"
 
-#define DEBUG_VERTS 1
+#define DEBUG_VERTS 0
 
 /**
  * Triangle edge info