draw: increment output vertex properly
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 15 Apr 2008 13:52:56 +0000 (14:52 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 15 Apr 2008 13:52:56 +0000 (14:52 +0100)
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c

index 889cab7..75bbcc8 100644 (file)
@@ -250,14 +250,16 @@ static void fetch_pipeline_run( struct draw_pt_middle_end *middle,
 
            char *dest = out_buf + fpme->translate[j].output_offset;
 
-            /*debug_printf("emiting [%f, %f, %f, %f]\n",
-                         attrib[0], attrib[1],
-                         attrib[2], attrib[3]);*/
+           if (0)
+              debug_printf("emiting [%f, %f, %f, %f]\n",
+                           attrib[0], attrib[1],
+                           attrib[2], attrib[3]);
 
             fpme->translate[j].emit(attrib, dest);
          }
 
         fpme->input_buf[0] += fpme->pipeline_vertex_size;
+        out_buf += fpme->hw_vertex_size;
       }
 
       draw->render->draw(draw->render,