From 90ab28d1c6ecdcaec2d8a3df905de3c0639eb869 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 21 Sep 2020 00:45:04 -0300 Subject: [PATCH] Align register index between output targets on pixel shaders (#1559) --- Ryujinx.Graphics.Shader/Translation/EmitterContext.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs b/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs index ac7a264230..79685154d6 100644 --- a/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs +++ b/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); } } }