[Piglit] [PATCH 5/8] shader_runner: Add lod_bias option to texparameter.
Matt Turner
mattst88 at gmail.com
Tue Mar 19 11:46:31 PDT 2013
---
tests/shaders/shader_runner.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 7f3ddbb..002cf72 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1577,6 +1577,11 @@ handle_texparameter(const char *line)
parameter_name = "mag";
line += strlen("mag ");
strings = mag_filter_modes;
+ } else if (string_match("lod_bias ", line)) {
+ line += strlen("lod_bias ");
+ glTexParameterf(target, GL_TEXTURE_LOD_BIAS,
+ strtod(line, NULL));
+ return;
} else {
fprintf(stderr, "unknown texture parameter in `%s'\n", line);
piglit_report_result(PIGLIT_FAIL);
--
1.7.8.6
More information about the Piglit
mailing list