draw: make sure clipping works with injected outputs
authorZack Rusin <zackr@vmware.com>
Fri, 2 Aug 2013 05:45:45 +0000 (01:45 -0400)
committerZack Rusin <zackr@vmware.com>
Sat, 3 Aug 2013 00:11:18 +0000 (20:11 -0400)
commit8e77e5e543e917dcd172fcb0390f885ffa6fbc2a
tree11b6f31a0acc66747460368c286e1507b761ec4c
parentd6b3a193d4d525c5048ebf793e6a63fd98f92d64
draw: make sure clipping works with injected outputs

clipping would drop the extra outputs because it always
used the number of standard vertex shader outputs, without
geometry shader or extra outputs. The commit makes sure
that clipping with geometry shaders which have more outputs
than the current vertex shader and with extra outputs correctly
propagates the entire vertex.

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