From 76fc7cd1c4a67f1cff38714b1c5fc320d11cbbef Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sun, 12 Sep 2021 11:32:19 +0100 Subject: [PATCH] Renamed Signed-off-by: Alejandro Saucedo --- test/TestPushConstant.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/TestPushConstant.cpp b/test/TestPushConstant.cpp index 6d32fccaf..23d24c010 100644 --- a/test/TestPushConstant.cpp +++ b/test/TestPushConstant.cpp @@ -197,7 +197,7 @@ TEST(TestPushConstants, TestConstantsMixedTypes) pa[2] += pcs.z; })"); - struct Params{float x; uint32_t y; int32_t z;}; + struct TestConsts{float x; uint32_t y; int32_t z;}; std::vector spirv = compileSource(shader); @@ -209,7 +209,7 @@ TEST(TestPushConstants, TestConstantsMixedTypes) std::shared_ptr> tensor = mgr.tensorT({ 0, 0, 0 }); - std::shared_ptr algo = mgr.algorithm( + std::shared_ptr algo = mgr.algorithm( { tensor }, spirv, kp::Workgroup({ 1 }), {}, {{ 0, 0, 0 }}); sq = mgr.sequence()->eval({ tensor }); @@ -217,8 +217,8 @@ TEST(TestPushConstants, TestConstantsMixedTypes) // We need to run this in sequence to avoid race condition // We can't use atomicAdd as swiftshader doesn't support it for // float - sq->eval(algo, std::vector{{ 15.32, 2147483650, 10 }}); - sq->eval(algo, std::vector{{ 30.32, 2147483650, -3 }}); + sq->eval(algo, std::vector{{ 15.32, 2147483650, 10 }}); + sq->eval(algo, std::vector{{ 30.32, 2147483650, -3 }}); sq->eval({ tensor }); EXPECT_EQ(tensor->vector(), std::vector({ 45.64, 1300, 7 }));