[Mesa-dev] [PATCH 2/2] draw: fix incorrect clipper invocation statistics

Zack Rusin zackr at vmware.com
Thu Jun 27 12:26:04 PDT 2013


clipper invocations are computed earlier (of course
before the emittion) so this code was adding bogus
numbers to already computed clipper invocations.

Signed-off-by: Zack Rusin <zackr at vmware.com>
---
 src/gallium/auxiliary/draw/draw_pt_emit.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_pt_emit.c b/src/gallium/auxiliary/draw/draw_pt_emit.c
index ea02554..4c96d74 100644
--- a/src/gallium/auxiliary/draw/draw_pt_emit.c
+++ b/src/gallium/auxiliary/draw/draw_pt_emit.c
@@ -253,12 +253,6 @@ draw_pt_emit_linear(struct pt_emit *emit,
         i < prim_info->primitive_count;
         start += prim_info->primitive_lengths[i], i++)
    {
-      if (draw->collect_statistics) {
-         draw->statistics.c_invocations +=
-            u_decomposed_prims_for_vertices(prim_info->prim,
-                                            prim_info->primitive_lengths[i]);
-      }
-
       render->draw_arrays(render,
                           start,
                           prim_info->primitive_lengths[i]);
-- 
1.7.10.4


More information about the mesa-dev mailing list