ARB_ubo/referenced-by-shader: pass if shader compiler moves UBOs between shaders
[piglit.git] / tests / spec / arb_shader_group_vote / cs-eq.shader_test
blobca1a136011fce481f07f3bc195e8b5aaaf7d5665
1 [require]
2 GL >= 3.2
3 GLSL >= 1.50
4 GL_ARB_compute_shader
5 GL_ARB_shader_atomic_counters
6 GL_ARB_shader_group_vote
8 [compute shader]
9 #version 150
10 #extension GL_ARB_compute_shader: require
11 #extension GL_ARB_shader_atomic_counters: require
12 #extension GL_ARB_shader_group_vote: require
14 layout(binding = 0) uniform atomic_uint inc;
16 layout(local_size_x = 8) in;
18 void main()
20   if (allInvocationsEqualARB(bool(gl_WorkGroupID.x)))
21     atomicCounterIncrement(inc);
24 [test]
25 atomic counters 1
26 compute 2 1 1
27 probe atomic counter 0 == 16