From: Samuel Pitoiset Date: Mon, 26 Jun 2017 12:13:01 +0000 (+0200) Subject: mesa: add KHR_no_error support for gl*ProgramPipelines() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=836b48a8361a5e8409d0313c527ceb6800ebe870;p=mesa.git mesa: add KHR_no_error support for gl*ProgramPipelines() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/ARB_direct_state_access.xml b/src/mapi/glapi/gen/ARB_direct_state_access.xml index e8526d1c528..444d59d7098 100644 --- a/src/mapi/glapi/gen/ARB_direct_state_access.xml +++ b/src/mapi/glapi/gen/ARB_direct_state_access.xml @@ -682,7 +682,7 @@ - + diff --git a/src/mapi/glapi/gen/ARB_separate_shader_objects.xml b/src/mapi/glapi/gen/ARB_separate_shader_objects.xml index 54c1be3fe73..2273b4875d7 100644 --- a/src/mapi/glapi/gen/ARB_separate_shader_objects.xml +++ b/src/mapi/glapi/gen/ARB_separate_shader_objects.xml @@ -37,7 +37,7 @@ - + diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c index 89ab9cfb13c..f40111108c4 100644 --- a/src/mesa/main/pipelineobj.c +++ b/src/mesa/main/pipelineobj.c @@ -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) { diff --git a/src/mesa/main/pipelineobj.h b/src/mesa/main/pipelineobj.h index 1bf6b713169..8cc5954eec7 100644 --- a/src/mesa/main/pipelineobj.h +++ b/src/mesa/main/pipelineobj.h @@ -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);