OSDN Git Service

draw: use the total number of vertices for statistics
authorZack Rusin <zackr@vmware.com>
Tue, 14 May 2013 02:41:25 +0000 (22:41 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 14 May 2013 07:10:33 +0000 (03:10 -0400)
commitd5250da8189d0fb9741049cdbfc50e84aab44ecb
treed07be1ea42436d522d168f72bb42756e90103a7d
parent29853ab7b8656cee9b92a53bec43f6e9f1e49691
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 <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c