Fix copy paste mistake that caused RZ to be ignored on the AST instruction

This commit is contained in:
gdkchan 2019-04-09 21:58:36 -03:00
parent 9f4e21369e
commit e341640c8f

View file

@ -43,13 +43,13 @@ namespace Ryujinx.Graphics.Shader.Instructions
for (int index = 0; index < op.Count; index++)
{
Register rd = new Register(op.Rd.Index + index, RegisterType.Gpr);
if (rd.IsRZ)
if (op.Rd.Index + index > RegisterConsts.RegisterZeroIndex)
{
break;
}
Register rd = new Register(op.Rd.Index + index, RegisterType.Gpr);
Operand dest = Attribute(op.AttributeOffset + index * 4);
context.Copy(dest, Register(rd));