diff options
author | Chris Forbes <chrisf@ijw.co.nz> | 2014-06-15 12:31:17 +1200 |
---|---|---|
committer | Chris Forbes <chrisf@ijw.co.nz> | 2014-06-18 19:28:14 +1200 |
commit | e9e416be46fac1a2d1e73f4f780cf2058620363a (patch) | |
tree | ba77eac76793daf3813e6348b0126f6731732c2c /tests/spec/glsl-1.50/execution | |
parent | b70a7a8b31435a1ea4ebb7b1a3f65e570361d27a (diff) |
glsl-1.50: Don't try to use embedded struct definitions
Interface blocks may contain instances of predeclared structs,
but not embedded definitions.
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'tests/spec/glsl-1.50/execution')
-rw-r--r-- | tests/spec/glsl-1.50/execution/interface-blocks-complex-vs-fs.shader_test | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/spec/glsl-1.50/execution/interface-blocks-complex-vs-fs.shader_test b/tests/spec/glsl-1.50/execution/interface-blocks-complex-vs-fs.shader_test index e2cef35ef..2cfa40d83 100644 --- a/tests/spec/glsl-1.50/execution/interface-blocks-complex-vs-fs.shader_test +++ b/tests/spec/glsl-1.50/execution/interface-blocks-complex-vs-fs.shader_test @@ -32,12 +32,14 @@ uniform ublk { uniform vec4 color; } vs2ublk; +struct gb_struct { + vec2 gb; +}; + out vblk2 { float unused; float a; - struct gb_struct { - vec2 gb; - } gb_array[3]; + gb_struct gb_array[3]; } gb_blk; /* Use an array within an interface block. @@ -94,12 +96,14 @@ in vblk1 { vec4 r; } r_blk; +struct gb_struct { + vec2 gb; +}; + in vblk2 { float unused; float a; - struct gb_struct { - vec2 gb; - } gb_array[3]; + gb_struct gb_array[3]; } gb_blk; in vblk3 { |