Fix copy paste mistake that caused RZ to be ignored on the AST instruction
This commit is contained in:
parent
9f4e21369e
commit
e341640c8f
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue