mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL
Change-Id: I18c807b2449dc2842cb9dbfaeba98dae640d2355 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/102621 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
d6afca1955
commit
e14a27bc7f
@@ -19,9 +19,16 @@ void compute_main_inner(uint local_invocation_index) {
|
||||
wg.x = 0;
|
||||
wg.y = 0u;
|
||||
idx = local_invocation_index;
|
||||
{
|
||||
for(; !(!((idx < 10u))); idx = (idx + 1u)) {
|
||||
atomicExchange(wg.a[idx], 0u);
|
||||
while (true) {
|
||||
uint x_30 = idx;
|
||||
if (!((x_30 < 10u))) {
|
||||
break;
|
||||
}
|
||||
uint x_35 = idx;
|
||||
atomicExchange(wg.a[x_35], 0u);
|
||||
{
|
||||
uint x_41 = idx;
|
||||
idx = (x_41 + 1u);
|
||||
}
|
||||
}
|
||||
barrier();
|
||||
@@ -30,7 +37,8 @@ void compute_main_inner(uint local_invocation_index) {
|
||||
}
|
||||
|
||||
void compute_main_1() {
|
||||
compute_main_inner(local_invocation_index_1);
|
||||
uint x_53 = local_invocation_index_1;
|
||||
compute_main_inner(x_53);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user