diff options
Diffstat (limited to 'Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs index 2418293d..24ba9a06 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs @@ -32,6 +32,8 @@ namespace Ryujinx.Graphics.Shader.Instructions Operand src = Attribute(op.AttributeOffset + index * 4); + context.FlagAttributeRead(src.Value); + context.Copy(Register(rd), context.LoadAttribute(src, primVertex)); } } @@ -96,6 +98,8 @@ namespace Ryujinx.Graphics.Shader.Instructions { OpCodeIpa op = (OpCodeIpa)context.CurrOp; + context.FlagAttributeRead(op.AttributeOffset); + Operand res = Attribute(op.AttributeOffset); if (op.AttributeOffset >= AttributeConsts.UserAttributeBase && |
