Revert "st/mesa: Always recalculate invalid index bounds."
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 13 Mar 2010 01:58:59 +0000 (17:58 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 13 Mar 2010 01:58:59 +0000 (17:58 -0800)
This reverts commit 50876ddaaff72a324ac45e255985e0f84e108594.

Per ML discussion.

src/mesa/state_tracker/st_draw.c

index c473815c419c6e12b80e89558d4eba2d2529fa15..7f45e3f5484c2832808e4c7491df4ecd99ccf4f6 100644 (file)
@@ -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);