commit | 012551ad6f7f23d8f885429bc1f3a1c399dcd32a | [log] [tgz] |
---|---|---|
author | David Neto <dneto@google.com> | Tue Oct 15 16:00:17 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 15 16:00:17 2024 +0000 |
tree | 318a7586119475f6ad939b0a88beab8b380a8073 | |
parent | 02cdbebf9c1690f9a991aaa51e0331ca04694dff [diff] [blame] |
Convince the metal compiler that loops are never infinite Disable the end2end infinite loop tests for now Bug: crbug.com/371840056 Change-Id: I300d61e4929942e41ca9c451c88f304e9b58f1f4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/210338 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: David Neto <dneto@google.com>
diff --git a/test/tint/loops/continue_in_switch_with_breakif.wgsl.expected.msl b/test/tint/loops/continue_in_switch_with_breakif.wgsl.expected.msl index e0ef3e1..e944287 100644 --- a/test/tint/loops/continue_in_switch_with_breakif.wgsl.expected.msl +++ b/test/tint/loops/continue_in_switch_with_breakif.wgsl.expected.msl
@@ -3,13 +3,13 @@ using namespace metal; #define TINT_ISOLATE_UB(VOLATILE_NAME) \ - volatile bool VOLATILE_NAME = true; \ - if (VOLATILE_NAME) + {volatile bool VOLATILE_NAME = false; if (VOLATILE_NAME) break;} kernel void f() { int i = 0; bool tint_continue = false; - TINT_ISOLATE_UB(tint_volatile_true) while(true) { + while(true) { + TINT_ISOLATE_UB(tint_volatile_false); tint_continue = false; switch(i) { case 0: {