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 e8526d1c52866ed490835c2372b88a5bd7689994..444d59d70982e62309c19b5e65d02ce922b4f716 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 54c1be3fe73b285d4b817950bf6507ba80efdd6a..2273b4875d76a07678398fd7d475cd3ebf7ee8e3 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 89ab9cfb13ced27e31a47b6eca40cf3d99970d94..f40111108c480ae8a534ade4b4b0d38ad2460ae7 100644 (file)
@@ -646,6 +646,13 @@ create_program_pipelines_err(struct gl_context *ctx, GLsizei n,
    create_program_pipelines(ctx, n, pipelines, dsa);
 }
 
+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)
 {
@@ -657,6 +664,13 @@ _mesa_GenProgramPipelines(GLsizei n, GLuint *pipelines)
    create_program_pipelines_err(ctx, n, pipelines, false);
 }
 
+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)
 {
index 1bf6b713169ebf9d650288649872ad51351145e2..8cc5954eec7442a255eb8c38ac9883502191b046 100644 (file)
@@ -90,9 +90,15 @@ _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);