[Piglit] [PATCH 20/23] Port glsl 1.20 and 1.30 glean tests to Piglit.

Fabian Bieler fabianbieler at fastmail.fm
Thu Nov 23 20:46:12 UTC 2017


---
 .../qualifiers/multiple-invariant-centroid-vec4.frag    | 16 ++++++++++++++++
 .../precision-qualifiers/multiple-precision-float.frag  | 17 +++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 tests/spec/glsl-1.20/compiler/qualifiers/multiple-invariant-centroid-vec4.frag
 create mode 100644 tests/spec/glsl-1.30/compiler/precision-qualifiers/multiple-precision-float.frag

diff --git a/tests/spec/glsl-1.20/compiler/qualifiers/multiple-invariant-centroid-vec4.frag b/tests/spec/glsl-1.20/compiler/qualifiers/multiple-invariant-centroid-vec4.frag
new file mode 100644
index 0000000..eea32fb
--- /dev/null
+++ b/tests/spec/glsl-1.20/compiler/qualifiers/multiple-invariant-centroid-vec4.frag
@@ -0,0 +1,16 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.20
+ * [end config]
+ */
+
+#version 120
+invariant varying vec4 v1;
+centroid varying vec4 v2;
+invariant centroid varying vec4 v3;
+varying vec4 v4;
+invariant v4;
+void main()
+{
+	gl_FragColor = vec4(1);
+}
diff --git a/tests/spec/glsl-1.30/compiler/precision-qualifiers/multiple-precision-float.frag b/tests/spec/glsl-1.30/compiler/precision-qualifiers/multiple-precision-float.frag
new file mode 100644
index 0000000..2e2f709
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/precision-qualifiers/multiple-precision-float.frag
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * [end config]
+ */
+
+#version 130
+highp float f1;
+mediump float f2;
+lowp float f3;
+precision mediump float;
+precision lowp int;
+precision highp float;
+void main()
+{
+	gl_FragColor = vec4(1);
+}
-- 
2.7.4



More information about the Piglit mailing list