GLSL: implement atomics.

Bug: tint:1314

Change-Id: Ic7a88761752d2db3374be043c94f02fd20684c03
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/69560
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Stephen White
2021-11-19 17:46:13 +00:00
committed by Tint LUCI CQ
parent 38fa643702
commit 943c410d51
68 changed files with 400 additions and 1313 deletions

View File

@@ -1,9 +1,7 @@
SKIP: FAILED
#version 310 es
precision mediump float;
groupshared int v[3];
shared int v[3];
struct tint_symbol_2 {
uint local_invocation_index;
@@ -16,7 +14,7 @@ void tint_symbol_inner(uint local_invocation_index) {
v[i] = 0;
}
}
GroupMemoryBarrierWithGroupSync();
memoryBarrierShared();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@@ -31,9 +29,3 @@ void main() {
}
Error parsing GLSL shader:
ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
ERROR: 1 compilation errors. No code generated.

View File

@@ -1,9 +1,7 @@
SKIP: FAILED
#version 310 es
precision mediump float;
groupshared mat2x3 v;
shared mat2x3 v;
struct tint_symbol_2 {
uint local_invocation_index;
@@ -13,7 +11,7 @@ void tint_symbol_inner(uint local_invocation_index) {
{
v = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
}
GroupMemoryBarrierWithGroupSync();
memoryBarrierShared();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@@ -28,9 +26,3 @@ void main() {
}
Error parsing GLSL shader:
ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
ERROR: 1 compilation errors. No code generated.

View File

@@ -1,9 +1,7 @@
SKIP: FAILED
#version 310 es
precision mediump float;
groupshared int v;
shared int v;
struct tint_symbol_2 {
uint local_invocation_index;
@@ -13,7 +11,7 @@ void tint_symbol_inner(uint local_invocation_index) {
{
v = 0;
}
GroupMemoryBarrierWithGroupSync();
memoryBarrierShared();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@@ -28,9 +26,3 @@ void main() {
}
Error parsing GLSL shader:
ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
ERROR: 1 compilation errors. No code generated.

View File

@@ -1,5 +1,3 @@
SKIP: FAILED
#version 310 es
precision mediump float;
@@ -8,7 +6,7 @@ struct S {
float b;
};
groupshared S v;
shared S v;
struct tint_symbol_2 {
uint local_invocation_index;
@@ -19,7 +17,7 @@ void tint_symbol_inner(uint local_invocation_index) {
S tint_symbol_3 = S(0, 0.0f);
v = tint_symbol_3;
}
GroupMemoryBarrierWithGroupSync();
memoryBarrierShared();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@@ -34,9 +32,3 @@ void main() {
}
Error parsing GLSL shader:
ERROR: 0:9: '' : syntax error, unexpected IDENTIFIER
ERROR: 1 compilation errors. No code generated.

View File

@@ -1,9 +1,7 @@
SKIP: FAILED
#version 310 es
precision mediump float;
groupshared ivec3 v;
shared ivec3 v;
struct tint_symbol_2 {
uint local_invocation_index;
@@ -13,7 +11,7 @@ void tint_symbol_inner(uint local_invocation_index) {
{
v = ivec3(0, 0, 0);
}
GroupMemoryBarrierWithGroupSync();
memoryBarrierShared();
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
@@ -28,9 +26,3 @@ void main() {
}
Error parsing GLSL shader:
ERROR: 0:4: '' : syntax error, unexpected IDENTIFIER
ERROR: 1 compilation errors. No code generated.