diff options
| author | 2022-03-18 09:26:25 -0400 | |
|---|---|---|
| committer | 2022-03-18 09:26:25 -0400 | |
| commit | d400b618a76ab0b08adfcb808ca8a8e336e1d573 (patch) | |
| tree | 495f1f53bd24b2190d0a5c23d9ecafd4f2d38985 /src/shader_recompiler/frontend/maxwell/translate/impl | |
| parent | shader_recompiler/EXIT: increment output register on failed enable test (diff) | |
| download | yuzu-d400b618a76ab0b08adfcb808ca8a8e336e1d573.tar.gz yuzu-d400b618a76ab0b08adfcb808ca8a8e336e1d573.tar.xz yuzu-d400b618a76ab0b08adfcb808ca8a8e336e1d573.zip | |
shader_recompiler/EXIT: skip render targets with no outputs
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate/impl')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp | 3 |
1 files changed, 3 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 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) { | |||
| 12 | const ProgramHeader sph{v.env.SPH()}; | 12 | const ProgramHeader sph{v.env.SPH()}; |
| 13 | IR::Reg src_reg{IR::Reg::R0}; | 13 | IR::Reg src_reg{IR::Reg::R0}; |
| 14 | for (u32 render_target = 0; render_target < 8; ++render_target) { | 14 | for (u32 render_target = 0; render_target < 8; ++render_target) { |
| 15 | if (!sph.ps.HasOutputComponents(render_target)) { | ||
| 16 | continue; | ||
| 17 | } | ||
| 15 | const std::array<bool, 4> mask{sph.ps.EnabledOutputComponents(render_target)}; | 18 | const std::array<bool, 4> mask{sph.ps.EnabledOutputComponents(render_target)}; |
| 16 | for (u32 component = 0; component < 4; ++component) { | 19 | for (u32 component = 0; component < 4; ++component) { |
| 17 | if (!mask[component]) { | 20 | if (!mask[component]) { |