From ddc47126094e41f41b918ce4d51f9eab94124d6f Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Tue, 16 Mar 2021 20:04:10 +0000 Subject: [PATCH] Fix ComputeStorageBufferBarrierTests BUG=dawn:711 Change-Id: I566f2631721d10374027cf3959fce7eaf20a85c0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/44921 Commit-Queue: Ryan Harrison Commit-Queue: Austin Eng Auto-Submit: Ryan Harrison Reviewed-by: Austin Eng --- src/tests/end2end/ComputeStorageBufferBarrierTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/end2end/ComputeStorageBufferBarrierTests.cpp b/src/tests/end2end/ComputeStorageBufferBarrierTests.cpp index 8767ab0130..65aa431b05 100644 --- a/src/tests/end2end/ComputeStorageBufferBarrierTests.cpp +++ b/src/tests/end2end/ComputeStorageBufferBarrierTests.cpp @@ -41,7 +41,7 @@ TEST_P(ComputeStorageBufferBarrierTests, AddIncrement) { [[builtin(global_invocation_id)]] var GlobalInvocationID : vec3; [[stage(compute)]] fn main() -> void { - buf.data[GlobalInvocationID.x] = buf.data[GlobalInvocationID.x] + 0x1234; + buf.data[GlobalInvocationID.x] = buf.data[GlobalInvocationID.x] + 0x1234u; } )"); @@ -97,7 +97,7 @@ TEST_P(ComputeStorageBufferBarrierTests, AddPingPong) { [[builtin(global_invocation_id)]] var GlobalInvocationID : vec3; [[stage(compute)]] fn main() -> void { - dst.data[GlobalInvocationID.x] = src.data[GlobalInvocationID.x] + 0x1234; + dst.data[GlobalInvocationID.x] = src.data[GlobalInvocationID.x] + 0x1234u; } )"); @@ -169,7 +169,7 @@ TEST_P(ComputeStorageBufferBarrierTests, StorageAndReadonlyStoragePingPongInOneP [[builtin(global_invocation_id)]] var GlobalInvocationID : vec3; [[stage(compute)]] fn main() -> void { - dst.data[GlobalInvocationID.x] = src.data[GlobalInvocationID.x] + 0x1234; + dst.data[GlobalInvocationID.x] = src.data[GlobalInvocationID.x] + 0x1234u; } )");