Resolver: Validate that type sizes fit in uint32_t

Bug: chromium:1249708
Bug: tint:1177
Change-Id: I31c52f160e4952475e977453206ab4224fd20df7
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/64320
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton
2021-09-15 17:37:00 +00:00
committed by Tint LUCI CQ
parent 6556ba0e94
commit d1d99bc7de
3 changed files with 121 additions and 19 deletions

View File

@@ -170,7 +170,9 @@ fn f() {
EXPECT_EQ(expect, str(got));
}
TEST_F(RobustnessTest, LargeArrays_Idx) {
// TODO(crbug.com/tint/1177) - Validation currently forbids arrays larger than
// 0xffffffff. If WGSL supports 64-bit indexing, re-enable this test.
TEST_F(RobustnessTest, DISABLED_LargeArrays_Idx) {
auto* src = R"(
[[block]]
struct S {