draw/gs: Fix memory corruption with multiple primitives
authorZack Rusin <zackr@vmware.com>
Thu, 28 Mar 2013 03:11:16 +0000 (20:11 -0700)
committerZack Rusin <zackr@vmware.com>
Wed, 3 Apr 2013 17:16:25 +0000 (10:16 -0700)
commite6fc63535176f01606048b441f2c411c4906c424
tree4f0b9189f52b4d0fd5b3352c5391a5d9dce155c6
parentf313b0c8502868dab2a87237af295a34ec0dea26
draw/gs: Fix memory corruption with multiple primitives

We were flushing with incorrect number of primitives. TGSI exec
can only work with a single primitive at a time. Plus the fetching
with multiple primitives on llvm paths wasn't copying the last
element.

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