<div dir="ltr">Paul sent a patch for this as well. It looks like it hasn't been pushed yet though.<br><br>On Mon, Apr 1, 2013 at 1:21 PM, Tom Gall <<a href="mailto:tom.gall@linaro.org">tom.gall@linaro.org</a>> wrote:<br>
><br>> When lod_bias was added to shader_runner it broke compilation<br>> on OpenGL ES. GL_TEXTURE_LOD_BIAS isn't defined as part of<br>> OpenGL ES. Added #ifdef PIGLIT_USE_OPENGL to handle_texparameter<br>
> when the string_match checks for lod_bias.<br>><br>> Signed-off-by: Tom Gall <<a href="mailto:tom.gall@linaro.org">tom.gall@linaro.org</a>><br>> ---<br>> tests/shaders/shader_runner.c | 2 ++<br>
> 1 file changed, 2 insertions(+)<br>><br>> diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c<br>> index 002cf72..22a9f0f 100644<br>> --- a/tests/shaders/shader_runner.c<br>> +++ b/tests/shaders/shader_runner.c<br>
> @@ -1577,11 +1577,13 @@ handle_texparameter(const char *line)<br>> parameter_name = "mag";<br>> line += strlen("mag ");<br>> strings = mag_filter_modes;<br>
> +#ifdef PIGLIT_USE_OPENGL<br>> } else if (string_match("lod_bias ", line)) {<br>> line += strlen("lod_bias ");<br>> glTexParameterf(target, GL_TEXTURE_LOD_BIAS,<br>
> strtod(line, NULL));<br>> return;<br>> +#endif<br>> } else {<br>> fprintf(stderr, "unknown texture parameter in `%s'\n", line);<br>
> piglit_report_result(PIGLIT_FAIL);<br>> --<br>> 1.7.10.4<br><br></div>