[Mesa-dev] [PATCH 1/2] mesa: Expose vbo_exec_DrawArraysInstanced as _mesa_DrawArraysInstanced.
Kristian Høgsberg
hoegsberg at gmail.com
Thu Aug 14 10:18:32 PDT 2014
On Wed, Aug 13, 2014 at 09:42:49PM -0700, Kenneth Graunke wrote:
> So we can use it in meta.c.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>
> ---
> src/mesa/main/varray.h | 4 ++++
> src/mesa/vbo/vbo_exec_array.c | 6 ++++++
> 2 files changed, 10 insertions(+)
>
> diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h
> index f94ebac..d5d8b36 100644
> --- a/src/mesa/main/varray.h
> +++ b/src/mesa/main/varray.h
> @@ -272,6 +272,10 @@ 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 9c161cc..3f7058d 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,
> --
> 2.0.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list