[Piglit] [PATCH 05/10] shader_runner: support depth visual with DEPTH keyword in requirements
Jordan Justen
jordan.l.justen at intel.com
Wed Oct 16 01:33:09 CEST 2013
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
tests/shaders/shader_runner.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index b833e5c..8e601aa 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -938,6 +938,7 @@ struct requirement_parse_results {
bool found_gl;
bool found_glsl;
bool found_size;
+ bool found_depth;
struct component_version gl_version;
struct component_version glsl_version;
unsigned size[2];
@@ -955,6 +956,7 @@ parse_required_config(struct requirement_parse_results *results,
results->found_gl = false;
results->found_glsl = false;
results->found_size = false;
+ results->found_depth = false;
if (line == NULL) {
printf("could not read file \"%s\"\n", script_name);
@@ -1002,6 +1004,8 @@ parse_required_config(struct requirement_parse_results *results,
} else if (string_match("SIZE", line)) {
results->found_size = true;
get_uints(line+4, results->size, 2);
+ } else if (string_match("DEPTH", line)) {
+ results->found_depth = true;
}
}
@@ -1076,6 +1080,9 @@ get_required_config(const char *script_name,
config->window_height = parse_results.size[1];
}
+ if (parse_results.found_depth)
+ config->window_visual |= PIGLIT_GL_VISUAL_DEPTH;
+
if (required_gl_version.es) {
config->supports_gl_es_version = required_gl_version.num;
} else if (required_gl_version.num >= 31) {
--
1.7.10.4
More information about the Piglit
mailing list