diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-03-15 21:09:42 -0500 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-04-14 16:41:31 -0500 |
commit | d5d7d3da89a1a2ab2db9dca7d701309d822a5294 (patch) | |
tree | ca400e23cffeb7e05022d37e47c6688c4e236a35 /tests/shaders | |
parent | 94566e79529d6a0d58e75d6e3c940964ca225a93 (diff) |
shader_runner: add depthfunc command
Diffstat (limited to 'tests/shaders')
-rw-r--r-- | tests/shaders/shader_runner.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 028e6915e..bd886f5c6 100644 --- a/tests/shaders/shader_runner.c +++ b/tests/shaders/shader_runner.c @@ -2893,6 +2893,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; |