瀏覽代碼

Align register index between output targets on pixel shaders (#1559)

gdkchan 5 年之前
父節點
當前提交
90ab28d1c6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Ryujinx.Graphics.Shader/Translation/EmitterContext.cs

+ 3 - 0
Ryujinx.Graphics.Shader/Translation/EmitterContext.cs

@@ -1,3 +1,4 @@
+using Ryujinx.Common;
 using Ryujinx.Graphics.Shader.Decoders;
 using Ryujinx.Graphics.Shader.IntermediateRepresentation;
 using System.Collections.Generic;
@@ -127,6 +128,8 @@ namespace Ryujinx.Graphics.Shader.Translation
 
                         regIndex++;
                     }
+
+                    regIndex = BitUtils.AlignUp(regIndex, 4);
                 }
             }
         }