softpipe: fix streamout with an emptry geometry shader
authorZack Rusin <zackr@vmware.com>
Fri, 19 Apr 2013 19:51:07 +0000 (12:51 -0700)
committerZack Rusin <zackr@vmware.com>
Tue, 23 Apr 2013 00:36:07 +0000 (20:36 -0400)
commit2aad06844fe50deeb905417ed75d3d167a947d5a
treec9f07007b7da159650cbf3d30de27c289651ab01
parent723b78397fbad8987e14b7bb2376055529f40856
softpipe: fix streamout with an emptry geometry shader

Same approach as in the llvmpipe, if the geometry shader is
null and we have stream output then attach it to the vertex
shader right before executing the draw pipeline.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/softpipe/sp_draw_arrays.c
src/gallium/drivers/softpipe/sp_state_shader.c