framework/replay: disable AA accounting when comparing with no tolerance
[piglit.git] / tests / spec / arb_arrays_of_arrays / linker / vs-to-fs-atomic-counter-mismatch.shader_test
blob7380f74024e966c297055ea4cc647b6a08690995
1 # Test for linking error between vertex and fragment shaders
2 # with mismatching AoA atomic counter declorations
4 [require]
5 GLSL >= 1.40
6 GL_ARB_shader_atomic_counters
7 GL_ARB_arrays_of_arrays
9 [vertex shader]
10 #version 140
11 #extension GL_ARB_arrays_of_arrays: enable
12 #extension GL_ARB_shader_atomic_counters: enable
14 layout(binding = 0) uniform atomic_uint a1[3][2][2];
16 in vec4 piglit_vertex;
17 out vec4 vcolor;
19 void main()
21   uint v[2];
22   v[0] = atomicCounter(a1[2][0][1]);
23   atomicCounterIncrement(a1[0][0][0]);
24   v[1] = atomicCounter(a1[0][0][0]);
26   if (v[1] > v[0])
27     vcolor = vec4(0.0, 1.0, 0.0, 1.0);
28   else
29     vcolor = vec4(1.0, 0.0, 0.0, 1.0);
31   gl_Position = piglit_vertex;
34 [fragment shader]
35 #version 140
36 #extension GL_ARB_arrays_of_arrays: enable
37 #extension GL_ARB_shader_atomic_counters: enable
39 layout(binding = 0) uniform atomic_uint a1[2][2][2];
41 in vec4 vcolor;
42 out vec4 fcolor;
44 void main()
47   uint v[2];
48   v[0] = atomicCounter(a1[1][0][1]);
49   atomicCounterIncrement(a1[0][0][0]);
50   v[1] = atomicCounter(a1[0][0][0]);
52   if (v[1] > v[0])
53     fcolor = vec4(0.0, 1.0, 0.0, 1.0) + vcolor;
54   else
55     fcolor = vec4(1.0, 0.0, 0.0, 1.0) + vcolor;
58 [test]
59 link error