framework/replay: disable AA accounting when comparing with no tolerance
[piglit.git] / tests / spec / glsl-1.50 / uniform_buffer / gs-two-members.shader_test
blob25bee8f46611c63e5a99aafb5039ade6f610b4f0
1 [require]
2 GLSL >= 1.50
4 [vertex shader]
5 #version 150
7 in vec4 vertex;
8 out vec4 vertex_to_gs;
10 void main()
12         vertex_to_gs = vertex;
15 [geometry shader]
16 #version 150
18 layout(triangles) in;
19 layout(triangle_strip, max_vertices = 3) out;
21 uniform ubo1 {
22         vec4 color1;
23         vec4 color2;
26 in vec4 vertex_to_gs[3];
27 out vec4 v;
29 void main()
31         for (int i = 0; i < 3; i++) {
32                 gl_Position = vertex_to_gs[i];
33                 v = color1 + color2;
34                 EmitVertex();
35         }
38 [fragment shader]
39 #version 150
41 in vec4 v;
43 void main()
45         gl_FragColor = v;
48 [vertex data]
49 vertex/float/2
50 -1.0 -1.0
51  1.0 -1.0
52  1.0  1.0
53 -1.0  1.0
55 [test]
56 uniform vec4 color1 0.5 0.0 0.0 0.0
57 uniform vec4 color2 0.0 0.75 0.0 0.0
58 draw arrays GL_TRIANGLE_FAN 0 4
59 probe all rgba 0.5 0.75 0.0 0.0