[Piglit] [PATCH] glsl-es-3.00: test for 'invariant(all)' usage in a fragment shader

Tapani Pälli tapani.palli at intel.com
Tue Nov 4 04:19:25 PST 2014


Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
 tests/spec/glsl-es-3.00/compiler/invariant_all.frag | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 tests/spec/glsl-es-3.00/compiler/invariant_all.frag

diff --git a/tests/spec/glsl-es-3.00/compiler/invariant_all.frag b/tests/spec/glsl-es-3.00/compiler/invariant_all.frag
new file mode 100644
index 0000000..37031cf
--- /dev/null
+++ b/tests/spec/glsl-es-3.00/compiler/invariant_all.frag
@@ -0,0 +1,12 @@
+#version 300 es
+// [config]
+// expect_result: fail
+// glsl_version: 3.00
+// [end config]
+//
+// Check that 'invariant(all)' cannot be used in fragment shader
+
+#pragma STDGL invariant(all)
+void main()
+{
+}
-- 
1.9.3



More information about the Piglit mailing list