diff options
author | Zack Rusin <[email protected]> | 2013-05-13 22:41:25 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-05-14 03:10:33 -0400 |
commit | d5250da8189d0fb9741049cdbfc50e84aab44ecb (patch) | |
tree | d07be1ea42436d522d168f72bb42756e90103a7d /src/gallium | |
parent | 29853ab7b8656cee9b92a53bec43f6e9f1e49691 (diff) |
draw: use the total number of vertices for statistics
the number of vertices to fetch doesn't necessarily equal the
total number of input vertices, e.g. we might want to fetch
a single vertex but then draw it twice. Lets use the correct
number of input vertices in the statistics.
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c index 400511cee4a..ea2a5d68e39 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c @@ -244,7 +244,7 @@ static void fetch_pipeline_generic( struct draw_pt_middle_end *middle, return; } if (draw->collect_statistics) { - draw->statistics.ia_vertices += fetch_info->count; + draw->statistics.ia_vertices += prim_info->count; draw->statistics.ia_primitives += u_decomposed_prims_for_vertices(prim_info->prim, fetch_info->count); draw->statistics.vs_invocations += fetch_info->count; 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 bc99c169deb..fa8baf38889 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 @@ -339,7 +339,7 @@ llvm_pipeline_generic( struct draw_pt_middle_end *middle, } if (draw->collect_statistics) { - draw->statistics.ia_vertices += fetch_info->count; + draw->statistics.ia_vertices += prim_info->count; draw->statistics.ia_primitives += u_decomposed_prims_for_vertices(prim_info->prim, prim_info->count); draw->statistics.vs_invocations += fetch_info->count; |