From: Kenneth Graunke Date: Wed, 13 Aug 2014 23:02:17 +0000 (-0700) Subject: mesa: Expose vbo_exec_DrawArraysInstanced as _mesa_DrawArraysInstanced. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed6a4d6a7d197a54b3c325a7113db28372d479c2;p=mesa.git mesa: Expose vbo_exec_DrawArraysInstanced as _mesa_DrawArraysInstanced. So we can use it in meta.c. Signed-off-by: Kenneth Graunke Reviewed-by: Kristian Høgsberg --- diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index f94ebac9920..d5d8b363d43 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -271,6 +271,10 @@ _mesa_UnlockArraysEXT( void ); extern void GLAPIENTRY _mesa_DrawArrays(GLenum mode, GLint first, GLsizei count); +extern void GLAPIENTRY +_mesa_DrawArraysInstanced(GLenum mode, GLint first, GLsizei count, + GLsizei primcount); + extern void GLAPIENTRY _mesa_DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 9c161ccca72..3f7058da15a 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -1890,6 +1890,12 @@ _mesa_DrawArrays(GLenum mode, GLint first, GLsizei count) vbo_exec_DrawArrays(mode, first, count); } +void GLAPIENTRY +_mesa_DrawArraysInstanced(GLenum mode, GLint first, GLsizei count, + GLsizei primcount) +{ + vbo_exec_DrawArraysInstanced(mode, first, count, primcount); +} void GLAPIENTRY _mesa_DrawElements(GLenum mode, GLsizei count, GLenum type,