summaryrefslogtreecommitdiff
path: root/tests/spec
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-08-11 11:39:15 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-08-21 20:27:18 -0700
commita6c359becef7c113cf20d9a1cc91764aa1150cd6 (patch)
treea7e82cced8c4ce50dc67af5a832b1fa841ba64c8 /tests/spec
parent104a850e4897fbe5ac1702e3950d36390a0d5dfc (diff)
Add a simple parser test for 'inout' in 4.40.
Currently fails on Mesa, but I have a patch to fix it. Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Diffstat (limited to 'tests/spec')
-rw-r--r--tests/spec/glsl-4.40/compiler/inout-parameter-qualifier.frag17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/spec/glsl-4.40/compiler/inout-parameter-qualifier.frag b/tests/spec/glsl-4.40/compiler/inout-parameter-qualifier.frag
new file mode 100644
index 000000000..feacc8599
--- /dev/null
+++ b/tests/spec/glsl-4.40/compiler/inout-parameter-qualifier.frag
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.40
+// check_link: false
+// [end config]
+
+#version 440
+
+/* At one point, Mesa broke inout parameter qualifier handling when
+ * trying to validate the xfb_buffer enhanced layouts qualifier.
+ */
+void
+f(inout float x)
+{
+ x += 1.0;
+}
+