[Piglit] [PATCH 06/10] shader_runner: enable depth clear
Jordan Justen
jordan.l.justen at intel.com
Wed Oct 16 01:33:10 CEST 2013
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
tests/shaders/shader_runner.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 8e601aa..6841cd3 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1692,6 +1692,10 @@ piglit_display(void)
get_floats(line + 11, c, 4);
glClearColor(c[0], c[1], c[2], c[3]);
clear_bits |= GL_COLOR_BUFFER_BIT;
+ } else if (string_match("clear depth", line)) {
+ get_floats(line + 11, c, 1);
+ glClearDepth(c[0]);
+ clear_bits |= GL_DEPTH_BUFFER_BIT;
} else if (string_match("clear", line)) {
glClear(clear_bits);
} else if (sscanf(line,
--
1.7.10.4
More information about the Piglit
mailing list