mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 06:07:58 -05:00
shader_decode: Implement HFMA2
This commit is contained in:
@ -762,9 +762,9 @@ private:
|
||||
return GenerateBinaryInfix(operation, "/", type, type, type);
|
||||
}
|
||||
|
||||
std::string FFma(Operation operation) {
|
||||
return GenerateTernary(operation, "fma", Type::Float, Type::Float, Type::Float,
|
||||
Type::Float);
|
||||
template <Type type>
|
||||
std::string Fma(Operation operation) {
|
||||
return GenerateTernary(operation, "fma", type, type, type, type);
|
||||
}
|
||||
|
||||
template <Type type>
|
||||
@ -1231,7 +1231,7 @@ private:
|
||||
&Add<Type::Float>,
|
||||
&Mul<Type::Float>,
|
||||
&Div<Type::Float>,
|
||||
&FFma,
|
||||
&Fma<Type::Float>,
|
||||
&Negate<Type::Float>,
|
||||
&Absolute<Type::Float>,
|
||||
&FClamp,
|
||||
@ -1289,6 +1289,7 @@ private:
|
||||
|
||||
&Add<Type::HalfFloat>,
|
||||
&Mul<Type::HalfFloat>,
|
||||
&Fma<Type::HalfFloat>,
|
||||
&Absolute<Type::HalfFloat>,
|
||||
&HNegate,
|
||||
&HMergeF32,
|
||||
|
Reference in New Issue
Block a user