[Piglit] [PATCH 03/13] glsl-1.10/glsl-1.20: Add tests for literal float suffixes.

Chris Forbes chrisf at ijw.co.nz
Sun Jul 6 00:00:49 PDT 2014


Need to actually ask for 1.20 in the 1.20 cases

On Sun, Jul 6, 2014 at 6:03 PM, Matt Turner <mattst88 at gmail.com> wrote:
> The GLSL 1.10 tests currently fail (we accept floating-point suffixes
> regardless of language version).
> ---
>  .../glsl-1.10/compiler/literals/invalid-float-suffix-F.vert    | 10 ++++++++++
>  .../glsl-1.10/compiler/literals/invalid-float-suffix-f.vert    | 10 ++++++++++
>  .../spec/glsl-1.20/compiler/literals/valid-float-suffix-F.vert |  9 +++++++++
>  .../spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert |  9 +++++++++
>  4 files changed, 38 insertions(+)
>  create mode 100644 tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-F.vert
>  create mode 100644 tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-f.vert
>  create mode 100644 tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-F.vert
>  create mode 100644 tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert
>
> diff --git a/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-F.vert b/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-F.vert
> new file mode 100644
> index 0000000..2022cdb
> --- /dev/null
> +++ b/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-F.vert
> @@ -0,0 +1,10 @@
> +// [config]
> +// expect_result: fail
> +// glsl_version: 1.10
> +// [end config]
> +
> +void main() {
> +       // Float-suffixes are not in GLSL 1.10
> +       float f = 1.0F;
> +       gl_Position = vec4(1.0);
> +}
> diff --git a/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-f.vert b/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-f.vert
> new file mode 100644
> index 0000000..8c149a0
> --- /dev/null
> +++ b/tests/spec/glsl-1.10/compiler/literals/invalid-float-suffix-f.vert
> @@ -0,0 +1,10 @@
> +// [config]
> +// expect_result: fail
> +// glsl_version: 1.10
> +// [end config]
> +
> +void main() {
> +       // Float-suffixes are not in GLSL 1.10
> +       float f = 1.0f;
> +       gl_Position = vec4(1.0);
> +}
> diff --git a/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-F.vert b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-F.vert
> new file mode 100644
> index 0000000..2933ffa
> --- /dev/null
> +++ b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-F.vert
> @@ -0,0 +1,9 @@
> +// [config]
> +// expect_result: pass
> +// glsl_version: 1.10
> +// [end config]
> +
> +void main() {
> +       float f = 1.0F;
> +       gl_Position = vec4(1.0);
> +}
> diff --git a/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert
> new file mode 100644
> index 0000000..dad6d28
> --- /dev/null
> +++ b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert
> @@ -0,0 +1,9 @@
> +// [config]
> +// expect_result: pass
> +// glsl_version: 1.10
> +// [end config]
> +
> +void main() {
> +       float f = 1.0f;
> +       gl_Position = vec4(1.0);
> +}
> --
> 1.8.3.2
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list