Ignore invalid registers

This commit is contained in:
ReinUsesLisp 2018-08-20 23:27:53 -03:00
parent 80c6209bf2
commit 4af52935b4
2 changed files with 7 additions and 0 deletions

View file

@ -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)

View file

@ -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)