summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_validate.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2012-06-27 06:29:42 +0200
committerMarek Olšák <maraeo@gmail.com>2012-06-28 22:46:51 +0200
commitfcebb157f0eb6c2f374dee609a01b0b14856e7fc (patch)
tree71c4e05e724c27cc7e8365d0dfa467eded66de3f /src/mesa/main/api_validate.h
parent62b971673950148eb949ba23d7fdc47debea16f0 (diff)
downloadexternal_mesa3d-fcebb157f0eb6c2f374dee609a01b0b14856e7fc.zip
external_mesa3d-fcebb157f0eb6c2f374dee609a01b0b14856e7fc.tar.gz
external_mesa3d-fcebb157f0eb6c2f374dee609a01b0b14856e7fc.tar.bz2
vbo: optimize validation for glMultiDrawElements
Some parameters need to be checked only once. check_valid_to_render needs to be called only once. The validate function is based on the one for DrawElements. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/main/api_validate.h')
-rw-r--r--src/mesa/main/api_validate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/api_validate.h b/src/mesa/main/api_validate.h
index d92fd43..59f3297 100644
--- a/src/mesa/main/api_validate.h
+++ b/src/mesa/main/api_validate.h
@@ -56,6 +56,12 @@ _mesa_validate_DrawElements(struct gl_context *ctx,
const GLvoid *indices, GLint basevertex);
extern GLboolean
+_mesa_validate_MultiDrawElements(struct gl_context *ctx,
+ GLenum mode, const GLsizei *count,
+ GLenum type, const GLvoid * const *indices,
+ GLuint primcount, const GLint *basevertex);
+
+extern GLboolean
_mesa_validate_DrawRangeElements(struct gl_context *ctx, GLenum mode,
GLuint start, GLuint end,
GLsizei count, GLenum type,