draw: make room for extra_vs_outputs
authorKeith Whitwell <keith@tungstengraphics.com>
Sat, 19 Apr 2008 16:16:23 +0000 (17:16 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Sat, 19 Apr 2008 16:16:23 +0000 (17:16 +0100)
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c

index a47693ba2050cf5d569fee364b896e150c925d27..e1df594035e751129eb80b2c9cb84b9c5e7a1b2b 100644 (file)
@@ -56,8 +56,12 @@ static void fetch_pipeline_prepare( struct draw_pt_middle_end *middle,
    struct fetch_pipeline_middle_end *fpme = (struct fetch_pipeline_middle_end *)middle;
    struct draw_context *draw = fpme->draw;
    struct draw_vertex_shader *vs = draw->vertex_shader;
+
+   /* Add one to num_outputs because the pipeline occasionally tags on
+    * an additional texcoord, eg for AA lines.
+    */
    unsigned nr = MAX2( vs->info.num_inputs,
-                      vs->info.num_outputs );
+                      vs->info.num_outputs + 1 );
 
    fpme->prim = prim;
    fpme->opt = opt;