Home
last modified time | relevance | path

Searched refs:GetParam (Results 1 – 25 of 500) sorted by relevance

12345678910>>...20

/third_party/skia/third_party/externals/libjpeg-turbo/gtest/
Dtjunittest-gtest-wrapper.cpp57 EXPECT_EQ(testBmp(std::get<0>(GetParam()), in TEST_P()
58 std::get<1>(GetParam()), in TEST_P()
59 std::get<2>(GetParam())), 0); in TEST_P()
63 EXPECT_EQ(testThreeByte444(std::get<0>(GetParam()), in TEST_P()
64 std::get<1>(GetParam()), in TEST_P()
65 std::get<2>(GetParam())), 0); in TEST_P()
69 EXPECT_EQ(testFourByte444(std::get<0>(GetParam()), in TEST_P()
70 std::get<1>(GetParam()), in TEST_P()
71 std::get<2>(GetParam())), 0); in TEST_P()
75 EXPECT_EQ(testThreeByte422(std::get<0>(GetParam()), in TEST_P()
[all …]
/third_party/mesa3d/src/compiler/nir/tests/
Dserialize_tests.cpp127 nir_ssa_def *zero = nir_imm_zero(b, GetParam(), 32); in TEST_P()
132 memset(fmax_alu->src[0].swizzle, GetParam() - 1, NIR_MAX_VEC_COMPONENTS); in TEST_P()
133 memset(fmax_alu->src[1].swizzle, GetParam() - 1, NIR_MAX_VEC_COMPONENTS); in TEST_P()
139 ASSERT_SWIZZLE_EQ(fmax_alu, fmax_alu_dup, GetParam(), 0); in TEST_P()
140 ASSERT_SWIZZLE_EQ(fmax_alu, fmax_alu_dup, GetParam(), 1); in TEST_P()
145 nir_ssa_def *undef = nir_ssa_undef(b, GetParam(), 32); in TEST_P()
153 nir_ssa_def *vec = nir_vec(b, undefs, GetParam()); in TEST_P()
155 for (int i = 0; i < GetParam(); i++) in TEST_P()
156 vec_alu->src[i].swizzle[0] = (GetParam() - 1) - i; in TEST_P()
171 fma->num_components = GetParam(); in TEST_P()
[all …]
/third_party/skia/third_party/externals/swiftshader/tests/VulkanUnitTests/
DComputeTests.cpp169 size_t numElements = GetParam().numElements; in test()
277 driver.vkCmdDispatch(commandBuffer, (uint32_t)(numElements / GetParam().localSizeX), 1, 1); in test()
342 GetParam().localSizeX << " " << in TEST_P()
343 GetParam().localSizeY << " " << in TEST_P()
344 GetParam().localSizeZ << "\n" << in TEST_P()
394 GetParam().localSizeX << " " << in TEST_P()
395 GetParam().localSizeY << " " << in TEST_P()
396 GetParam().localSizeZ << "\n" << in TEST_P()
456 GetParam().localSizeX << " " << in TEST_P()
457 GetParam().localSizeY << " " << in TEST_P()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DNonzeroTextureCreationTests.cpp79 if (GetParam().mFormat == wgpu::TextureFormat::BC1RGBAUnorm && in GetRequiredFeatures()
87 DAWN_TEST_UNSUPPORTED_IF(GetParam().mFormat == wgpu::TextureFormat::BC1RGBAUnorm && in Run()
92 DAWN_TEST_UNSUPPORTED_IF(GetParam().mFormat == wgpu::TextureFormat::RGBA8Snorm && in Run()
96 DAWN_SUPPRESS_TEST_IF(GetParam().mDimension == wgpu::TextureDimension::e3D && in Run()
103 (GetParam().mFormat == wgpu::TextureFormat::Depth32Float || in Run()
104 GetParam().mFormat == wgpu::TextureFormat::Depth24PlusStencil8) && in Run()
105 IsMetal() && IsIntel() && GetParam().mMip != 0); in Run()
108 DAWN_SUPPRESS_TEST_IF((GetParam().mFormat == wgpu::TextureFormat::R8Unorm || in Run()
109 GetParam().mFormat == wgpu::TextureFormat::RG8Unorm) && in Run()
110 GetParam().mMipCount > 1 && in Run()
[all …]
/third_party/glslang/gtests/
DSpv.FromFile.cpp86 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam(), in TEST_P()
93 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam(), in TEST_P()
102 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam(), in TEST_P()
112 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam(), in TEST_P()
119 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam(), in TEST_P()
128 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam(), in TEST_P()
137 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam(), in TEST_P()
146 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam(), in TEST_P()
154 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam(), in TEST_P()
162 loadFileCompileIoMapAndCheck(GlobalTestSettings.testRoot, GetParam().fileName, in TEST_P()
[all …]
DHlsl.FromFile.cpp72 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam().fileName, in TEST_P()
74 Target::BothASTAndSpv, true, GetParam().entryPoint); in TEST_P()
79 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam().fileName, in TEST_P()
81 Target::BothASTAndSpv, true, GetParam().entryPoint); in TEST_P()
86 loadFileCompileFlattenUniformsAndCheck(GlobalTestSettings.testRoot, GetParam().fileName, in TEST_P()
88 Target::BothASTAndSpv, GetParam().entryPoint); in TEST_P()
95 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam().fileName, in TEST_P()
97 Target::Spv, true, GetParam().entryPoint, in TEST_P()
105 loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam().fileName, in TEST_P()
107 Target::Spv, true, GetParam().entryPoint, in TEST_P()
[all …]
DHexFloat.cpp57 EXPECT_THAT(EncodeViaHexFloat(GetParam().first), Eq(GetParam().second)); in TEST_P()
61 EXPECT_THAT(EncodeViaHexFloat(GetParam().first), Eq(GetParam().second)); in TEST_P()
73 EXPECT_THAT(Decode<float>(GetParam().second), Eq(GetParam().first)); in TEST_P()
77 EXPECT_THAT(Decode<double>(GetParam().second), Eq(GetParam().first)); in TEST_P()
258 EXPECT_THAT(Decode<float>(GetParam().first), Eq(GetParam().second)); in TEST_P()
262 EXPECT_THAT(Decode<double>(GetParam().first), Eq(GetParam().second)); in TEST_P()
458 NormalizeExponentInFloatString(EncodeViaFloatProxy(GetParam().first)), in TEST_P()
459 Eq(GetParam().second)); in TEST_P()
464 NormalizeExponentInFloatString(EncodeViaFloatProxy(GetParam().first)), in TEST_P()
465 Eq(GetParam().second)); in TEST_P()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
Dutils_test.cpp60 auto process = std::string(GetParam().orig_str); in TEST_P()
61 EXPECT_EQ(GetParam().replace_should_succeed, in TEST_P()
62 FindAndReplace(&process, GetParam().find_substr, in TEST_P()
63 GetParam().replace_substr)) in TEST_P()
64 << "Original string: " << GetParam().orig_str in TEST_P()
65 << " replace: " << GetParam().find_substr in TEST_P()
66 << " to: " << GetParam().replace_substr in TEST_P()
67 << " should returns: " << GetParam().replace_should_succeed; in TEST_P()
68 EXPECT_STREQ(GetParam().expected_str, process.c_str()) in TEST_P()
69 << "Original string: " << GetParam().orig_str in TEST_P()
[all …]
/third_party/spirv-tools/test/opt/
Dutils_test.cpp60 auto process = std::string(GetParam().orig_str); in TEST_P()
61 EXPECT_EQ(GetParam().replace_should_succeed, in TEST_P()
62 FindAndReplace(&process, GetParam().find_substr, in TEST_P()
63 GetParam().replace_substr)) in TEST_P()
64 << "Original string: " << GetParam().orig_str in TEST_P()
65 << " replace: " << GetParam().find_substr in TEST_P()
66 << " to: " << GetParam().replace_substr in TEST_P()
67 << " should returns: " << GetParam().replace_should_succeed; in TEST_P()
68 EXPECT_STREQ(GetParam().expected_str, process.c_str()) in TEST_P()
69 << "Original string: " << GetParam().orig_str in TEST_P()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/opt/
Dutils_test.cpp60 auto process = std::string(GetParam().orig_str); in TEST_P()
61 EXPECT_EQ(GetParam().replace_should_succeed, in TEST_P()
62 FindAndReplace(&process, GetParam().find_substr, in TEST_P()
63 GetParam().replace_substr)) in TEST_P()
64 << "Original string: " << GetParam().orig_str in TEST_P()
65 << " replace: " << GetParam().find_substr in TEST_P()
66 << " to: " << GetParam().replace_substr in TEST_P()
67 << " should returns: " << GetParam().replace_should_succeed; in TEST_P()
68 EXPECT_STREQ(GetParam().expected_str, process.c_str()) in TEST_P()
69 << "Original string: " << GetParam().orig_str in TEST_P()
[all …]
/third_party/spirv-tools/test/val/
Dval_annotation_test.cpp72 const auto deco = GetParam(); in TEST_P()
90 const auto deco = GetParam(); in TEST_P()
117 const auto deco = GetParam(); in TEST_P()
164 const std::string deco = GetParam(); in TEST_P()
180 const std::string deco = GetParam(); in TEST_P()
196 const std::string deco = GetParam(); in TEST_P()
214 const auto deco = GetParam(); in TEST_P()
237 const std::string deco = GetParam(); in TEST_P()
261 const auto deco = GetParam(); in TEST_P()
278 const auto deco = GetParam(); in TEST_P()
[all …]
Dval_extensions_test.cpp73 const std::string extension = GetParam(); in TEST_P()
83 const std::string extension = GetParam(); in TEST_P()
225 GetParam() + "\nOpReturn OpFunctionEnd"; in TEST_P()
240 parts[0] + parts[1] + GetParam() + "\nOpReturn OpFunctionEnd"; in TEST_P()
247 auto prefix_with_opcode = GetParam().substr(GetParam().find("Group")); in TEST_P()
275 GetParam().cap + R"( in TEST_P()
278 OpDecorate %builtin BuiltIn )" + GetParam().builtin + R"( in TEST_P()
290 CompileSuccessfully(code.c_str(), GetParam().env); in TEST_P()
291 if (GetParam().success) { in TEST_P()
292 ASSERT_EQ(SPV_SUCCESS, ValidateInstructions(GetParam().env)) in TEST_P()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/val/
Dval_annotation_test.cpp72 const auto deco = GetParam(); in TEST_P()
90 const auto deco = GetParam(); in TEST_P()
117 const auto deco = GetParam(); in TEST_P()
164 const std::string deco = GetParam(); in TEST_P()
180 const std::string deco = GetParam(); in TEST_P()
196 const std::string deco = GetParam(); in TEST_P()
214 const auto deco = GetParam(); in TEST_P()
237 const std::string deco = GetParam(); in TEST_P()
261 const auto deco = GetParam(); in TEST_P()
278 const auto deco = GetParam(); in TEST_P()
[all …]
Dval_extensions_test.cpp73 const std::string extension = GetParam(); in TEST_P()
83 const std::string extension = GetParam(); in TEST_P()
225 GetParam() + "\nOpReturn OpFunctionEnd"; in TEST_P()
240 parts[0] + parts[1] + GetParam() + "\nOpReturn OpFunctionEnd"; in TEST_P()
247 auto prefix_with_opcode = GetParam().substr(GetParam().find("Group")); in TEST_P()
275 GetParam().cap + R"( in TEST_P()
278 OpDecorate %builtin BuiltIn )" + GetParam().builtin + R"( in TEST_P()
290 CompileSuccessfully(code.c_str(), GetParam().env); in TEST_P()
291 if (GetParam().success) { in TEST_P()
292 ASSERT_EQ(SPV_SUCCESS, ValidateInstructions(GetParam().env)) in TEST_P()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_annotation_test.cpp72 const auto deco = GetParam(); in TEST_P()
90 const auto deco = GetParam(); in TEST_P()
117 const auto deco = GetParam(); in TEST_P()
164 const std::string deco = GetParam(); in TEST_P()
180 const std::string deco = GetParam(); in TEST_P()
196 const std::string deco = GetParam(); in TEST_P()
214 const auto deco = GetParam(); in TEST_P()
237 const std::string deco = GetParam(); in TEST_P()
261 const auto deco = GetParam(); in TEST_P()
278 const auto deco = GetParam(); in TEST_P()
[all …]
Dval_extensions_test.cpp73 const std::string extension = GetParam(); in TEST_P()
83 const std::string extension = GetParam(); in TEST_P()
225 GetParam() + "\nOpReturn OpFunctionEnd"; in TEST_P()
240 parts[0] + parts[1] + GetParam() + "\nOpReturn OpFunctionEnd"; in TEST_P()
247 auto prefix_with_opcode = GetParam().substr(GetParam().find("Group")); in TEST_P()
275 GetParam().cap + R"( in TEST_P()
278 OpDecorate %builtin BuiltIn )" + GetParam().builtin + R"( in TEST_P()
290 CompileSuccessfully(code.c_str(), GetParam().env); in TEST_P()
291 if (GetParam().success) { in TEST_P()
292 ASSERT_EQ(SPV_SUCCESS, ValidateInstructions(GetParam().env)) in TEST_P()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/
Dtext_to_binary.debug_test.cpp70 GetParam().language_name + " " + in TEST_P()
71 std::to_string(GetParam().version); in TEST_P()
73 Eq(MakeInstruction(SpvOpSource, {GetParam().get_language_value(), in TEST_P()
74 GetParam().version}))); in TEST_P()
110 std::string("OpSourceContinued \"") + GetParam() + "\""; in TEST_P()
113 Eq(MakeInstruction(SpvOpSourceContinued, MakeVector(GetParam())))); in TEST_P()
129 std::string("OpSourceExtension \"") + GetParam() + "\""; in TEST_P()
132 Eq(MakeInstruction(SpvOpSourceExtension, MakeVector(GetParam())))); in TEST_P()
156 std::string("%result = OpString \"") + GetParam() + "\""; in TEST_P()
158 Eq(MakeInstruction(SpvOpString, {1}, MakeVector(GetParam())))); in TEST_P()
[all …]
Dhex_float_test.cpp61 EXPECT_THAT(EncodeViaHexFloat(GetParam().first), Eq(GetParam().second)); in TEST_P()
65 EXPECT_THAT(EncodeViaHexFloat(GetParam().first), Eq(GetParam().second)); in TEST_P()
77 EXPECT_THAT(Decode<float>(GetParam().second), Eq(GetParam().first)); in TEST_P()
81 EXPECT_THAT(Decode<double>(GetParam().second), Eq(GetParam().first)); in TEST_P()
250 ss << FloatProxy<float>(GetParam()); in TEST_P()
254 EXPECT_THAT(GetParam(), Eq(res.getAsFloat())); in TEST_P()
259 ss << FloatProxy<double>(GetParam()); in TEST_P()
263 EXPECT_THAT(GetParam(), Eq(res.getAsFloat())); in TEST_P()
296 EXPECT_THAT(Decode<float>(GetParam().first), Eq(GetParam().second)); in TEST_P()
300 EXPECT_THAT(Decode<double>(GetParam().first), Eq(GetParam().second)); in TEST_P()
[all …]
Dtext_to_binary.constant_test.cpp42 "%result = OpConstantSampler %type " + GetParam().name() + " 0 Nearest"; in TEST_P()
45 {1, 2, GetParam().value(), 0, 0}))); in TEST_P()
74 "%result = OpConstantSampler %type Clamp 0 " + GetParam().name(); in TEST_P()
77 {1, 2, 2, 0, GetParam().value()}))); in TEST_P()
106 const std::string input = "%1 = " + GetParam().constant_type + in TEST_P()
109 GetParam().constant_value + "\n"; in TEST_P()
111 EXPECT_THAT(CompiledInstructions(input), Eq(GetParam().expected_instructions)) in TEST_P()
112 << " type: " << GetParam().constant_type in TEST_P()
113 << " literal: " << GetParam().constant_value; in TEST_P()
249 const std::string input = "%1 = " + GetParam().type + in TEST_P()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/
Dtext_to_binary.debug_test.cpp70 GetParam().language_name + " " + in TEST_P()
71 std::to_string(GetParam().version); in TEST_P()
73 Eq(MakeInstruction(SpvOpSource, {GetParam().get_language_value(), in TEST_P()
74 GetParam().version}))); in TEST_P()
110 std::string("OpSourceContinued \"") + GetParam() + "\""; in TEST_P()
113 Eq(MakeInstruction(SpvOpSourceContinued, MakeVector(GetParam())))); in TEST_P()
129 std::string("OpSourceExtension \"") + GetParam() + "\""; in TEST_P()
132 Eq(MakeInstruction(SpvOpSourceExtension, MakeVector(GetParam())))); in TEST_P()
156 std::string("%result = OpString \"") + GetParam() + "\""; in TEST_P()
158 Eq(MakeInstruction(SpvOpString, {1}, MakeVector(GetParam())))); in TEST_P()
[all …]
Dhex_float_test.cpp61 EXPECT_THAT(EncodeViaHexFloat(GetParam().first), Eq(GetParam().second)); in TEST_P()
65 EXPECT_THAT(EncodeViaHexFloat(GetParam().first), Eq(GetParam().second)); in TEST_P()
77 EXPECT_THAT(Decode<float>(GetParam().second), Eq(GetParam().first)); in TEST_P()
81 EXPECT_THAT(Decode<double>(GetParam().second), Eq(GetParam().first)); in TEST_P()
250 ss << FloatProxy<float>(GetParam()); in TEST_P()
254 EXPECT_THAT(GetParam(), Eq(res.getAsFloat())); in TEST_P()
259 ss << FloatProxy<double>(GetParam()); in TEST_P()
263 EXPECT_THAT(GetParam(), Eq(res.getAsFloat())); in TEST_P()
296 EXPECT_THAT(Decode<float>(GetParam().first), Eq(GetParam().second)); in TEST_P()
300 EXPECT_THAT(Decode<double>(GetParam().first), Eq(GetParam().second)); in TEST_P()
[all …]
Dtext_to_binary.constant_test.cpp42 "%result = OpConstantSampler %type " + GetParam().name() + " 0 Nearest"; in TEST_P()
45 {1, 2, GetParam().value(), 0, 0}))); in TEST_P()
74 "%result = OpConstantSampler %type Clamp 0 " + GetParam().name(); in TEST_P()
77 {1, 2, 2, 0, GetParam().value()}))); in TEST_P()
106 const std::string input = "%1 = " + GetParam().constant_type + in TEST_P()
109 GetParam().constant_value + "\n"; in TEST_P()
111 EXPECT_THAT(CompiledInstructions(input), Eq(GetParam().expected_instructions)) in TEST_P()
112 << " type: " << GetParam().constant_type in TEST_P()
113 << " literal: " << GetParam().constant_value; in TEST_P()
249 const std::string input = "%1 = " + GetParam().type + in TEST_P()
[all …]
/third_party/spirv-tools/test/
Dtext_to_binary.debug_test.cpp70 GetParam().language_name + " " + in TEST_P()
71 std::to_string(GetParam().version); in TEST_P()
73 Eq(MakeInstruction(SpvOpSource, {GetParam().get_language_value(), in TEST_P()
74 GetParam().version}))); in TEST_P()
110 std::string("OpSourceContinued \"") + GetParam() + "\""; in TEST_P()
113 Eq(MakeInstruction(SpvOpSourceContinued, MakeVector(GetParam())))); in TEST_P()
129 std::string("OpSourceExtension \"") + GetParam() + "\""; in TEST_P()
132 Eq(MakeInstruction(SpvOpSourceExtension, MakeVector(GetParam())))); in TEST_P()
156 std::string("%result = OpString \"") + GetParam() + "\""; in TEST_P()
158 Eq(MakeInstruction(SpvOpString, {1}, MakeVector(GetParam())))); in TEST_P()
[all …]
Dhex_float_test.cpp61 EXPECT_THAT(EncodeViaHexFloat(GetParam().first), Eq(GetParam().second)); in TEST_P()
65 EXPECT_THAT(EncodeViaHexFloat(GetParam().first), Eq(GetParam().second)); in TEST_P()
77 EXPECT_THAT(Decode<float>(GetParam().second), Eq(GetParam().first)); in TEST_P()
81 EXPECT_THAT(Decode<double>(GetParam().second), Eq(GetParam().first)); in TEST_P()
250 ss << FloatProxy<float>(GetParam()); in TEST_P()
254 EXPECT_THAT(GetParam(), Eq(res.getAsFloat())); in TEST_P()
259 ss << FloatProxy<double>(GetParam()); in TEST_P()
263 EXPECT_THAT(GetParam(), Eq(res.getAsFloat())); in TEST_P()
296 EXPECT_THAT(Decode<float>(GetParam().first), Eq(GetParam().second)); in TEST_P()
300 EXPECT_THAT(Decode<double>(GetParam().first), Eq(GetParam().second)); in TEST_P()
[all …]
Dtext_to_binary.constant_test.cpp42 "%result = OpConstantSampler %type " + GetParam().name() + " 0 Nearest"; in TEST_P()
45 {1, 2, GetParam().value(), 0, 0}))); in TEST_P()
74 "%result = OpConstantSampler %type Clamp 0 " + GetParam().name(); in TEST_P()
77 {1, 2, 2, 0, GetParam().value()}))); in TEST_P()
106 const std::string input = "%1 = " + GetParam().constant_type + in TEST_P()
109 GetParam().constant_value + "\n"; in TEST_P()
111 EXPECT_THAT(CompiledInstructions(input), Eq(GetParam().expected_instructions)) in TEST_P()
112 << " type: " << GetParam().constant_type in TEST_P()
113 << " literal: " << GetParam().constant_value; in TEST_P()
249 const std::string input = "%1 = " + GetParam().type + in TEST_P()
[all …]

12345678910>>...20