Update expected MSL for bug 926 E2E test

We now generate valid code for this.

Change-Id: I9402c6aa32365fca5683e91b3fa345ed7d3e34ed
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56622
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
James Price 2021-07-05 15:56:32 +00:00
parent 4135ea55eb
commit 537ed0bbd5

View File

@ -1,17 +1,13 @@
SKIP: FAILED #include <metal_stdlib>
using namespace metal;
[[block]]
struct DrawIndirectArgs { struct DrawIndirectArgs {
vertexCount : atomic<u32>; /* 0x0000 */ atomic_uint vertexCount;
}; };
[[group(0), binding(5)]] var<storage, read_write> drawOut : DrawIndirectArgs; kernel void computeMain(uint3 global_id [[thread_position_in_grid]], device DrawIndirectArgs& drawOut [[buffer(5)]]) {
thread uint tint_symbol_1 = 0u;
[[stage(compute), workgroup_size(1)]] uint const firstVertex = atomic_fetch_add_explicit(&(drawOut.vertexCount), tint_symbol_1, memory_order_relaxed);
fn computeMain([[builtin(global_invocation_id)]] global_id : vec3<u32>) { return;
[[internal(disable_validation__function_var_storage_class)]] var<private> tint_symbol_1 : u32 = 0u;
let firstVertex : u32 = atomicAdd(&(drawOut.vertexCount), tint_symbol_1);
} }
Failed to generate: error: unknown type in EmitType: __atomic__u32