[Piglit] [PATCH] shader_runner: add ability to specify GL_TEXTURE_BASE_LEVEL

Chris Forbes chrisf at ijw.co.nz
Thu Sep 26 20:19:36 PDT 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 463eddc..1384bff 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1569,6 +1569,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("base_level ", line)) {
+		line += strlen("base_level ");
+		glTexParameteri(target, GL_TEXTURE_BASE_LEVEL,
+				strtol(line, NULL, 10));
+		return;
 	} else {
 		fprintf(stderr, "unknown texture parameter in `%s'\n", line);
 		piglit_report_result(PIGLIT_FAIL);
-- 
1.8.4



More information about the Piglit mailing list