1 # Tests linking a shader with a large workgroup and local data set.
4 # Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93840
6 # There are two important elements to this test:
8 # 1. local workgroup size of 1024 based on the spec requirements.
10 # 2. Use a 'large' size of live local data. In the test this is
11 # controlled with the SIZE macro. This is hardware specific, and
12 # the value of 64 was chosen because it was observed to fail on the
22 #extension GL_ARB_compute_shader: enable
24 layout(local_size_x = 1024) in;
33 a[int(gl_LocalInvocationIndex) % SIZE] += 1;
34 if (a[int(gl_LocalInvocationIndex) % SIZE] == 0)