[Piglit] [PATCH 1/2] glsl-1.50: check compiler accepts gl_PrimitiveID for fragment shader
Dave Airlie
airlied at gmail.com
Sun Jan 13 20:34:47 PST 2013
From: Dave Airlie <airlied at redhat.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
tests/spec/glsl-1.50/compiler/gl_PrimitiveID.frag | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 tests/spec/glsl-1.50/compiler/gl_PrimitiveID.frag
diff --git a/tests/spec/glsl-1.50/compiler/gl_PrimitiveID.frag b/tests/spec/glsl-1.50/compiler/gl_PrimitiveID.frag
new file mode 100644
index 0000000..bb7be58
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/gl_PrimitiveID.frag
@@ -0,0 +1,10 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// [end config]
+#version 150
+
+int func()
+{
+ return gl_PrimitiveID;
+}
--
1.8.1
More information about the Piglit
mailing list