Ignore invalid registers
This commit is contained in:
parent
80c6209bf2
commit
4af52935b4
2 changed files with 7 additions and 0 deletions
|
@ -76,6 +76,11 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
OperA.Pos += Index;
|
||||
OperD.Index += Index;
|
||||
|
||||
if (!OperD.IsValidRegister)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
ShaderIrNode Node = OperA;
|
||||
|
||||
if (Type < 4)
|
||||
|
|
|
@ -6,6 +6,8 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
|
||||
public bool IsConst => Index == ZRIndex;
|
||||
|
||||
public bool IsValidRegister => (Index <= ZRIndex);
|
||||
|
||||
public int Index { get; set; }
|
||||
|
||||
public ShaderIrOperGpr(int Index)
|
||||
|
|
Loading…
Add table
Reference in a new issue