[Piglit] [PATCH 1/5] shader_runner: add ability to specify GL_TEXTURE_BASE_LEVEL

Chris Forbes chrisf at ijw.co.nz
Sat Oct 5 06:07:12 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 ba76cd0..ca571ec 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("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