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.geom
blob76d54dc0c34c2abd82c50c531d003975d794e023
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.
21 // [config]
22 // expect_result: pass
23 // glsl_version: 1.50
24 // require_extensions: GL_ARB_arrays_of_arrays
25 // check_link: false
26 // [end config]
28 #version 150
29 #extension GL_ARB_arrays_of_arrays: enable
31 in vec4 Color[][4];
33 vec4 foo()
35   return Color[2][3];
38 layout(triangles) in;