summaryrefslogtreecommitdiff
path: root/tests/spec/arb_gpu_shader5/compiler/sample-qualifier/fs-sample-out-qualifier.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/arb_gpu_shader5/compiler/sample-qualifier/fs-sample-out-qualifier.frag')
-rw-r--r--tests/spec/arb_gpu_shader5/compiler/sample-qualifier/fs-sample-out-qualifier.frag20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/spec/arb_gpu_shader5/compiler/sample-qualifier/fs-sample-out-qualifier.frag b/tests/spec/arb_gpu_shader5/compiler/sample-qualifier/fs-sample-out-qualifier.frag
new file mode 100644
index 000000000..16f94f236
--- /dev/null
+++ b/tests/spec/arb_gpu_shader5/compiler/sample-qualifier/fs-sample-out-qualifier.frag
@@ -0,0 +1,20 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_gpu_shader5
+// [end config]
+
+// From the ARB_gpu_shader5 spec:
+// "It is an error to use centroid out or sample out in a fragment shader"
+
+#version 150
+#extension GL_ARB_gpu_shader5: require
+
+sample out vec4 x; /* not allowed */
+out vec4 out_color;
+
+void main()
+{
+ out_color = x;
+}
+