فهرست منبع

shader_recompiler/EXIT: increment output register on failed enable test

Liam 4 سال پیش
والد
کامیت
6fa17f3372
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/shader_recompiler/frontend/maxwell/translate/impl/exit_program.cpp

+ 1 - 0
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));