summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2013-04-22 19:07:14 -0400
committerZack Rusin <[email protected]>2013-04-22 20:36:07 -0400
commit1fb8c3ce5568e08a176929a4b27d2889599ede7c (patch)
tree7d3c6b67cb0d504de2e3c70954d5dbac493dc9ff /src/gallium
parent76587d2e5e3d580e71e38c8ee8904e9e83fd513e (diff)
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 <[email protected]> Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
index 7ce845ed7da..afa5d4748db 100644
--- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c
@@ -337,10 +337,11 @@ llvm_pipeline_generic( struct draw_pt_middle_end *middle,
assert(0);
return;
}
+
if (draw->collect_statistics) {
draw->statistics.ia_vertices += fetch_info->count;
draw->statistics.ia_primitives +=
- u_decomposed_prims_for_vertices(prim_info->prim, fetch_info->count);
+ u_decomposed_prims_for_vertices(prim_info->prim, prim_info->count);
draw->statistics.vs_invocations += fetch_info->count;
}