mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
writer/hlsl: Implement atomics
Storage buffers are emitted as `ByteAddressBuffer`s in HLSL, so we have to jump through hoops to support atomic ops on storage buffer atomics. Workgroup atomics are far more conventional, but very little code can be shared between these two code paths. Bug: tint:892 Change-Id: If10ea866e3b67a093e87aca689d34065fd49b705 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54651 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared int arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<i32>;
|
||||
|
||||
fn atomicAdd_794055() {
|
||||
var res : i32 = atomicAdd(&(arg_0), 1);
|
||||
void atomicAdd_794055() {
|
||||
int atomic_result = 0;
|
||||
InterlockedAdd(arg_0, 1, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicAdd_794055();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicAdd_794055(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
||||
var res : i32 = atomicAdd(&(*(tint_symbol)), 1);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
||||
atomicAdd_794055(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicAdd_8a199a() {
|
||||
uint atomic_result = 0u;
|
||||
sb_rw.InterlockedAdd(0u, 0u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicAdd_8a199a();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicAdd_8a199a();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicAdd_d32fe4() {
|
||||
int atomic_result = 0;
|
||||
sb_rw.InterlockedAdd(0u, 0u, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicAdd_d32fe4();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicAdd_d32fe4();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared uint arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<u32>;
|
||||
|
||||
fn atomicAdd_d5db1d() {
|
||||
var res : u32 = atomicAdd(&(arg_0), 1u);
|
||||
void atomicAdd_d5db1d() {
|
||||
uint atomic_result = 0u;
|
||||
InterlockedAdd(arg_0, 1u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicAdd_d5db1d();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicAdd_d5db1d(tint_symbol : ptr<workgroup, atomic<u32>>) {
|
||||
var res : u32 = atomicAdd(&(*(tint_symbol)), 1u);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<u32>;
|
||||
atomicAdd_d5db1d(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicAnd_152966() {
|
||||
int atomic_result = 0;
|
||||
sb_rw.InterlockedAnd(0u, 0u, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicAnd_152966();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicAnd_152966();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared uint arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<u32>;
|
||||
|
||||
fn atomicAnd_34edd3() {
|
||||
var res : u32 = atomicAnd(&(arg_0), 1u);
|
||||
void atomicAnd_34edd3() {
|
||||
uint atomic_result = 0u;
|
||||
InterlockedAnd(arg_0, 1u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicAnd_34edd3();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicAnd_34edd3(tint_symbol : ptr<workgroup, atomic<u32>>) {
|
||||
var res : u32 = atomicAnd(&(*(tint_symbol)), 1u);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<u32>;
|
||||
atomicAnd_34edd3(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared int arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<i32>;
|
||||
|
||||
fn atomicAnd_45a819() {
|
||||
var res : i32 = atomicAnd(&(arg_0), 1);
|
||||
void atomicAnd_45a819() {
|
||||
int atomic_result = 0;
|
||||
InterlockedAnd(arg_0, 1, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicAnd_45a819();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicAnd_45a819(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
||||
var res : i32 = atomicAnd(&(*(tint_symbol)), 1);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
||||
atomicAnd_45a819(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicAnd_85a8d9() {
|
||||
uint atomic_result = 0u;
|
||||
sb_rw.InterlockedAnd(0u, 0u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicAnd_85a8d9();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicAnd_85a8d9();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,20 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicCompareExchangeWeak_12871c() {
|
||||
int2 atomic_result = int2(0, 0);
|
||||
int atomic_compare_value = 1;
|
||||
sb_rw.InterlockedCompareExchange(0u, atomic_compare_value, 1, atomic_result.x);
|
||||
atomic_result.y = atomic_result.x == atomic_compare_value;
|
||||
int2 res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicCompareExchangeWeak_12871c();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicCompareExchangeWeak_12871c();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,20 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicCompareExchangeWeak_6673da() {
|
||||
uint2 atomic_result = uint2(0u, 0u);
|
||||
uint atomic_compare_value = 1u;
|
||||
sb_rw.InterlockedCompareExchange(0u, atomic_compare_value, 1u, atomic_result.x);
|
||||
atomic_result.y = atomic_result.x == atomic_compare_value;
|
||||
uint2 res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicCompareExchangeWeak_6673da();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicCompareExchangeWeak_6673da();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
SKIP: FAILED
|
||||
groupshared int arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<i32>;
|
||||
|
||||
fn atomicCompareExchangeWeak_89ea3b() {
|
||||
var res : vec2<i32> = atomicCompareExchangeWeak(&(arg_0), 1, 1);
|
||||
void atomicCompareExchangeWeak_89ea3b() {
|
||||
int2 atomic_result = int2(0, 0);
|
||||
int atomic_compare_value = 1;
|
||||
InterlockedCompareExchange(arg_0, atomic_compare_value, 1, atomic_result.x);
|
||||
atomic_result.y = atomic_result.x == atomic_compare_value;
|
||||
int2 res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicCompareExchangeWeak_89ea3b();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicCompareExchangeWeak_89ea3b(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
||||
var res : vec2<i32> = atomicCompareExchangeWeak(&(*(tint_symbol)), 1, 1);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
||||
atomicCompareExchangeWeak_89ea3b(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
SKIP: FAILED
|
||||
groupshared uint arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<u32>;
|
||||
|
||||
fn atomicCompareExchangeWeak_b2ab2c() {
|
||||
var res : vec2<u32> = atomicCompareExchangeWeak(&(arg_0), 1u, 1u);
|
||||
void atomicCompareExchangeWeak_b2ab2c() {
|
||||
uint2 atomic_result = uint2(0u, 0u);
|
||||
uint atomic_compare_value = 1u;
|
||||
InterlockedCompareExchange(arg_0, atomic_compare_value, 1u, atomic_result.x);
|
||||
atomic_result.y = atomic_result.x == atomic_compare_value;
|
||||
uint2 res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicCompareExchangeWeak_b2ab2c();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicCompareExchangeWeak_b2ab2c(tint_symbol : ptr<workgroup, atomic<u32>>) {
|
||||
var res : vec2<u32> = atomicCompareExchangeWeak(&(*(tint_symbol)), 1u, 1u);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<u32>;
|
||||
atomicCompareExchangeWeak_b2ab2c(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared uint arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<u32>;
|
||||
|
||||
fn atomicExchange_0a5dca() {
|
||||
var res : u32 = atomicExchange(&(arg_0), 1u);
|
||||
void atomicExchange_0a5dca() {
|
||||
uint atomic_result = 0u;
|
||||
InterlockedExchange(arg_0, 1u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicExchange_0a5dca();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicExchange_0a5dca(tint_symbol : ptr<workgroup, atomic<u32>>) {
|
||||
var res : u32 = atomicExchange(&(*(tint_symbol)), 1u);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<u32>;
|
||||
atomicExchange_0a5dca(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicExchange_d59712() {
|
||||
uint atomic_result = 0u;
|
||||
sb_rw.InterlockedExchange(0u, 0u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicExchange_d59712();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicExchange_d59712();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared int arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<i32>;
|
||||
|
||||
fn atomicExchange_e114ba() {
|
||||
var res : i32 = atomicExchange(&(arg_0), 1);
|
||||
void atomicExchange_e114ba() {
|
||||
int atomic_result = 0;
|
||||
InterlockedExchange(arg_0, 1, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicExchange_e114ba();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicExchange_e114ba(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
||||
var res : i32 = atomicExchange(&(*(tint_symbol)), 1);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
||||
atomicExchange_e114ba(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicExchange_f2e22f() {
|
||||
int atomic_result = 0;
|
||||
sb_rw.InterlockedExchange(0u, 0u, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicExchange_f2e22f();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicExchange_f2e22f();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicLoad_0806ad() {
|
||||
int atomic_result = 0;
|
||||
sb_rw.InterlockedOr(0u, 0, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicLoad_0806ad();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicLoad_0806ad();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared uint arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<u32>;
|
||||
|
||||
fn atomicLoad_361bf1() {
|
||||
var res : u32 = atomicLoad(&(arg_0));
|
||||
void atomicLoad_361bf1() {
|
||||
uint atomic_result = 0u;
|
||||
InterlockedOr(arg_0, 0, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicLoad_361bf1();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicLoad_361bf1(tint_symbol : ptr<workgroup, atomic<u32>>) {
|
||||
var res : u32 = atomicLoad(&(*(tint_symbol)));
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<u32>;
|
||||
atomicLoad_361bf1(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared int arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<i32>;
|
||||
|
||||
fn atomicLoad_afcc03() {
|
||||
var res : i32 = atomicLoad(&(arg_0));
|
||||
void atomicLoad_afcc03() {
|
||||
int atomic_result = 0;
|
||||
InterlockedOr(arg_0, 0, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicLoad_afcc03();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicLoad_afcc03(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
||||
var res : i32 = atomicLoad(&(*(tint_symbol)));
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
||||
atomicLoad_afcc03(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicLoad_fe6cc3() {
|
||||
uint atomic_result = 0u;
|
||||
sb_rw.InterlockedOr(0u, 0, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicLoad_fe6cc3();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicLoad_fe6cc3();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicMax_51b9be() {
|
||||
uint atomic_result = 0u;
|
||||
sb_rw.InterlockedMax(0u, 0u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicMax_51b9be();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicMax_51b9be();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicMax_92aa72() {
|
||||
int atomic_result = 0;
|
||||
sb_rw.InterlockedMax(0u, 0u, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicMax_92aa72();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicMax_92aa72();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared int arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<i32>;
|
||||
|
||||
fn atomicMax_a89cc3() {
|
||||
var res : i32 = atomicMax(&(arg_0), 1);
|
||||
void atomicMax_a89cc3() {
|
||||
int atomic_result = 0;
|
||||
InterlockedMax(arg_0, 1, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicMax_a89cc3();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicMax_a89cc3(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
||||
var res : i32 = atomicMax(&(*(tint_symbol)), 1);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
||||
atomicMax_a89cc3(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared uint arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<u32>;
|
||||
|
||||
fn atomicMax_beccfc() {
|
||||
var res : u32 = atomicMax(&(arg_0), 1u);
|
||||
void atomicMax_beccfc() {
|
||||
uint atomic_result = 0u;
|
||||
InterlockedMax(arg_0, 1u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicMax_beccfc();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicMax_beccfc(tint_symbol : ptr<workgroup, atomic<u32>>) {
|
||||
var res : u32 = atomicMax(&(*(tint_symbol)), 1u);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<u32>;
|
||||
atomicMax_beccfc(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared int arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<i32>;
|
||||
|
||||
fn atomicMin_278235() {
|
||||
var res : i32 = atomicMin(&(arg_0), 1);
|
||||
void atomicMin_278235() {
|
||||
int atomic_result = 0;
|
||||
InterlockedMin(arg_0, 1, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicMin_278235();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicMin_278235(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
||||
var res : i32 = atomicMin(&(*(tint_symbol)), 1);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
||||
atomicMin_278235(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared uint arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<u32>;
|
||||
|
||||
fn atomicMin_69d383() {
|
||||
var res : u32 = atomicMin(&(arg_0), 1u);
|
||||
void atomicMin_69d383() {
|
||||
uint atomic_result = 0u;
|
||||
InterlockedMin(arg_0, 1u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicMin_69d383();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicMin_69d383(tint_symbol : ptr<workgroup, atomic<u32>>) {
|
||||
var res : u32 = atomicMin(&(*(tint_symbol)), 1u);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<u32>;
|
||||
atomicMin_69d383(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicMin_8e38dc() {
|
||||
int atomic_result = 0;
|
||||
sb_rw.InterlockedMin(0u, 0u, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicMin_8e38dc();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicMin_8e38dc();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicMin_c67a74() {
|
||||
uint atomic_result = 0u;
|
||||
sb_rw.InterlockedMin(0u, 0u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicMin_c67a74();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicMin_c67a74();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared uint arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<u32>;
|
||||
|
||||
fn atomicOr_5e3d61() {
|
||||
var res : u32 = atomicOr(&(arg_0), 1u);
|
||||
void atomicOr_5e3d61() {
|
||||
uint atomic_result = 0u;
|
||||
InterlockedOr(arg_0, 1u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicOr_5e3d61();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicOr_5e3d61(tint_symbol : ptr<workgroup, atomic<u32>>) {
|
||||
var res : u32 = atomicOr(&(*(tint_symbol)), 1u);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<u32>;
|
||||
atomicOr_5e3d61(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicOr_5e95d4() {
|
||||
uint atomic_result = 0u;
|
||||
sb_rw.InterlockedOr(0u, 0u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicOr_5e95d4();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicOr_5e95d4();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicOr_8d96a0() {
|
||||
int atomic_result = 0;
|
||||
sb_rw.InterlockedOr(0u, 0u, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicOr_8d96a0();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicOr_8d96a0();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared int arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<i32>;
|
||||
|
||||
fn atomicOr_d09248() {
|
||||
var res : i32 = atomicOr(&(arg_0), 1);
|
||||
void atomicOr_d09248() {
|
||||
int atomic_result = 0;
|
||||
InterlockedOr(arg_0, 1, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicOr_d09248();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicOr_d09248(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
||||
var res : i32 = atomicOr(&(*(tint_symbol)), 1);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
||||
atomicOr_d09248(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
SKIP: FAILED
|
||||
groupshared uint arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<u32>;
|
||||
|
||||
fn atomicStore_726882() {
|
||||
atomicStore(&(arg_0), 1u);
|
||||
void atomicStore_726882() {
|
||||
uint atomic_result = 0u;
|
||||
InterlockedExchange(arg_0, 1u, atomic_result);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicStore_726882();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicStore_726882(tint_symbol : ptr<workgroup, atomic<u32>>) {
|
||||
atomicStore(&(*(tint_symbol)), 1u);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<u32>;
|
||||
atomicStore_726882(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
SKIP: FAILED
|
||||
groupshared int arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<i32>;
|
||||
|
||||
fn atomicStore_8bea94() {
|
||||
atomicStore(&(arg_0), 1);
|
||||
void atomicStore_8bea94() {
|
||||
int atomic_result = 0;
|
||||
InterlockedExchange(arg_0, 1, atomic_result);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicStore_8bea94();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicStore_8bea94(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
||||
atomicStore(&(*(tint_symbol)), 1);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
||||
atomicStore_8bea94(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,10 +1,17 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicStore_cdc29e() {
|
||||
uint atomic_result = 0u;
|
||||
sb_rw.InterlockedExchange(0u, 1u, atomic_result);
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicStore_cdc29e();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicStore_cdc29e();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,17 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicStore_d1e9a6() {
|
||||
int atomic_result = 0;
|
||||
sb_rw.InterlockedExchange(0u, 1, atomic_result);
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicStore_d1e9a6();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicStore_d1e9a6();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicXor_54510e() {
|
||||
uint atomic_result = 0u;
|
||||
sb_rw.InterlockedXor(0u, 0u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicXor_54510e();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicXor_54510e();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared int arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<i32>;
|
||||
|
||||
fn atomicXor_75dc95() {
|
||||
var res : i32 = atomicXor(&(arg_0), 1);
|
||||
void atomicXor_75dc95() {
|
||||
int atomic_result = 0;
|
||||
InterlockedXor(arg_0, 1, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicXor_75dc95();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicXor_75dc95(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
||||
var res : i32 = atomicXor(&(*(tint_symbol)), 1);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
||||
atomicXor_75dc95(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
SKIP: FAILED
|
||||
RWByteAddressBuffer sb_rw : register(u0, space0);
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
void atomicXor_c1b78c() {
|
||||
int atomic_result = 0;
|
||||
sb_rw.InterlockedXor(0u, 0u, atomic_result);
|
||||
int res = atomic_result;
|
||||
}
|
||||
|
||||
void fragment_main() {
|
||||
atomicXor_c1b78c();
|
||||
return;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicXor_c1b78c();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
SKIP: FAILED
|
||||
groupshared uint arg_0;
|
||||
|
||||
|
||||
var<workgroup> arg_0 : atomic<u32>;
|
||||
|
||||
fn atomicXor_c8e6be() {
|
||||
var res : u32 = atomicXor(&(arg_0), 1u);
|
||||
void atomicXor_c8e6be() {
|
||||
uint atomic_result = 0u;
|
||||
InterlockedXor(arg_0, 1u, atomic_result);
|
||||
uint res = atomic_result;
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[numthreads(1, 1, 1)]
|
||||
void compute_main() {
|
||||
atomicXor_c8e6be();
|
||||
return;
|
||||
}
|
||||
|
||||
Failed to generate: error: unknown type in EmitType
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
SKIP: FAILED
|
||||
|
||||
../src/transform/transform.cc:133 internal compiler error: TINT_UNREACHABLE Unhandled type: tint::sem::Atomic
|
||||
********************************************************************
|
||||
* The tint shader compiler has encountered an unexpected error. *
|
||||
* *
|
||||
* Please help us fix this issue by submitting a bug report at *
|
||||
* crbug.com/tint with the source program that triggered the bug. *
|
||||
********************************************************************
|
||||
|
||||
fn atomicXor_c8e6be(tint_symbol : ptr<workgroup, atomic<u32>>) {
|
||||
var res : u32 = atomicXor(&(*(tint_symbol)), 1u);
|
||||
}
|
||||
|
||||
[[stage(compute)]]
|
||||
fn compute_main() {
|
||||
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<u32>;
|
||||
atomicXor_c8e6be(&(tint_symbol_1));
|
||||
}
|
||||
|
||||
error: cannot declare an atomic var in a function scope
|
||||
|
||||
Reference in New Issue
Block a user