summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/pipelineobj.c
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2015-12-08 19:02:14 +0200
committerTapani Pälli <tapani.palli@intel.com>2015-12-10 07:51:40 +0200
commit2377db2c4e87ad7d418f1f3218b501c1a0cd8373 (patch)
treee1da648559bb47e6aa560d568c04ff47dea05940 /src/mesa/main/pipelineobj.c
parent21abaad8fe7b5bf78737b9cf009548f41e4777b9 (diff)
downloadexternal_mesa3d-2377db2c4e87ad7d418f1f3218b501c1a0cd8373.zip
external_mesa3d-2377db2c4e87ad7d418f1f3218b501c1a0cd8373.tar.gz
external_mesa3d-2377db2c4e87ad7d418f1f3218b501c1a0cd8373.tar.bz2
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 <tapani.palli@intel.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Diffstat (limited to 'src/mesa/main/pipelineobj.c')
-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 5eda4e5..f2a872d 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;
}
/**