mesa: add KHR_no_error support to glProgramParameteri()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 18 Jul 2017 10:23:27 +0000 (12:23 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 11:53:39 +0000 (13:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/ARB_get_program_binary.xml
src/mesa/main/shaderapi.c
src/mesa/main/shaderapi.h

index 25e0a37c84b5e0b38cabc18c068c837fbdf4124b..c521c04de428181c06ffd1e08596363b2ce3975f 100644 (file)
@@ -26,7 +26,7 @@
         <param name="length" type="GLsizei"/>
     </function>
 
-    <function name="ProgramParameteri" es2="3.0">
+    <function name="ProgramParameteri" es2="3.0" no_error="true">
         <param name="program" type="GLuint"/>
         <param name="pname" type="GLenum"/>
         <param name="value" type="GLint"/>
index 63aec08d0c6173536d280bc6c023774b1b130af3..c6e90edc944a602df224d0ac5af5bef700410a3f 100644 (file)
@@ -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)
 {
index fad584506cbc20cd5949f9e515af86c02356ab1c..ae53021d9148abd13759778e23af2cd7dd02b210 100644 (file)
@@ -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);