[Piglit] [PATCH 2/2] glsl-1.50: add test for core profile argument to version

Dave Airlie airlied at gmail.com
Sun Jan 13 20:34:48 PST 2013


From: Dave Airlie <airlied at redhat.com>

Page 10/11 of the GLSL 1.50 spec declare optional profile arguments
core and compatibiltiy, this test checks the core argument is accepted
after the version. It also checks that GL_core_profile is defined to
1 as stated on page 11 as well.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 tests/spec/glsl-1.50/compiler/profile-core.frag | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 tests/spec/glsl-1.50/compiler/profile-core.frag

diff --git a/tests/spec/glsl-1.50/compiler/profile-core.frag b/tests/spec/glsl-1.50/compiler/profile-core.frag
new file mode 100644
index 0000000..f3c5ac6
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/profile-core.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// [end config]
+#version 150 core
+
+int func()
+{
+	return GL_core_profile;
+}
-- 
1.8.1



More information about the Piglit mailing list