gallium: move the vertex print/debug code
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 22 Apr 2008 22:15:49 +0000 (16:15 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 22 Apr 2008 22:15:49 +0000 (16:15 -0600)
src/gallium/drivers/softpipe/sp_setup.c

index 0bf2b2dc3ed0476b0133f7bd7767bde791b9d745..7df8fc5f6796eeaa9421889fe2d789c5e381d7ba 100644 (file)
@@ -299,13 +299,6 @@ static boolean setup_sort_vertices( struct setup_context *setup,
                                     const float (*v1)[4],
                                     const float (*v2)[4] )
 {
-#if DEBUG_VERTS
-   debug_printf("Triangle:\n");
-   print_vertex(setup, v0);
-   print_vertex(setup, v1);
-   print_vertex(setup, v2);
-#endif
-
    setup->vprovoke = v2;
 
    /* determine bottom to top order of vertices */
@@ -738,7 +731,12 @@ void setup_tri( struct setup_context *setup,
    setup->numFragsWritten = 0;
 #endif
 
-
+#if DEBUG_VERTS
+   debug_printf("Triangle:\n");
+   print_vertex(setup, v0);
+   print_vertex(setup, v1);
+   print_vertex(setup, v2);
+#endif
 
    if (cull_tri( setup, det ))
       return;