framework/replay: disable AA accounting when comparing with no tolerance
[piglit.git] / tests / spec / glsl-1.50 / linker / gs-input-sizing-no-input-layout-declared.shader_test
blobf04107dd14b35c13262318bd69dd436e659e84b4
1 # Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec says:
3 # At least one geometry shader (compilation unit) in a program must
4 # declare an input layout, and all geometry shader input layout
5 # declarations in a program must declare the same layout. It is not
6 # required that all geometry shaders in a program declare an input
7 # layout.
9 # This test verifies that a link error occurs if no compilation unit
10 # declares an input layout.
12 [require]
13 GLSL >= 1.50
15 [vertex shader]
16 #version 150
18 in vec4 vertex;
19 out vec4 vertex_to_gs;
21 void main()
23   vertex_to_gs = vertex;
26 [geometry shader]
27 #version 150
29 layout(triangle_strip, max_vertices = 3) out;
31 void do_vertex(int i);
33 void main()
35   for (int i = 0; i < 3; i++)
36     do_vertex(i);
39 [geometry shader]
40 #version 150
42 in vec4 vertex_to_gs[3];
44 void do_vertex(int i)
46   gl_Position = vertex_to_gs[i];
47   EmitVertex();
50 [fragment shader]
51 #version 150
53 out vec4 color;
55 void main()
57   color = vec4(0.0, 1.0, 0.0, 1.0);
60 [test]
61 link error