X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fapi_validate.h;h=16b9c2b26473965d4f74e349a3d8db1f1ba1283d;hb=039150169e99be28d8b172a95a07032a3c862585;hp=f24365055bb631740448727dd77e2259b2b88416;hpb=22144ab7552f0799bcfca506bf4ffa7f70a06649;p=mesa.git diff --git a/src/mesa/main/api_validate.h b/src/mesa/main/api_validate.h index f24365055bb..16b9c2b2647 100644 --- a/src/mesa/main/api_validate.h +++ b/src/mesa/main/api_validate.h @@ -1,4 +1,3 @@ -/* $Id: api_validate.h,v 1.2 2001/03/12 00:48:37 gareth Exp $ */ /* * Mesa 3-D graphics library @@ -29,22 +28,41 @@ #define API_VALIDATE_H -#include "mtypes.h" +#include "glheader.h" + +struct gl_buffer_object; +struct gl_context; + + +extern GLuint +_mesa_max_buffer_index(struct gl_context *ctx, GLuint count, GLenum type, + const void *indices, + struct gl_buffer_object *elementBuf); extern GLboolean -_mesa_validate_DrawArrays(GLcontext *ctx, +_mesa_validate_DrawArrays(struct gl_context *ctx, GLenum mode, GLint start, GLsizei count); extern GLboolean -_mesa_validate_DrawElements(GLcontext *ctx, +_mesa_validate_DrawElements(struct gl_context *ctx, GLenum mode, GLsizei count, GLenum type, - const GLvoid *indices); + const GLvoid *indices, GLint basevertex); extern GLboolean -_mesa_validate_DrawRangeElements(GLcontext *ctx, GLenum mode, +_mesa_validate_DrawRangeElements(struct gl_context *ctx, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, - const GLvoid *indices); + const GLvoid *indices, GLint basevertex); + + +extern GLboolean +_mesa_validate_DrawArraysInstanced(struct gl_context *ctx, GLenum mode, GLint first, + GLsizei count, GLsizei primcount); + +extern GLboolean +_mesa_validate_DrawElementsInstanced(struct gl_context *ctx, + GLenum mode, GLsizei count, GLenum type, + const GLvoid *indices, GLsizei primcount); #endif