[Piglit] [PATCH 1/1] glsl-es-1.00: sanity.shader_test fragment needs default precision
Stuart Abercrombie
sabercrombie at google.com
Thu Mar 28 11:41:40 PDT 2013
Reviewed-by: Stuart Abercrombie <sabercrombie at chromium.org>
On Wed, Mar 20, 2013 at 11:30 AM, Tom Gall <tom.gall at linaro.org> wrote:
> GLSL ES 1.00 spec 4.5.3 page 36:
> "The fragment language has no default precision qualifier for
> floating point types."
>
> Adding default precision for float in the fragment shader
> so this sanity testcase doesn't error out.
> mediump is choosen since according to 4.5.2 page 34:
> "The fragment language requires any uses of lowp and mediump to
> compile without error. Support for highp is optional."
>
> Signed-off-by: Tom Gall <tom.gall at linaro.org>
> ---
> tests/spec/glsl-es-1.00/execution/sanity.shader_test | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/spec/glsl-es-1.00/execution/sanity.shader_test
> b/tests/spec/glsl-es-1.00/execution/sanity.shader_test
> index 0884e2c..5461167 100644
> --- a/tests/spec/glsl-es-1.00/execution/sanity.shader_test
> +++ b/tests/spec/glsl-es-1.00/execution/sanity.shader_test
> @@ -12,6 +12,8 @@ void main() {
> }
>
> [fragment shader]
> +precision mediump float;
> +
> uniform vec4 u_color;
>
> void main() {
> --
> 1.7.10.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130328/2be6caf5/attachment.html>
More information about the Piglit
mailing list