<p dir="ltr">The patch looks good, but I would suggest improving commit message... for example...</p>
<p dir="ltr">Title (line 1): GLSL ES fix default precision qualifiers</p>
<p dir="ltr">The OpenGl ES specification for (whatever the version is being checked against) section 4.5.4 ("Default precision qualifier") : The fragment language has no default precision qualifier for floating point types. Hence for float, floating point vector and matrix variable declarations, either the declaration must include a precision qualifier or the default float precision must have been previously declared.</p>
<p dir="ltr">On Apr 8, 2014 7:42 AM, "Jin Zhou" <<a href="mailto:zhoujin10@gmail.com">zhoujin10@gmail.com</a>> wrote:<br>
><br>
> From: jin zhou <<a href="mailto:jin.zhou@amd.com">jin.zhou@amd.com</a>><br>
><br>
> Signed-off-by: jin zhou <<a href="mailto:jin.zhou@amd.com">jin.zhou@amd.com</a>><br>
> ---<br>
> .../arithmetic-operators/division-by-zero-01.frag | 2 +-<br>
> .../qualifiers/fn-inout-array-allowed-cstyle.frag | 2 +-<br>
> .../qualifiers/fn-out-array-allowed-cstyle.frag | 2 +-<br>
> 3 files changed, 3 insertions(+), 3 deletions(-)<br>
><br>
> diff --git a/tests/spec/glsl-es-1.00/compiler/arithmetic-operators/division-by-zero-01.frag b/tests/spec/glsl-es-1.00/compiler/arithmetic-operators/division-by-zero-01.frag<br>
> index 392e5c8..e3cc078 100644<br>
> --- a/tests/spec/glsl-es-1.00/compiler/arithmetic-operators/division-by-zero-01.frag<br>
> +++ b/tests/spec/glsl-es-1.00/compiler/arithmetic-operators/division-by-zero-01.frag<br>
> @@ -14,6 +14,6 @@ precision mediump float;<br>
><br>
> float<br>
> f() {<br>
> - float x = 1.0 / 0.0;<br>
> + highp float x = 1.0 / 0.0;<br>
> return x;<br>
> }<br>
> diff --git a/tests/spec/glsl-es-1.00/compiler/qualifiers/fn-inout-array-allowed-cstyle.frag b/tests/spec/glsl-es-1.00/compiler/qualifiers/fn-inout-array-allowed-cstyle.frag<br>
> index 0574a23..389322d 100644<br>
> --- a/tests/spec/glsl-es-1.00/compiler/qualifiers/fn-inout-array-allowed-cstyle.frag<br>
> +++ b/tests/spec/glsl-es-1.00/compiler/qualifiers/fn-inout-array-allowed-cstyle.frag<br>
> @@ -24,6 +24,6 @@ void f(inout float x[2])<br>
><br>
> void main()<br>
> {<br>
> - float[2] x;<br>
> + highp float[2] x;<br>
> f(x);<br>
> }<br>
> diff --git a/tests/spec/glsl-es-1.00/compiler/qualifiers/fn-out-array-allowed-cstyle.frag b/tests/spec/glsl-es-1.00/compiler/qualifiers/fn-out-array-allowed-cstyle.frag<br>
> index 241fb46..fa985c3 100644<br>
> --- a/tests/spec/glsl-es-1.00/compiler/qualifiers/fn-out-array-allowed-cstyle.frag<br>
> +++ b/tests/spec/glsl-es-1.00/compiler/qualifiers/fn-out-array-allowed-cstyle.frag<br>
> @@ -24,6 +24,6 @@ void f(out float x[2])<br>
><br>
> void main()<br>
> {<br>
> - float[2] x;<br>
> + highp float[2] x;<br>
> f(x);<br>
> }<br>
> --<br>
> 1.7.9<br>
><br>
> _______________________________________________<br>
> Piglit mailing list<br>
> <a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/piglit">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</p>