/third_party/spirv-tools/test/link/ |
D | matching_imports_to_exports_test.cpp | 48 spvtest::Binary linked_binary; in TEST_F() local 49 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)) in TEST_F() 64 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 80 spvtest::Binary linked_binary; in TEST_F() local 81 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary)) in TEST_F() 94 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 110 spvtest::Binary linked_binary; in TEST_F() local 113 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary, options)) in TEST_F() 127 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 148 spvtest::Binary linked_binary; in TEST_F() local [all …]
|
D | memory_model_test.cpp | 34 spvtest::Binary linked_binary; in TEST_F() local 35 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 38 EXPECT_EQ(SpvAddressingModelLogical, linked_binary[6]); in TEST_F() 39 EXPECT_EQ(SpvMemoryModelSimple, linked_binary[7]); in TEST_F() 50 spvtest::Binary linked_binary; in TEST_F() local 52 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 66 spvtest::Binary linked_binary; in TEST_F() local 68 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 81 spvtest::Binary linked_binary; in TEST_F() local 83 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() [all …]
|
D | entry_points_test.cpp | 47 spvtest::Binary linked_binary; in TEST_F() local 48 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)) in TEST_F() 73 spvtest::Binary linked_binary; in TEST_F() local 74 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)) in TEST_F() 99 spvtest::Binary linked_binary; in TEST_F() local 101 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 143 spvtest::Binary linked_binary; in TEST_F() local 144 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 146 EXPECT_TRUE(Validate(linked_binary)); in TEST_F()
|
D | linker_fixture.h | 73 const std::vector<std::string>& bodies, spvtest::Binary* linked_binary, 75 if (!linked_binary) return SPV_ERROR_INVALID_POINTER; 82 return spvtools::Link(context_, binaries, linked_binary, options); 91 const std::string& templateBody, spvtest::Binary* linked_binary, 93 if (!linked_binary) return SPV_ERROR_INVALID_POINTER; 137 return AssembleAndLink(bodies, linked_binary, options); 145 spvtest::Binary linked_binary; variable 146 spv_result_t res = ExpandAndLink(templateBody, &linked_binary, options); 152 tools_.Disassemble(linked_binary, &result, disassemble_options_)) 163 spvtest::Binary linked_binary; variable [all …]
|
D | ids_limit_test.cpp | 96 spvtest::Binary linked_binary; in TEST_F() local 97 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)) << GetErrorMessage(); in TEST_F() 99 EXPECT_EQ(0x3FFFFFu, linked_binary[3]); in TEST_F() 112 spvtest::Binary linked_binary; in TEST_F() local 113 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)) << GetErrorMessage(); in TEST_F() 118 EXPECT_EQ(0x400000u, linked_binary[3]); in TEST_F() 125 spvtest::Binary linked_binary; in TEST_F() local 127 EXPECT_EQ(SPV_ERROR_INVALID_DATA, Link(binaries, &linked_binary)); in TEST_F()
|
D | binary_version_test.cpp | 55 spvtest::Binary linked_binary; in TEST_F() local 56 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)) << GetErrorMessage(); in TEST_F() 58 EXPECT_EQ(SPV_SPIRV_VERSION_WORD(1, 3), linked_binary[1]); in TEST_F() 68 spvtest::Binary linked_binary; in TEST_F() local 69 ASSERT_EQ(SPV_ERROR_INTERNAL, Link(binaries, &linked_binary)) in TEST_F()
|
D | partial_linkage_test.cpp | 49 spvtest::Binary linked_binary; in TEST_F() local 53 AssembleAndLink({body1, body2}, &linked_binary, linker_options)) in TEST_F() 69 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 97 spvtest::Binary linked_binary; in TEST_F() local 99 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
|
D | global_values_amount_test.cpp | 83 spvtest::Binary linked_binary; in TEST_F() local 85 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)) << GetErrorMessage(); in TEST_F() 126 spvtest::Binary linked_binary; in TEST_F() local 127 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)) << GetErrorMessage(); in TEST_F()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/link/ |
D | matching_imports_to_exports_test.cpp | 42 spvtest::Binary linked_binary; in TEST_F() local 43 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)) in TEST_F() 55 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 68 spvtest::Binary linked_binary; in TEST_F() local 69 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary)) in TEST_F() 79 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 92 spvtest::Binary linked_binary; in TEST_F() local 95 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary, options)) in TEST_F() 106 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 120 spvtest::Binary linked_binary; in TEST_F() local [all …]
|
D | linker_fixture.h | 73 const std::vector<std::string>& bodies, spvtest::Binary* linked_binary, 75 if (!linked_binary) return SPV_ERROR_INVALID_POINTER; 82 return spvtools::Link(context_, binaries, linked_binary, options); 91 const std::string& templateBody, spvtest::Binary* linked_binary, 93 if (!linked_binary) return SPV_ERROR_INVALID_POINTER; 137 return AssembleAndLink(bodies, linked_binary, options); 145 spvtest::Binary linked_binary; variable 146 spv_result_t res = ExpandAndLink(templateBody, &linked_binary, options); 152 tools_.Disassemble(linked_binary, &result, disassemble_options_)) 163 spvtest::Binary linked_binary; variable [all …]
|
D | memory_model_test.cpp | 34 spvtest::Binary linked_binary; in TEST_F() local 35 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 38 EXPECT_EQ(SpvAddressingModelLogical, linked_binary[6]); in TEST_F() 39 EXPECT_EQ(SpvMemoryModelSimple, linked_binary[7]); in TEST_F() 50 spvtest::Binary linked_binary; in TEST_F() local 52 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 66 spvtest::Binary linked_binary; in TEST_F() local 68 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
|
D | entry_points_test.cpp | 43 spvtest::Binary linked_binary; in TEST_F() local 44 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 64 spvtest::Binary linked_binary; in TEST_F() local 65 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 85 spvtest::Binary linked_binary; in TEST_F() local 87 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
|
D | ids_limit_test.cpp | 38 spvtest::Binary linked_binary; in TEST_F() local 40 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F() 42 EXPECT_EQ(0x3FFFFEu, linked_binary[3]); in TEST_F() 63 spvtest::Binary linked_binary; in TEST_F() local 65 EXPECT_EQ(SPV_ERROR_INVALID_ID, Link(binaries, &linked_binary)); in TEST_F()
|
D | partial_linkage_test.cpp | 43 spvtest::Binary linked_binary; in TEST_F() local 47 AssembleAndLink({body1, body2}, &linked_binary, linker_options)); in TEST_F() 59 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 81 spvtest::Binary linked_binary; in TEST_F() local 83 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
|
D | global_values_amount_test.cpp | 112 spvtest::Binary linked_binary; in TEST_F() local 114 EXPECT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F() 144 spvtest::Binary linked_binary; in TEST_F() local 146 EXPECT_EQ(SPV_ERROR_INTERNAL, Link(binaries, &linked_binary)); in TEST_F()
|
D | binary_version_test.cpp | 51 spvtest::Binary linked_binary; in TEST_F() local 53 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F() 56 EXPECT_EQ(0x00010500u, linked_binary[1]); in TEST_F()
|
D | unique_ids_test.cpp | 134 spvtest::Binary linked_binary; in TEST_F() local 137 spv_result_t res = AssembleAndLink(bodies, &linked_binary, options); in TEST_F()
|
/third_party/skia/third_party/externals/spirv-tools/test/link/ |
D | matching_imports_to_exports_test.cpp | 42 spvtest::Binary linked_binary; in TEST_F() local 43 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)) in TEST_F() 55 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 68 spvtest::Binary linked_binary; in TEST_F() local 69 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary)) in TEST_F() 79 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 92 spvtest::Binary linked_binary; in TEST_F() local 95 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary, options)) in TEST_F() 106 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 120 spvtest::Binary linked_binary; in TEST_F() local [all …]
|
D | linker_fixture.h | 73 const std::vector<std::string>& bodies, spvtest::Binary* linked_binary, 75 if (!linked_binary) return SPV_ERROR_INVALID_POINTER; 82 return spvtools::Link(context_, binaries, linked_binary, options); 91 const std::string& templateBody, spvtest::Binary* linked_binary, 93 if (!linked_binary) return SPV_ERROR_INVALID_POINTER; 137 return AssembleAndLink(bodies, linked_binary, options); 145 spvtest::Binary linked_binary; variable 146 spv_result_t res = ExpandAndLink(templateBody, &linked_binary, options); 152 tools_.Disassemble(linked_binary, &result, disassemble_options_)) 163 spvtest::Binary linked_binary; variable [all …]
|
D | memory_model_test.cpp | 34 spvtest::Binary linked_binary; in TEST_F() local 35 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 38 EXPECT_EQ(SpvAddressingModelLogical, linked_binary[6]); in TEST_F() 39 EXPECT_EQ(SpvMemoryModelSimple, linked_binary[7]); in TEST_F() 50 spvtest::Binary linked_binary; in TEST_F() local 52 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 66 spvtest::Binary linked_binary; in TEST_F() local 68 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
|
D | entry_points_test.cpp | 43 spvtest::Binary linked_binary; in TEST_F() local 44 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 64 spvtest::Binary linked_binary; in TEST_F() local 65 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F() 85 spvtest::Binary linked_binary; in TEST_F() local 87 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
|
D | ids_limit_test.cpp | 38 spvtest::Binary linked_binary; in TEST_F() local 40 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F() 42 EXPECT_EQ(0x3FFFFEu, linked_binary[3]); in TEST_F() 63 spvtest::Binary linked_binary; in TEST_F() local 65 EXPECT_EQ(SPV_ERROR_INVALID_ID, Link(binaries, &linked_binary)); in TEST_F()
|
D | partial_linkage_test.cpp | 43 spvtest::Binary linked_binary; in TEST_F() local 47 AssembleAndLink({body1, body2}, &linked_binary, linker_options)); in TEST_F() 59 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F() 81 spvtest::Binary linked_binary; in TEST_F() local 83 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
|
D | global_values_amount_test.cpp | 112 spvtest::Binary linked_binary; in TEST_F() local 114 EXPECT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F() 144 spvtest::Binary linked_binary; in TEST_F() local 146 EXPECT_EQ(SPV_ERROR_INTERNAL, Link(binaries, &linked_binary)); in TEST_F()
|
D | binary_version_test.cpp | 51 spvtest::Binary linked_binary; in TEST_F() local 53 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F() 56 EXPECT_EQ(0x00010500u, linked_binary[1]); in TEST_F()
|