[Mesa-dev] [PATCH] mesa: fix KHR_no_error SSO support
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri May 12 07:00:58 UTC 2017
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 05/12/2017 07:29 AM, Timothy Arceri wrote:
> Fixes: 00c5119a5e821 ("mesa: add KHR_no_error support for glUseProgramStages()")
> ---
>
> Found with the new no_error piglit profile [1]. Up until now my testing has been
> adhoc, selecting a few tests that take the new KHR_no_error path. Going forward
> testing should be more thorough once tests are enable in the new profile.
>
> [1] https://patchwork.freedesktop.org/series/24332/
>
> src/mesa/main/pipelineobj.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c
> index 67a8fc8..0d1d57c 100644
> --- a/src/mesa/main/pipelineobj.c
> +++ b/src/mesa/main/pipelineobj.c
> @@ -258,21 +258,21 @@ void GLAPIENTRY
> _mesa_UseProgramStages_no_error(GLuint pipeline, GLbitfield stages,
> GLuint prog)
> {
> GET_CURRENT_CONTEXT(ctx);
>
> struct gl_pipeline_object *pipe =
> _mesa_lookup_pipeline_object(ctx, pipeline);
> struct gl_shader_program *shProg = NULL;
>
> if (prog)
> - _mesa_lookup_shader_program(ctx, prog);
> + shProg = _mesa_lookup_shader_program(ctx, prog);
>
> /* Object is created by any Pipeline call but glGenProgramPipelines,
> * glIsProgramPipeline and GetProgramPipelineInfoLog
> */
> pipe->EverBound = GL_TRUE;
>
> use_program_stages(ctx, shProg, stages, pipe);
> }
>
> /**
>
More information about the mesa-dev
mailing list