Fix shader RegisterUsage pass only taking first operation dest into account
This commit is contained in:
parent
6ce49a2dc7
commit
70c620f733
1 changed files with 7 additions and 2 deletions
|
@ -155,9 +155,14 @@ namespace Ryujinx.Graphics.Shader.Translation
|
||||||
localInputs[block.Index] |= GetMask(register) & ~localOutputs[block.Index];
|
localInputs[block.Index] |= GetMask(register) & ~localOutputs[block.Index];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (operation.Dest != null && operation.Dest.Type == OperandType.Register)
|
for (int dstIndex = 0; dstIndex < operation.DestsCount; dstIndex++)
|
||||||
{
|
{
|
||||||
localOutputs[block.Index] |= GetMask(operation.Dest.GetRegister());
|
Operand dest = operation.GetDest(dstIndex);
|
||||||
|
|
||||||
|
if (dest != null && dest.Type == OperandType.Register)
|
||||||
|
{
|
||||||
|
localOutputs[block.Index] |= GetMask(dest.GetRegister());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue