cell: don't need to trim prims
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 18 Apr 2008 23:44:09 +0000 (00:44 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 18 Apr 2008 23:44:09 +0000 (00:44 +0100)
src/gallium/drivers/cell/ppu/cell_draw_arrays.c

index 36af5be5f028be55391fb596bb96612e52505827..6e08cf6fe88dd9f094cf289c71abeeb073e04ec8 100644 (file)
@@ -101,17 +101,6 @@ cell_draw_elements(struct pipe_context *pipe,
    struct draw_context *draw = sp->draw;
    unsigned i;
 
-   /* first, check that the primitive is not malformed.  It is the
-    * state tracker's responsibility to do send only correctly formed
-    * primitives down.  It currently isn't doing that though...
-    */
-#if 1
-   count = draw_trim_prim( mode, count );
-#else
-   if (!draw_validate_prim( mode, count ))
-      assert(0);
-#endif
-
    if (sp->dirty)
       cell_update_derived( sp );