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++)
|
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));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue