From d400b618a76ab0b08adfcb808ca8a8e336e1d573 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 18 Mar 2022 09:26:25 -0400 Subject: shader_recompiler/EXIT: skip render targets with no outputs --- src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shader_recompiler/frontend/maxwell') 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 1abe0dda6..537b5bde2 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp @@ -12,6 +12,9 @@ void ExitFragment(TranslatorVisitor& v) { const ProgramHeader sph{v.env.SPH()}; IR::Reg src_reg{IR::Reg::R0}; for (u32 render_target = 0; render_target < 8; ++render_target) { + if (!sph.ps.HasOutputComponents(render_target)) { + continue; + } const std::array mask{sph.ps.EnabledOutputComponents(render_target)}; for (u32 component = 0; component < 4; ++component) { if (!mask[component]) { -- cgit v1.2.3