diff options
author | Liam <byteslice@airmail.cc> | 2022-03-17 22:09:31 -0400 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-03-17 22:09:31 -0400 |
commit | 6fa17f33727526fbfcf83120bc6e30cbcc25163a (patch) | |
tree | 8c5a08f1544ab4ebb00951f116cb00cee9421ce6 /src/shader_recompiler/frontend/maxwell | |
parent | cb86e7941b87c28491114c80cf2cd3cafd316c72 (diff) |
shader_recompiler/EXIT: increment output register on failed enable test
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell')
-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 c2443c886f..1abe0dda6e 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) { const std::array<bool, 4> mask{sph.ps.EnabledOutputComponents(render_target)}; for (u32 component = 0; component < 4; ++component) { if (!mask[component]) { + ++src_reg; continue; } v.ir.SetFragColor(render_target, component, v.F(src_reg)); |