aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2013-03-18 14:44:48 -0700
committerMatt Turner <mattst88@gmail.com>2013-03-29 10:14:03 -0700
commitf184de94ddaf514ce6fa0ca2a94913f98d78d2de (patch)
treee0548968c4f2e75193728ef838d9195fd0c88a97
parent666a04f8bbcff0dff89c80323d13649e70d3faca (diff)
downloadpiglit-f184de94ddaf514ce6fa0ca2a94913f98d78d2de.tar.gz
shader_runner: Add lod_bias option to texparameter.
-rw-r--r--tests/shaders/shader_runner.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 7f3ddbbf..002cf720 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);