From a6c359becef7c113cf20d9a1cc91764aa1150cd6 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 11 Aug 2016 11:39:15 -0700 Subject: Add a simple parser test for 'inout' in 4.40. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently fails on Mesa, but I have a patch to fix it. Reviewed-by: Alejandro PiƱeiro --- .../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 (limited to 'tests/spec') 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; +} + -- cgit v1.2.3