framework/replay: disable AA accounting when comparing with no tolerance
[piglit.git] / tests / spec / glsl-1.50 / linker / gs-must-specify-max-vertices.shader_test
bloba5932cd26b6d23d4e67817819dd1e3117969281c
1 # Section 2.11.2 (Program Objects) of the GLSL 1.50 spec says:
3 # "Linking will also fail if the program object contains objects to form a
4 #  geometry shader (see section 2.12), and
5 #       • the program contains no objects to form a vertex shader;
6 #       • the input primitive type, output primitive type, or maximum output
7 #         vertex count is not specified in any compiled geometry shader object;
8 #       • the input primitive type, output primitive type, or maximum output
9 #         vertex count is specified differently in multiple geometry shader
10 #         objects."
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(triangles) in;
30 layout(triangle_strip) out;
32 in vec4 vertex_to_gs[];
34 void main()
36         for(int i = 0; i < 3; i++) {
37                 gl_Position = vertex_to_gs[i];
38                 EmitVertex();
39         }
42 [fragment shader]
43 #version 150
45 out vec4 color;
47 void main()
49         color = vec4(0.0, 1.0, 0.0, 1.0);
52 [test]
53 link error