diff --git a/src/tint/resolver/materialize_test.cc b/src/tint/resolver/materialize_test.cc index b68bad5ff5..26f109fd41 100644 --- a/src/tint/resolver/materialize_test.cc +++ b/src/tint/resolver/materialize_test.cc @@ -464,9 +464,10 @@ constexpr Method kSwitchMethods[] = { /// Methods that do not materialize constexpr Method kNoMaterializeMethods[] = { - Method::kPhonyAssign, - // TODO(crbug.com/tint/1504): Enable once we have abstract overloads of builtins / binary - // ops: Method::kBuiltinArg, Method::kBinaryOp, + Method::kPhonyAssign, // + Method::kBinaryOp, + // TODO(crbug.com/tint/1504): Enable once "min" supports const evaluation + // Method::kBuiltinArg, }; INSTANTIATE_TEST_SUITE_P( MaterializeScalar, diff --git a/src/tint/resolver/resolver.cc b/src/tint/resolver/resolver.cc index 317a91a96b..046cf6f002 100644 --- a/src/tint/resolver/resolver.cc +++ b/src/tint/resolver/resolver.cc @@ -1452,7 +1452,7 @@ bool Resolver::MaterializeArguments(utils::Vector& ar } bool Resolver::ShouldMaterializeArgument(const sem::Type* parameter_ty) const { - const auto* param_el_ty = sem::Type::ElementOf(parameter_ty); + const auto* param_el_ty = sem::Type::DeepestElementOf(parameter_ty); return param_el_ty && !param_el_ty->Is(); }