draw/gs: fix extracting of the clip 01/6601/1
authorZack Rusin <zackr@vmware.com>
Tue, 14 May 2013 07:47:36 +0000 (03:47 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 14 May 2013 08:04:08 +0000 (04:04 -0400)
commit013424678e2604a45c420ec403e6f12b82446b24
tree6aab01d2abe0bdc49ebeb6e0fcc3c792147aba2f
parenta6961f391ae9589a814b46c104d9163021c9f397
draw/gs: fix extracting of the clip

The indices are not consecutive when using the geometry shader,
which means we were extracting non existing values. Create
an array of linear indices and always use it instead of the passed
indices. Found by Jose.

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