summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-03-18 03:09:31 +0100
committerLiam <byteslice@airmail.cc>2022-03-18 03:09:31 +0100
commit6fa17f33727526fbfcf83120bc6e30cbcc25163a (patch)
tree8c5a08f1544ab4ebb00951f116cb00cee9421ce6
parentMerge pull request #8024 from liamwhite/const-indexing (diff)
downloadyuzu-6fa17f33727526fbfcf83120bc6e30cbcc25163a.tar
yuzu-6fa17f33727526fbfcf83120bc6e30cbcc25163a.tar.gz
yuzu-6fa17f33727526fbfcf83120bc6e30cbcc25163a.tar.bz2
yuzu-6fa17f33727526fbfcf83120bc6e30cbcc25163a.tar.lz
yuzu-6fa17f33727526fbfcf83120bc6e30cbcc25163a.tar.xz
yuzu-6fa17f33727526fbfcf83120bc6e30cbcc25163a.tar.zst
yuzu-6fa17f33727526fbfcf83120bc6e30cbcc25163a.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp1
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) {
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));