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 889cab700c50669b71575c72b6f8c66e881ba81d..75bbcc8d413bcc0f87f6cd603ad1ccf5db0da79f 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,