diff options
| author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-03-16 00:57:07 -0400 |
|---|---|---|
| committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:23 -0400 |
| commit | fa2f6e38f4d465ba6e5efe6c6bd23d8ef39b080d (patch) | |
| tree | df19f729a6814bcdb9bd59446e87971642053da1 /src/shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h | |
| parent | 17a82b56d74afcebaad78ce4754d8ee99ea66f93 (diff) | |
shader: Implement FSET and FSETP
Also fix oversight with adding SignedZeroInfNanPreserve execution mode.
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h b/src/shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h index c9ae5c500..f8add3c34 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/common_funcs.h @@ -15,4 +15,10 @@ namespace Shader::Maxwell { const IR::U1& predicate_2, BooleanOp bop); [[nodiscard]] IR::U1 PredicateOperation(IR::IREmitter& ir, const IR::U32& result, PredicateOp op); + +[[nodiscard]] bool IsCompareOpOrdered(FPCompareOp op); + +[[nodiscard]] IR::U1 FloatingPointCompare(IR::IREmitter& ir, const IR::F32& operand_1, + const IR::F32& operand_2, FPCompareOp compare_op, + IR::FpControl control = {}); } // namespace Shader::Maxwell |
