summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2015-12-08 19:02:14 +0200
committerTapani Pälli <[email protected]>2015-12-10 07:51:40 +0200
commit2377db2c4e87ad7d418f1f3218b501c1a0cd8373 (patch)
treee1da648559bb47e6aa560d568c04ff47dea05940
parent21abaad8fe7b5bf78737b9cf009548f41e4777b9 (diff)
mesa: invalidate pipeline status after glUseProgramStages
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 <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r--src/mesa/main/pipelineobj.c2
1 files changed, 2 insertions, 0 deletions
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;
}
/**