Fix ~3500 analyser issues

See merge request ryubing/ryujinx!44
This commit is contained in:
MrKev
2025-05-30 17:08:34 -05:00
committed by LotP
parent 417df486b1
commit 361d0c5632
622 changed files with 3080 additions and 2652 deletions

View File

@@ -1,4 +1,4 @@
using Ryujinx.Graphics.Nvdec.Vp9.Types;
using Ryujinx.Graphics.Nvdec.Vp9.Types;
using System.Diagnostics;
namespace Ryujinx.Graphics.Nvdec.Vp9
@@ -61,7 +61,7 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
ctx = 1;
}
Debug.Assert(ctx >= 0 && ctx < Constants.CompInterContexts);
Debug.Assert(ctx is >= 0 and < Constants.CompInterContexts);
return ctx;
}
@@ -186,7 +186,7 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
predContext = 2;
}
Debug.Assert(predContext >= 0 && predContext < Constants.RefContexts);
Debug.Assert(predContext is >= 0 and < Constants.RefContexts);
return predContext;
}
@@ -294,7 +294,7 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
predContext = 2;
}
Debug.Assert(predContext >= 0 && predContext < Constants.RefContexts);
Debug.Assert(predContext is >= 0 and < Constants.RefContexts);
return predContext;
}
@@ -430,8 +430,8 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
predContext = 2;
}
Debug.Assert(predContext >= 0 && predContext < Constants.RefContexts);
Debug.Assert(predContext is >= 0 and < Constants.RefContexts);
return predContext;
}
}
}
}