[Piglit] [PATCH 2/3] shader_runner: add ability to set glMemoryBarrier()

Timothy Arceri timothy.arceri at collabora.com
Wed Dec 9 15:36:51 PST 2015


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

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 966abe9..c00fd61 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -2918,6 +2918,8 @@ piglit_display(void)
 			glGetIntegerv(GL_TEXTURE_BINDING_2D, &tex_num);
 			glBindImageTexture(tex, tex_num, 0, GL_FALSE, 0,
 					   GL_READ_WRITE, img_fmt);
+		} else if (sscanf(line, "memory barrier %s", s) == 1) {
+			glMemoryBarrier(piglit_get_gl_memory_barrier_enum_from_name(s));
 		} else if (sscanf(line, "ortho %f %f %f %f",
 				  c + 0, c + 1, c + 2, c + 3) == 4) {
 			piglit_gen_ortho_projection(c[0], c[1], c[2], c[3],
-- 
2.4.3



More information about the Piglit mailing list