Revert "st/mesa: Always recalculate invalid index bounds."
[mesa.git] / src / mesa / vbo / vbo.h
index 5362226c2f935df1da316cb6f0834baf35c1f889..b24ecfd7cde4a238607ae9fd5c43ca0e39497c8c 100644 (file)
@@ -44,6 +44,7 @@ struct _mesa_prim {
 
    GLuint start;
    GLuint count;
+   GLint basevertex;
 };
 
 /* Would like to call this a "vbo_index_buffer", but this would be
@@ -69,6 +70,7 @@ typedef void (*vbo_draw_func)( GLcontext *ctx,
                               const struct _mesa_prim *prims,
                               GLuint nr_prims,
                               const struct _mesa_index_buffer *ib,
+                              GLboolean index_bounds_valid,
                               GLuint min_index,
                               GLuint max_index );
 
@@ -112,7 +114,10 @@ void vbo_rebase_prims( GLcontext *ctx,
                       GLuint min_index,
                       GLuint max_index,
                       vbo_draw_func draw );
-
+void
+vbo_get_minmax_index(GLcontext *ctx, const struct _mesa_prim *prim,
+                    const struct _mesa_index_buffer *ib,
+                    GLuint *min_index, GLuint *max_index);
 
 void vbo_use_buffer_objects(GLcontext *ctx);