Interface blocks may contain instances of predeclared structs,
but not embedded definitions.

Signed-off-by: Chris Forbes <[email protected]>
---
 .../execution/interface-blocks-complex-vs-fs.shader_test | 16 ++++++++++------
 1 file 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 e2cef35..2cfa40d 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 {
-- 
2.0.0

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to