diff options
author | James Farrell <jamesfarrell@google.com> | 2023-01-19 20:23:21 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2023-01-19 20:23:38 +0000 |
commit | 12f5c853ee9e06ba6565006d8d36ee261a140d91 (patch) | |
tree | c8ac54510931ab3549d323a0056bed2dd7d8237f /test/fuzz/transformation_add_type_float_test.cpp | |
parent | d75f78543eeb24bd8441f2f07f34d273613c64fa (diff) | |
download | spirv-tools-12f5c853ee9e06ba6565006d8d36ee261a140d91.tar.gz |
Revert "Merge commit '0e6fbba7762c0' into update-shaderc"ndk-r27-rc1ndk-r26dndk-r26cndk-r26bndk-r26-rc1ndk-r26-beta1ndk-r26ndk-r27-releasendk-r26-releasemaster-ndk
Revert submission 2388945-update-shaderc
Reason for revert: Breaks NDK build on darwin.
Reverted changes: /q/submissionid:2388945-update-shaderc
Change-Id: I6c9b1918c98bcc3a68bbfabd40d4310e26337c24
Diffstat (limited to 'test/fuzz/transformation_add_type_float_test.cpp')
-rw-r--r-- | test/fuzz/transformation_add_type_float_test.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/fuzz/transformation_add_type_float_test.cpp b/test/fuzz/transformation_add_type_float_test.cpp index 75f37887..9275bec1 100644 --- a/test/fuzz/transformation_add_type_float_test.cpp +++ b/test/fuzz/transformation_add_type_float_test.cpp @@ -74,7 +74,7 @@ TEST(TransformationAddTypeFloatTest, IsApplicable) { // By default, SPIR-V does not support 64-bit float types. // Below we add such capability, so the test should now pass. - context.get()->get_feature_mgr()->AddCapability(spv::Capability::Float64); + context.get()->get_feature_mgr()->AddCapability(SpvCapabilityFloat64); ASSERT_TRUE(TransformationAddTypeFloat(7, 64).IsApplicable( context.get(), transformation_context)); @@ -120,8 +120,7 @@ TEST(TransformationAddTypeFloatTest, Apply) { ASSERT_EQ(nullptr, context->get_def_use_mgr()->GetDef(6)); ASSERT_EQ(nullptr, context->get_type_mgr()->GetType(6)); ApplyAndCheckFreshIds(transformation, context.get(), &transformation_context); - ASSERT_EQ(spv::Op::OpTypeFloat, - context->get_def_use_mgr()->GetDef(6)->opcode()); + ASSERT_EQ(SpvOpTypeFloat, context->get_def_use_mgr()->GetDef(6)->opcode()); ASSERT_NE(nullptr, context->get_type_mgr()->GetType(6)->AsFloat()); // Adds 32-bit float type. @@ -129,8 +128,7 @@ TEST(TransformationAddTypeFloatTest, Apply) { ASSERT_EQ(nullptr, context->get_def_use_mgr()->GetDef(7)); ASSERT_EQ(nullptr, context->get_type_mgr()->GetType(7)); ApplyAndCheckFreshIds(transformation, context.get(), &transformation_context); - ASSERT_EQ(spv::Op::OpTypeFloat, - context->get_def_use_mgr()->GetDef(7)->opcode()); + ASSERT_EQ(SpvOpTypeFloat, context->get_def_use_mgr()->GetDef(7)->opcode()); ASSERT_NE(nullptr, context->get_type_mgr()->GetType(7)->AsFloat()); // Adds 64-bit float type. @@ -138,8 +136,7 @@ TEST(TransformationAddTypeFloatTest, Apply) { ASSERT_EQ(nullptr, context->get_def_use_mgr()->GetDef(8)); ASSERT_EQ(nullptr, context->get_type_mgr()->GetType(8)); ApplyAndCheckFreshIds(transformation, context.get(), &transformation_context); - ASSERT_EQ(spv::Op::OpTypeFloat, - context->get_def_use_mgr()->GetDef(8)->opcode()); + ASSERT_EQ(SpvOpTypeFloat, context->get_def_use_mgr()->GetDef(8)->opcode()); ASSERT_NE(nullptr, context->get_type_mgr()->GetType(8)->AsFloat()); std::string variant_shader = R"( |