From: Samuel Pitoiset Date: Tue, 18 Jul 2017 10:23:27 +0000 (+0200) Subject: mesa: add KHR_no_error support to glProgramParameteri() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2af699a2c7bfcc93bbd15a32aaea24dccd7aee0f;p=mesa.git mesa: add KHR_no_error support to glProgramParameteri() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/ARB_get_program_binary.xml b/src/mapi/glapi/gen/ARB_get_program_binary.xml index 25e0a37c84b..c521c04de42 100644 --- a/src/mapi/glapi/gen/ARB_get_program_binary.xml +++ b/src/mapi/glapi/gen/ARB_get_program_binary.xml @@ -26,7 +26,7 @@ - + diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 63aec08d0c6..c6e90edc944 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -2214,6 +2214,16 @@ invalid_value: } +void GLAPIENTRY +_mesa_ProgramParameteri_no_error(GLuint program, GLenum pname, GLint value) +{ + GET_CURRENT_CONTEXT(ctx); + + struct gl_shader_program *shProg = _mesa_lookup_shader_program(ctx, program); + program_parameteri(ctx, shProg, pname, value, true); +} + + void GLAPIENTRY _mesa_ProgramParameteri(GLuint program, GLenum pname, GLint value) { diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h index fad584506cb..ae53021d914 100644 --- a/src/mesa/main/shaderapi.h +++ b/src/mesa/main/shaderapi.h @@ -234,6 +234,9 @@ extern void GLAPIENTRY _mesa_ProgramBinary(GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length); +void GLAPIENTRY +_mesa_ProgramParameteri_no_error(GLuint program, GLenum pname, GLint value); + extern void GLAPIENTRY _mesa_ProgramParameteri(GLuint program, GLenum pname, GLint value);