[Mesa-dev] [PATCH 10/10] mesa: add KHR_no_error support for glStencilOp()
Timothy Arceri
tarceri at itsqueeze.com
Tue Jun 20 22:32:52 UTC 2017
Series:
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
On 21/06/17 07:18, Samuel Pitoiset wrote:
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/mapi/glapi/gen/gl_API.xml | 2 +-
> src/mesa/main/stencil.c | 8 ++++++++
> src/mesa/main/stencil.h | 2 ++
> 3 files changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
> index dd64fe27b6a..8784f0537f5 100644
> --- a/src/mapi/glapi/gen/gl_API.xml
> +++ b/src/mapi/glapi/gen/gl_API.xml
> @@ -2563,7 +2563,7 @@
> <glx rop="162"/>
> </function>
>
> - <function name="StencilOp" es1="1.0" es2="2.0">
> + <function name="StencilOp" es1="1.0" es2="2.0" no_error="true">
> <param name="fail" type="GLenum"/>
> <param name="zfail" type="GLenum"/>
> <param name="zpass" type="GLenum"/>
> diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c
> index 7913bb176e7..4bd7b8803ef 100644
> --- a/src/mesa/main/stencil.c
> +++ b/src/mesa/main/stencil.c
> @@ -367,6 +367,14 @@ stencil_op(struct gl_context *ctx, GLenum fail, GLenum zfail, GLenum zpass)
>
>
> void GLAPIENTRY
> +_mesa_StencilOp_no_error(GLenum fail, GLenum zfail, GLenum zpass)
> +{
> + GET_CURRENT_CONTEXT(ctx);
> + stencil_op(ctx, fail, zfail, zpass);
> +}
> +
> +
> +void GLAPIENTRY
> _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
> {
> GET_CURRENT_CONTEXT(ctx);
> diff --git a/src/mesa/main/stencil.h b/src/mesa/main/stencil.h
> index 5425065a7ca..ccb86469189 100644
> --- a/src/mesa/main/stencil.h
> +++ b/src/mesa/main/stencil.h
> @@ -51,6 +51,8 @@ _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask);
> extern void GLAPIENTRY
> _mesa_StencilMask( GLuint mask );
>
> +void GLAPIENTRY
> +_mesa_StencilOp_no_error(GLenum fail, GLenum zfail, GLenum zpass);
>
> extern void GLAPIENTRY
> _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass);
>
More information about the mesa-dev
mailing list