summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-19 17:16:23 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-19 17:16:23 +0100
commit2dae208fb19e79c7446a29ee5dee53e50283b57c (patch)
treed5df1278345fe6d854de7389477864a9be59ede8 /src/gallium/auxiliary
parente7bac4276634ea1ee81ac71f6f6869f87e689872 (diff)
draw: make room for extra_vs_outputs
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
index a47693ba20..e1df594035 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
@@ -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;