framework/replay: disable AA accounting when comparing with no tolerance
[piglit.git] / tests / spec / arb_arrays_of_arrays / compiler / gs-input-sizing-implied-length-consistent-with-prev-usage-blocks.geom
blob2f9c5788800490a67e76fff69f1ed068244caec2
1 // Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec
2 // includes the following examples of compile-time errors:
3 //
4 //   // code sequence within one shader...
5 //   in vec4 Color1[];    // size unknown
6 //   ...Color1.length()...// illegal, length() unknown
7 //   in vec4 Color2[2];   // size is 2
8 //   ...Color1.length()...// illegal, Color1 still has no size
9 //   in vec4 Color3[3];   // illegal, input sizes are inconsistent
10 //   layout(lines) in;    // legal, input size is 2, matching
11 //   in vec4 Color4[3];   // illegal, contradicts layout
12 //   ...Color1.length()...// legal, length() is 2, Color1 sized by layout()
13 //   layout(lines) in;    // legal, matches other layout() declaration
14 //   layout(triangles) in;// illegal, does not match earlier layout() declaration
16 // This test verifies that when a layout declaration causes a
17 // previously unsized geometry shader input array to become sized, if
18 // an intervening usage of that input array was consistent with the
19 // new size, there is no error.  This test verifies the case for input
20 // interface blocks.
22 // [config]
23 // expect_result: pass
24 // glsl_version: 1.50
25 // require_extensions: GL_ARB_arrays_of_arrays
26 // check_link: false
27 // [end config]
29 #version 150
30 #extension GL_ARB_arrays_of_arrays: enable
32 in blk {
33   vec4 Color;
34 } inst[][6];
36 vec4 foo()
38   return inst[2][4].Color;
41 layout(triangles) in;