From 6fa17f33727526fbfcf83120bc6e30cbcc25163a Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 17 Mar 2022 22:09:31 -0400 Subject: [PATCH] shader_recompiler/EXIT: increment output register on failed enable test --- .../frontend/maxwell/translate/impl/exit_program.cpp | 1 + 1 file changed, 1 insertion(+) 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 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));