summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-08-27 21:57:41 +0200
committerMarek Olšák <[email protected]>2013-08-31 01:34:29 +0200
commit89a665eb5fa176f68223bf54a472d6a0567c3546 (patch)
tree0b65915692e30462f870438153ef9d7f3bae3e4f /src/gallium/auxiliary/draw
parenta35b32025011eeac01f2e5a476dbf3ac132a61b3 (diff)
draw: fix segfaults with aaline and aapoint stages disabled
There are drivers not using these optional stages. Broken by a3ae5dc7dd5c2f8893f86a920247e690e550ebd4. Cc: [email protected] Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index d1fac0c6c1d..641dd82ee28 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -564,8 +564,10 @@ draw_prepare_shader_outputs(struct draw_context *draw)
draw_remove_extra_vertex_attribs(draw);
draw_prim_assembler_prepare_outputs(draw->ia);
draw_unfilled_prepare_outputs(draw, draw->pipeline.unfilled);
- draw_aapoint_prepare_outputs(draw, draw->pipeline.aapoint);
- draw_aaline_prepare_outputs(draw, draw->pipeline.aaline);
+ if (draw->pipeline.aapoint)
+ draw_aapoint_prepare_outputs(draw, draw->pipeline.aapoint);
+ if (draw->pipeline.aaline)
+ draw_aaline_prepare_outputs(draw, draw->pipeline.aaline);
}
/**