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
commit e341640c8f

View file

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