diff options
author | Marek Olšák <[email protected]> | 2012-06-27 06:29:42 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-06-28 22:46:51 +0200 |
commit | fcebb157f0eb6c2f374dee609a01b0b14856e7fc (patch) | |
tree | 71c4e05e724c27cc7e8365d0dfa467eded66de3f /src/mesa/main/api_validate.h | |
parent | 62b971673950148eb949ba23d7fdc47debea16f0 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/main/api_validate.h')
-rw-r--r-- | src/mesa/main/api_validate.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/api_validate.h b/src/mesa/main/api_validate.h index d92fd433f3e..59f3297681e 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, |