draw: use the prim count for ia primitives 39/6139/1
authorZack Rusin <zackr@vmware.com>
Mon, 22 Apr 2013 23:07:14 +0000 (19:07 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 23 Apr 2013 00:36:07 +0000 (20:36 -0400)
commit1fb8c3ce5568e08a176929a4b27d2889599ede7c
tree7d3c6b67cb0d504de2e3c70954d5dbac493dc9ff
parent76587d2e5e3d580e71e38c8ee8904e9e83fd513e
draw: use the prim count for ia primitives

Number of vertices to fetch doesn't always equal the number of input
vertices. To correctly compute the number if IA primitives we need
to use the total number of input vertices, not only those that
need to be fetched.

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