[Piglit] [PATCH] glsl-1.50: Test that no profile argument means core profile.

Matt Turner mattst88 at gmail.com
Wed Jul 10 10:37:25 PDT 2013


---
 .../compiler/profiles/core-profile-default.vert          | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 tests/spec/glsl-1.50/compiler/profiles/core-profile-default.vert

diff --git a/tests/spec/glsl-1.50/compiler/profiles/core-profile-default.vert b/tests/spec/glsl-1.50/compiler/profiles/core-profile-default.vert
new file mode 100644
index 0000000..179c607
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/profiles/core-profile-default.vert
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// [end config]
+
+/* The GLSL 1.50 spec says
+ *   "If no profile argument is provided, the default is core."
+ */
+#version 150
+
+void main() {
+    /* gl_ClipVertex is deprecated and not available in GLSL 1.50 core, so
+     * it should cause a compilation error.
+     */
+    gl_Position = gl_ClipVertex;
+}
-- 
1.8.1.5



More information about the Piglit mailing list