diff options
| author | 2021-03-16 00:57:07 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:23 -0400 | |
| commit | fa2f6e38f4d465ba6e5efe6c6bd23d8ef39b080d (patch) | |
| tree | df19f729a6814bcdb9bd59446e87971642053da1 /src/shader_recompiler/frontend/maxwell/translate/impl/impl.h | |
| parent | shader: Implement TEXS (diff) | |
| download | yuzu-fa2f6e38f4d465ba6e5efe6c6bd23d8ef39b080d.tar.gz yuzu-fa2f6e38f4d465ba6e5efe6c6bd23d8ef39b080d.tar.xz yuzu-fa2f6e38f4d465ba6e5efe6c6bd23d8ef39b080d.zip | |
shader: Implement FSET and FSETP
Also fix oversight with adding SignedZeroInfNanPreserve execution mode.
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate/impl/impl.h')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/impl.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h b/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h index 45d6f5e06..761b64666 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/impl.h | |||
| @@ -35,6 +35,25 @@ enum class PredicateOp : u64 { | |||
| 35 | NonZero, | 35 | NonZero, |
| 36 | }; | 36 | }; |
| 37 | 37 | ||
| 38 | enum class FPCompareOp : u64 { | ||
| 39 | F, | ||
| 40 | LT, | ||
| 41 | EQ, | ||
| 42 | LE, | ||
| 43 | GT, | ||
| 44 | NE, | ||
| 45 | GE, | ||
| 46 | NUM, | ||
| 47 | Nan, | ||
| 48 | LTU, | ||
| 49 | EQU, | ||
| 50 | LEU, | ||
| 51 | GTU, | ||
| 52 | NEU, | ||
| 53 | GEU, | ||
| 54 | T, | ||
| 55 | }; | ||
| 56 | |||
| 38 | class TranslatorVisitor { | 57 | class TranslatorVisitor { |
| 39 | public: | 58 | public: |
| 40 | explicit TranslatorVisitor(Environment& env_, IR::Block& block) : env{env_}, ir(block) {} | 59 | explicit TranslatorVisitor(Environment& env_, IR::Block& block) : env{env_}, ir(block) {} |