From 789cc87063c0cbb20941053b54fcbe4862912a14 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 17 Jul 2017 22:47:38 +0200 Subject: [PATCH] mesa: add KHR_no_error support to glPatchParameteri() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/ARB_tessellation_shader.xml | 2 +- src/mesa/main/shaderapi.c | 8 ++++++++ src/mesa/main/shaderapi.h | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/ARB_tessellation_shader.xml b/src/mapi/glapi/gen/ARB_tessellation_shader.xml index e26f227..d0b0375 100644 --- a/src/mapi/glapi/gen/ARB_tessellation_shader.xml +++ b/src/mapi/glapi/gen/ARB_tessellation_shader.xml @@ -50,7 +50,7 @@ - + diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 84189f0..924423e 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -2348,6 +2348,14 @@ _mesa_CreateShaderProgramv(GLenum type, GLsizei count, /** * For GL_ARB_tessellation_shader */ +void GLAPIENTRY +_mesa_PatchParameteri_no_error(GLenum pname, GLint value) +{ + GET_CURRENT_CONTEXT(ctx); + ctx->TessCtrlProgram.patch_vertices = value; +} + + extern void GLAPIENTRY _mesa_PatchParameteri(GLenum pname, GLint value) { diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h index b7ba7ab..fad5845 100644 --- a/src/mesa/main/shaderapi.h +++ b/src/mesa/main/shaderapi.h @@ -305,6 +305,9 @@ _mesa_get_program_resourceiv(struct gl_shader_program *shProg, GLint *params); /* GL_ARB_tessellation_shader */ +void GLAPIENTRY +_mesa_PatchParameteri_no_error(GLenum pname, GLint value); + extern void GLAPIENTRY _mesa_PatchParameteri(GLenum pname, GLint value); -- 2.7.4