mesa: add KHR_no_error support for gl*ProgramPipelines()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 26 Jun 2017 12:13:01 +0000 (14:13 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 28 Jun 2017 08:25:13 +0000 (10:25 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/ARB_direct_state_access.xml
src/mapi/glapi/gen/ARB_separate_shader_objects.xml
src/mesa/main/pipelineobj.c
src/mesa/main/pipelineobj.h

index e8526d1..444d59d 100644 (file)
 
    <!-- Program Pipeline object functions -->
 
-   <function name="CreateProgramPipelines">
+   <function name="CreateProgramPipelines" no_error="true">
       <param name="n" type="GLsizei" />
       <param name="pipelines" type="GLuint *" />
    </function>
index 54c1be3..2273b48 100644 (file)
@@ -37,7 +37,7 @@
          <param name="n" type="GLsizei" />
          <param name="pipelines" type="const GLuint *" />
       </function>
-      <function name="GenProgramPipelines" es2="3.1">
+      <function name="GenProgramPipelines" es2="3.1" no_error="true">
          <param name="n" type="GLsizei" />
          <param name="pipelines" type="GLuint *" />
       </function>
index 89ab9cf..f401111 100644 (file)
@@ -647,6 +647,13 @@ create_program_pipelines_err(struct gl_context *ctx, GLsizei n,
 }
 
 void GLAPIENTRY
+_mesa_GenProgramPipelines_no_error(GLsizei n, GLuint *pipelines)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   create_program_pipelines(ctx, n, pipelines, false);
+}
+
+void GLAPIENTRY
 _mesa_GenProgramPipelines(GLsizei n, GLuint *pipelines)
 {
    GET_CURRENT_CONTEXT(ctx);
@@ -658,6 +665,13 @@ _mesa_GenProgramPipelines(GLsizei n, GLuint *pipelines)
 }
 
 void GLAPIENTRY
+_mesa_CreateProgramPipelines_no_error(GLsizei n, GLuint *pipelines)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   create_program_pipelines(ctx, n, pipelines, true);
+}
+
+void GLAPIENTRY
 _mesa_CreateProgramPipelines(GLsizei n, GLuint *pipelines)
 {
    GET_CURRENT_CONTEXT(ctx);
index 1bf6b71..8cc5954 100644 (file)
@@ -90,10 +90,16 @@ _mesa_BindProgramPipeline(GLuint pipeline);
 extern void GLAPIENTRY
 _mesa_DeleteProgramPipelines(GLsizei n, const GLuint *pipelines);
 
+void GLAPIENTRY
+_mesa_GenProgramPipelines_no_error(GLsizei n, GLuint *pipelines);
+
 extern void GLAPIENTRY
 _mesa_GenProgramPipelines(GLsizei n, GLuint *pipelines);
 
 void GLAPIENTRY
+_mesa_CreateProgramPipelines_no_error(GLsizei n, GLuint *pipelines);
+
+void GLAPIENTRY
 _mesa_CreateProgramPipelines(GLsizei n, GLuint *pipelines);
 
 extern GLboolean GLAPIENTRY