From 2377db2c4e87ad7d418f1f3218b501c1a0cd8373 Mon Sep 17 00:00:00 2001 From: Tapani Pälli Date: Tue, 8 Dec 2015 19:02:14 +0200 Subject: mesa: invalidate pipeline status after glUseProgramStages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will cause validation to run during next draw, this is done because possible changes in used stages and programs can cause invalid pipeline state. This fixes a subtest in following CTS test: ES31-CTS.sepshaderobjs.StateInteraction Signed-off-by: Tapani Pälli Reviewed-by: Timothy Arceri --- src/mesa/main/pipelineobj.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/main/pipelineobj.c') diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c index 5eda4e5e73d..f2a872dc83a 100644 --- a/src/mesa/main/pipelineobj.c +++ b/src/mesa/main/pipelineobj.c @@ -341,6 +341,8 @@ _mesa_UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program) if ((stages & GL_COMPUTE_SHADER_BIT) != 0) _mesa_use_shader_program(ctx, GL_COMPUTE_SHADER, shProg, pipe); + + pipe->Validated = false; } /** -- cgit v1.2.3