From ed16517e32ce29c64abc05b19c0ea31671c8b053 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Tue, 16 Mar 2021 20:56:00 +0000 Subject: [PATCH] Fix VertexStateTests BUG=dawn:714 Change-Id: Ic9c478ae708d48cf78228edf831badb7c401d131 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/44924 Commit-Queue: Ryan Harrison Commit-Queue: Austin Eng Auto-Submit: Ryan Harrison Reviewed-by: Austin Eng --- src/tests/end2end/VertexStateTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/end2end/VertexStateTests.cpp b/src/tests/end2end/VertexStateTests.cpp index 4584533c04..452209ed8d 100644 --- a/src/tests/end2end/VertexStateTests.cpp +++ b/src/tests/end2end/VertexStateTests.cpp @@ -106,9 +106,9 @@ class VertexStateTest : public DawnTest { vs << (component == 3 ? "1.0" : "0.0"); } else { if (input.step == InputStepMode::Vertex) { - vs << "f32(" << multiplier << " * VertexIndex) + " << component << ".0"; + vs << "f32(" << multiplier << "u * VertexIndex) + " << component << ".0"; } else { - vs << "f32(" << multiplier << " * InstanceIndex) + " << component << ".0"; + vs << "f32(" << multiplier << "u * InstanceIndex) + " << component << ".0"; } } vs << ");\n";