From 944b97990bbdf61b2be2e92c3641d3240e12fe58 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 26 Apr 2012 11:14:51 +0200 Subject: st/mesa: remove more unnecessary code in draw_vbo The variables set here are not used anywhere. --- src/mesa/state_tracker/st_draw.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/mesa/state_tracker') diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 3789083b36b..6128320d7c2 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -904,7 +904,7 @@ st_draw_vbo(struct gl_context *ctx, struct pipe_context *pipe = st->pipe; struct pipe_index_buffer ibuffer = {0}; struct pipe_draw_info info; - unsigned i, num_instances = 1; + unsigned i; GLboolean new_array = st->dirty.st && (st->dirty.mesa & (_NEW_ARRAY | _NEW_PROGRAM | _NEW_BUFFER_OBJECT)) != 0; @@ -918,21 +918,6 @@ st_draw_vbo(struct gl_context *ctx, if (!all_varyings_in_vbos(arrays)) vbo_get_minmax_indices(ctx, prims, ib, &min_index, &max_index, nr_prims); - - for (i = 0; i < nr_prims; i++) { - num_instances = MAX2(num_instances, prims[i].num_instances); - } - } - else { - /* Get min/max index for non-indexed drawing. */ - min_index = ~0; - max_index = 0; - - for (i = 0; i < nr_prims; i++) { - min_index = MIN2(min_index, prims[i].start); - max_index = MAX2(max_index, prims[i].start + prims[i].count - 1); - num_instances = MAX2(num_instances, prims[i].num_instances); - } } /* Validate state. */ -- cgit v1.2.3