From: Zack Rusin Date: Thu, 27 Jun 2013 19:24:52 +0000 (-0400) Subject: draw: fix incorrect clipper invocation statistics X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df4ab7974a825bf686f9dfa3474f3648e9a3ca66;p=mesa.git draw: fix incorrect clipper invocation statistics 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 --- diff --git a/src/gallium/auxiliary/draw/draw_pt_emit.c b/src/gallium/auxiliary/draw/draw_pt_emit.c index ea02554f83c..4c96d7414ee 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]);