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

Nicholas Mack nichmack at gmail.com
Fri Sep 27 10:33:37 PDT 2013


---
 .../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.
+
+/*
+* GLSLLangSpec 1.50, section 8.9 (Noise Functions):
+* "Noise functions are available to fragment, geometry, and vertex shaders."
+*/
+
+#version 150
+
+layout(points) in;
+layout(points) out;
+
+out float n;
+
+void main()
+{
+	n = noise1(25);
+}
-- 
1.8.3.1



More information about the Piglit mailing list