[Piglit] [PATCH 7/8] shader_runner: Add 'patch vertices' command to set GL_PATCH_VERTICES
Jordan Justen
jordan.l.justen at intel.com
Mon Jun 2 15:44:08 PDT 2014
Signed-off-by: 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 5f6722a..a4be7a5 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -2066,6 +2066,8 @@ piglit_display(void)
} else if (string_match("ortho", line)) {
piglit_ortho_projection(render_width, render_height,
GL_FALSE);
+ } else if (sscanf(line, "patch vertices %d", &x) == 1) {
+ glPatchParameteri(GL_PATCH_VERTICES, x);
} else if (string_match("probe rgba", line)) {
get_floats(line + 10, c, 6);
if (!piglit_probe_pixel_rgba((int) c[0], (int) c[1],
--
2.0.0.rc4
More information about the Piglit
mailing list