diff options
author | Marek Olšák <[email protected]> | 2012-04-26 11:14:51 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-04-30 01:16:03 +0200 |
commit | 944b97990bbdf61b2be2e92c3641d3240e12fe58 (patch) | |
tree | 04ed422506a6ef06f1fb15ae6dabd9ab7c35f6b6 /src/mesa | |
parent | bf469f4edc60bd1c5fd770cb231b8d5ab801427f (diff) |
st/mesa: remove more unnecessary code in draw_vbo
The variables set here are not used anywhere.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 17 |
1 files changed, 1 insertions, 16 deletions
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. */ |