draw: don't crash if GS doesn't emit anything
authorZack Rusin <zackr@vmware.com>
Sat, 27 Apr 2013 12:55:36 +0000 (08:55 -0400)
committerZack Rusin <zackr@vmware.com>
Sat, 27 Apr 2013 21:28:04 +0000 (17:28 -0400)
commitd48054ff222ac75241ca74b8e4080261eae9e8e9
tree7259a71ca5f8d03e129653c802139f62dc366131
parente56095dc2e40d6d1e37e123c694a609d16932b4a
draw: don't crash if GS doesn't emit anything

Technically it's legal for geometry shader to not emit any
vertices. It's silly, but perfectly legal, so lets make draw
stop crashing if it happens.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c