summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2010-03-12 17:58:59 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2010-03-12 17:58:59 -0800
commitecfcb1466a36b6f4389a97abcc76908e68feb4fe (patch)
treedfdd121edff599ec11a36f484f20d7cabfeafd02
parent3c80e525415982fec4b1a32ca16d69662d83b3a4 (diff)
Revert "st/mesa: Always recalculate invalid index bounds."
This reverts commit 50876ddaaff72a324ac45e255985e0f84e108594. Per ML discussion.
-rw-r--r--src/mesa/state_tracker/st_draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index c473815c41..7f45e3f548 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -542,9 +542,9 @@ st_draw_vbo(GLcontext *ctx,
assert(ctx->NewState == 0x0);
/* Gallium probably doesn't want this in some cases. */
- if (index_bounds_valid != GL_TRUE) {
- vbo_get_minmax_index(ctx, prims, ib, &min_index, &max_index);
- }
+ if (!index_bounds_valid)
+ if (!vbo_all_varyings_in_vbos(arrays))
+ vbo_get_minmax_index(ctx, prims, ib, &min_index, &max_index);
/* sanity check for pointer arithmetic below */
assert(sizeof(arrays[0]->Ptr[0]) == 1);