GLSL: fix "mix" intrinsic.
GLSL's mix is "mix", not "lerp". Bug: tint:1297 Change-Id: Ie1894d28a35385511fcb5e3474856af82a6cc763 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/69281 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
parent
e1761d5852
commit
6d643deefa
|
@ -1339,7 +1339,7 @@ std::string GeneratorImpl::generate_builtin_name(
|
|||
case sem::IntrinsicType::kIsNan:
|
||||
return "isnan";
|
||||
case sem::IntrinsicType::kMix:
|
||||
return "lerp";
|
||||
return "mix";
|
||||
case sem::IntrinsicType::kReverseBits:
|
||||
return "reversebits";
|
||||
case sem::IntrinsicType::kSmoothStep:
|
||||
|
|
|
@ -212,7 +212,7 @@ TEST_P(GlslImportData_TripleParam_ScalarTest, Float) {
|
|||
INSTANTIATE_TEST_SUITE_P(GlslGeneratorImplTest_Import,
|
||||
GlslImportData_TripleParam_ScalarTest,
|
||||
testing::Values(GlslImportData{"fma", "mad"},
|
||||
GlslImportData{"mix", "lerp"},
|
||||
GlslImportData{"mix", "mix"},
|
||||
GlslImportData{"clamp", "clamp"},
|
||||
GlslImportData{"smoothStep",
|
||||
"smoothstep"}));
|
||||
|
|
|
@ -235,7 +235,7 @@ INSTANTIATE_TEST_SUITE_P(
|
|||
IntrinsicData{IntrinsicType::kMax, ParamType::kU32, "max"},
|
||||
IntrinsicData{IntrinsicType::kMin, ParamType::kF32, "min"},
|
||||
IntrinsicData{IntrinsicType::kMin, ParamType::kU32, "min"},
|
||||
IntrinsicData{IntrinsicType::kMix, ParamType::kF32, "lerp"},
|
||||
IntrinsicData{IntrinsicType::kMix, ParamType::kF32, "mix"},
|
||||
IntrinsicData{IntrinsicType::kNormalize, ParamType::kF32, "normalize"},
|
||||
IntrinsicData{IntrinsicType::kPow, ParamType::kF32, "pow"},
|
||||
IntrinsicData{IntrinsicType::kReflect, ParamType::kF32, "reflect"},
|
||||
|
|
Loading…
Reference in New Issue