diff options
| author | 2022-03-17 22:09:31 -0400 | |
|---|---|---|
| committer | 2022-03-17 22:09:31 -0400 | |
| commit | 6fa17f33727526fbfcf83120bc6e30cbcc25163a (patch) | |
| tree | 8c5a08f1544ab4ebb00951f116cb00cee9421ce6 /src | |
| parent | Merge pull request #8024 from liamwhite/const-indexing (diff) | |
| download | yuzu-6fa17f33727526fbfcf83120bc6e30cbcc25163a.tar.gz yuzu-6fa17f33727526fbfcf83120bc6e30cbcc25163a.tar.xz yuzu-6fa17f33727526fbfcf83120bc6e30cbcc25163a.zip | |
shader_recompiler/EXIT: increment output register on failed enable test
Diffstat (limited to '')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp index c2443c886..1abe0dda6 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp | |||
| @@ -15,6 +15,7 @@ void ExitFragment(TranslatorVisitor& v) { | |||
| 15 | const std::array<bool, 4> mask{sph.ps.EnabledOutputComponents(render_target)}; | 15 | const std::array<bool, 4> mask{sph.ps.EnabledOutputComponents(render_target)}; |
| 16 | for (u32 component = 0; component < 4; ++component) { | 16 | for (u32 component = 0; component < 4; ++component) { |
| 17 | if (!mask[component]) { | 17 | if (!mask[component]) { |
| 18 | ++src_reg; | ||
| 18 | continue; | 19 | continue; |
| 19 | } | 20 | } |
| 20 | v.ir.SetFragColor(render_target, component, v.F(src_reg)); | 21 | v.ir.SetFragColor(render_target, component, v.F(src_reg)); |