[Piglit] [PATCH 2/8] shader_runner: add depthfunc command
Nicolai Hähnle
nhaehnle at gmail.com
Thu Apr 7 01:10:46 UTC 2016
From: Nicolai Hähnle <nicolai.haehnle at amd.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 206258c..2d127e2 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -2894,6 +2894,8 @@ piglit_display(void)
do_enable_disable(line + 7, false);
} else if (string_match("enable", line)) {
do_enable_disable(line + 6, true);
+ } else if (sscanf(line, "depthfunc %31s", s) == 1) {
+ glDepthFunc(piglit_get_gl_enum_from_name(s));
} else if (sscanf(line, "fb tex 2d %d", &tex) == 1) {
GLenum status;
GLint tex_num;
--
2.5.0
More information about the Piglit
mailing list