diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-01-18 20:09:46 -0300 |
|---|---|---|
| committer | Thog <me@thog.eu> | 2020-01-19 00:09:46 +0100 |
| commit | 81cca88bcdadf7b565010c22f347460002aa3f0b (patch) | |
| tree | e1cb5ee02420f5d26ac6cf3104eb705cf8d68a52 | |
| parent | 90b475908587d6c1520b1db88542907a37429140 (diff) | |
Fix shader output color buffer index when non-sequential render targets are used (#895)
| -rw-r--r-- | Ryujinx.Graphics.Shader/Translation/EmitterContext.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs b/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs index fbe19765..7111196b 100644 --- a/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs +++ b/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs @@ -82,7 +82,7 @@ namespace Ryujinx.Graphics.Shader.Translation { if (target.ComponentEnabled(component)) { - Operand dest = Attribute(AttributeConsts.FragmentOutputColorBase + regIndex * 4); + Operand dest = Attribute(AttributeConsts.FragmentOutputColorBase + attachment * 16 + component * 4); Operand src = Register(regIndex, RegisterType.Gpr); |
