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

Timothy Arceri timothy.arceri at collabora.com
Thu Dec 10 14:43:15 PST 2015


V2: use updated piglit_get_gl_enum_from_name() rather than memory barrier
specific function.

Cc: Jordan Justen <jordan.l.justen at intel.com>
---
 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..9983ae6 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_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