[Piglit] [PATCH] shader_runner: fix gles3 which has no pipeline support

Ilia Mirkin imirkin at alum.mit.edu
Sat Jan 2 16:45:13 PST 2016


This matches the conditions for creating the pipeline in the first
place. When support for pipelines is extended for gles3.1, this can be
adjusted then.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---

Pretty trivial. Going to push this very soon unless I hear some major complaint.

 tests/shaders/shader_runner.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index c00fd61..431aa2a 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -3203,7 +3203,10 @@ piglit_display(void)
 			if (!sso_in_use)
 				glDeleteProgramsARB(1, &prog);
 		}
-		glDeleteProgramPipelines(1, &pipeline);
+#ifdef PIGLIT_USE_OPENGL
+		if (piglit_is_extension_supported("GL_ARB_separate_shader_objects"))
+			glDeleteProgramPipelines(1, &pipeline);
+#endif
 	}
 
 	return pass ? PIGLIT_PASS : PIGLIT_FAIL;
-- 
2.4.10



More information about the Piglit mailing list