[Piglit] [PATCH 2/2] Add a simple parser test for 'inout' in 4.40.

Kenneth Graunke kenneth at whitecape.org
Thu Aug 11 19:01:13 UTC 2016


Currently fails on Mesa, but I have a patch to fix it.
---
 .../glsl-4.40/compiler/inout-parameter-qualifier.frag   | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 tests/spec/glsl-4.40/compiler/inout-parameter-qualifier.frag

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 0000000..feacc85
--- /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;
+}
+
-- 
2.9.2



More information about the Piglit mailing list