draw: fix incorrect clipper invocation statistics
authorZack Rusin <zackr@vmware.com>
Thu, 27 Jun 2013 19:24:52 +0000 (15:24 -0400)
committerZack Rusin <zackr@vmware.com>
Fri, 28 Jun 2013 08:24:29 +0000 (04:24 -0400)
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@vmware.com>
src/gallium/auxiliary/draw/draw_pt_emit.c

index ea02554f83c76318c13826a77bdbe6ba18412cb9..4c96d7414ee725831f505f4449ae264a6d8ee6ee 100644 (file)
@@ -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]);