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.Common;
using Ryujinx.Graphics.Nvdec.Vp9.Common;
using Ryujinx.Graphics.Nvdec.Vp9.Types;
using System;
using static Ryujinx.Graphics.Nvdec.Vp9.Dsp.InvTxfm;
@@ -11,7 +11,7 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
private delegate void HighbdTransform1D(ReadOnlySpan<int> input, Span<int> output, int bd);
private struct Transform2D
private readonly struct Transform2D
{
public readonly Transform1D Cols; // Vertical and horizontal
public readonly Transform1D Rows; // Vertical and horizontal
@@ -23,7 +23,7 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
}
}
private struct HighbdTransform2D
private readonly struct HighbdTransform2D
{
public readonly HighbdTransform1D Cols; // Vertical and horizontal
public readonly HighbdTransform1D Rows; // Vertical and horizontal
@@ -54,8 +54,8 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
for (int i = 0; i < 4; ++i)
{
_iht4[txType].Rows(input, outptr);
input = input.Slice(4);
outptr = outptr.Slice(4);
input = input[4..];
outptr = outptr[4..];
}
// Inverse transform column vectors
@@ -95,8 +95,8 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
for (int i = 0; i < 8; ++i)
{
ht.Rows(input, outptr);
input = input.Slice(8);
outptr = outptr.Slice(8);
input = input[8..];
outptr = outptr[8..];
}
// Inverse transform column vectors
@@ -136,8 +136,8 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
for (int i = 0; i < 16; ++i)
{
ht.Rows(input, outptr);
input = input.Slice(16);
outptr = outptr.Slice(16);
input = input[16..];
outptr = outptr[16..];
}
// Columns
@@ -305,8 +305,8 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
for (int i = 0; i < 4; ++i)
{
_highbdIht4[txType].Rows(input, outptr, bd);
input = input.Slice(4);
outptr = outptr.Slice(4);
input = input[4..];
outptr = outptr[4..];
}
// Inverse transform column vectors.
@@ -346,8 +346,8 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
for (int i = 0; i < 8; ++i)
{
ht.Rows(input, outptr, bd);
input = input.Slice(8);
outptr = output.Slice(8);
input = input[8..];
outptr = output[8..];
}
// Inverse transform column vectors.
@@ -388,8 +388,8 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
for (int i = 0; i < 16; ++i)
{
ht.Rows(input, outptr, bd);
input = input.Slice(16);
outptr = output.Slice(16);
input = input[16..];
outptr = output[16..];
}
// Columns
@@ -540,4 +540,4 @@ namespace Ryujinx.Graphics.Nvdec.Vp9
}
}
}
}
}