[Piglit] [PATCH] Test that GS has access to noise functions

Ian Romanick idr at freedesktop.org
Fri Sep 27 16:01:11 PDT 2013


With the whitespace issues fixed, this patch is

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 09/27/2013 10:33 AM, Nicholas Mack wrote:
> ---
>  .../glsl-1.50/compiler/gs-noise-functions.geom     | 24 ++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>  create mode 100644 tests/spec/glsl-1.50/compiler/gs-noise-functions.geom
> 
> diff --git a/tests/spec/glsl-1.50/compiler/gs-noise-functions.geom b/tests/spec/glsl-1.50/compiler/gs-noise-functions.geom
> new file mode 100644
> index 0000000..0dd765c
> --- /dev/null
> +++ b/tests/spec/glsl-1.50/compiler/gs-noise-functions.geom
> @@ -0,0 +1,24 @@
> +// [config]
> +// expect_result: pass
> +// glsl_version: 1.50
> +// check_link: false
> +// [end config]
> +//
> +//Test that noise functions are available to geometry shaders.
     ^ space here

> +
> +/*
> +* GLSLLangSpec 1.50, section 8.9 (Noise Functions):
> +* "Noise functions are available to fragment, geometry, and vertex shaders."
> +*/
   ^ space here on each line after the first.

> +
> +#version 150
> +
> +layout(points) in;
> +layout(points) out;
> +
> +out float n;
> +
> +void main()
> +{
> +	n = noise1(25);
> +}
> 



More information about the Piglit mailing list