[Piglit] [PATCH 2/5] shader_runner: add ability to specify GL_TEXTURE_MAX_LEVEL
Chris Forbes
chrisf at ijw.co.nz
Sat Oct 5 06:08:45 CEST 2013
Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
tests/shaders/shader_runner.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index ca571ec..fbc1964 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1585,6 +1585,11 @@ handle_texparameter(const char *line)
printf("lod_bias feature is only available in desktop GL\n");
piglit_report_result(PIGLIT_SKIP);
#endif
+ } else if (string_match("max_level ", line)) {
+ line += strlen("max_level ");
+ glTexParameteri(target, GL_TEXTURE_MAX_LEVEL,
+ strtol(line, NULL, 10));
+ return;
} else if (string_match("base_level ", line)) {
line += strlen("base_level ");
glTexParameteri(target, GL_TEXTURE_BASE_LEVEL,
--
1.8.4
More information about the Piglit
mailing list