From eafee34feebd432151809df402f3f696e4d93d08 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 18 Nov 2020 15:28:40 -0300 Subject: Improvements with new .NET 5 functions or bugfixes (#1714) * Improvements with new .NET 5 functions or bugfixes * This no longer needs to be unsafe --- Ryujinx.Graphics.Nvdec.Vp9/Common/BitUtils.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Ryujinx.Graphics.Nvdec.Vp9/Common/BitUtils.cs') diff --git a/Ryujinx.Graphics.Nvdec.Vp9/Common/BitUtils.cs b/Ryujinx.Graphics.Nvdec.Vp9/Common/BitUtils.cs index a7c6d148..641188f8 100644 --- a/Ryujinx.Graphics.Nvdec.Vp9/Common/BitUtils.cs +++ b/Ryujinx.Graphics.Nvdec.Vp9/Common/BitUtils.cs @@ -7,8 +7,7 @@ namespace Ryujinx.Graphics.Nvdec.Vp9.Common { internal static class BitUtils { - // FIXME: Enable inlining here after AVX2 gather bug is fixed. - // [MethodImpl(MethodImplOptions.AggressiveInlining)] + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static byte ClipPixel(int val) { return (byte)((val > 255) ? 255 : (val < 0) ? 0 : val); -- cgit v1.2.3