From cc84ee24fc89229d956a6cd1a8ed0f7fd7528c1b Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Tue, 16 Mar 2021 19:34:41 +0000 Subject: [PATCH] Fix ComputeCopyStorageBufferTests tests BUG=dawn:709 Change-Id: Ib829a834546588a2948179f487fc75b1bf09cf06 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/44901 Commit-Queue: Ryan Harrison Commit-Queue: Austin Eng Auto-Submit: Ryan Harrison Reviewed-by: Austin Eng --- src/tests/end2end/ComputeCopyStorageBufferTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/end2end/ComputeCopyStorageBufferTests.cpp b/src/tests/end2end/ComputeCopyStorageBufferTests.cpp index f54e15d832..8cb9846932 100644 --- a/src/tests/end2end/ComputeCopyStorageBufferTests.cpp +++ b/src/tests/end2end/ComputeCopyStorageBufferTests.cpp @@ -103,7 +103,7 @@ TEST_P(ComputeCopyStorageBufferTests, SizedArrayOfBasic) { [[stage(compute)]] fn main() -> void { var index : u32 = GlobalInvocationID.x; - if (index >= 4) { return; } + if (index >= 4u) { return; } dst.s[index] = src.s[index]; })"); } @@ -131,7 +131,7 @@ TEST_P(ComputeCopyStorageBufferTests, SizedArrayOfStruct) { [[stage(compute)]] fn main() -> void { var index : u32 = GlobalInvocationID.x; - if (index >= 4) { return; } + if (index >= 4u) { return; } dst.s[index] = src.s[index]; })"); } @@ -154,7 +154,7 @@ TEST_P(ComputeCopyStorageBufferTests, UnsizedArrayOfBasic) { [[stage(compute)]] fn main() -> void { var index : u32 = GlobalInvocationID.x; - if (index >= 4) { return; } + if (index >= 4u) { return; } dst.s[index] = src.s[index]; })"); }