diff options
author | Brian Paul <[email protected]> | 2014-04-11 11:46:55 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-04-11 13:54:17 -0600 |
commit | e5f306e3ffe99ab497fe48dfb3fda333303147e7 (patch) | |
tree | 661aa9f51c1371c172e8c11fb4d7ded00804a9dd /src/gallium | |
parent | ae2a03b5736037128fb071595717f300d5b3afd5 (diff) |
draw: remove unused 'start' variable in draw_stats_clipper_primitives()
It was computed, but never actually used.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_context.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index da1e958900c..0a678790f13 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -1043,11 +1043,8 @@ draw_stats_clipper_primitives(struct draw_context *draw, const struct draw_prim_info *prim_info) { if (draw->collect_statistics) { - unsigned start, i; - for (start = i = 0; - i < prim_info->primitive_count; - start += prim_info->primitive_lengths[i], i++) - { + unsigned i; + for (i = 0; i < prim_info->primitive_count; i++) { draw->statistics.c_invocations += u_decomposed_prims_for_vertices(prim_info->prim, prim_info->primitive_lengths[i]); |