1 # This test exercises a particular corner case involving interface
2 # blocks and structs which is broken as of Mesa 975c6ce.
4 # The corner case occurs when an unnamed interface block contains a
5 # struct (or an array of structs), and the struct contains an array.
18 in vec4 piglit_vertex;
22 gl_Position = piglit_vertex;
43 if (a.b[0] != 1.0) ok = false;
44 if (a.b[1] != 2.0) ok = false;
45 if (aa[0].b[0] != 3.0) ok = false;
46 if (aa[0].b[1] != 4.0) ok = false;
47 if (aa[1].b[0] != 5.0) ok = false;
48 if (aa[1].b[1] != 6.0) ok = false;
49 gl_FragColor = ok ? vec4(0.0, 1.0, 0.0, 1.0) : vec4(1.0, 0.0, 0.0, 1.0);
54 probe all rgba 0.0 1.0 0.0 1.0