diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2016-08-11 11:39:15 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2016-08-21 20:27:18 -0700 |
commit | a6c359becef7c113cf20d9a1cc91764aa1150cd6 (patch) | |
tree | a7e82cced8c4ce50dc67af5a832b1fa841ba64c8 /tests/spec | |
parent | 104a850e4897fbe5ac1702e3950d36390a0d5dfc (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.frag | 17 |
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; +} + |