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

2015-12-10 Thread Timothy Arceri
V2: use updated piglit_get_gl_enum_from_name() rather than memory barrier
specific function.

Cc: Jordan Justen 
---
 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

___
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit


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

2015-12-09 Thread Timothy Arceri
---
 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

___
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit