From 86de288142188341a98fab6d132152077b391fbd Mon Sep 17 00:00:00 2001 From: Marco Carvalho Date: Fri, 9 Jun 2023 06:23:44 -0300 Subject: Removing shift by 0 (#5249) * Integral numbers should not be shifted by zero or more than their number of bits-1 * more --- src/Ryujinx.Graphics.Gpu/Engine/GPFifo/CompressedMethod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Ryujinx.Graphics.Gpu/Engine/GPFifo/CompressedMethod.cs') diff --git a/src/Ryujinx.Graphics.Gpu/Engine/GPFifo/CompressedMethod.cs b/src/Ryujinx.Graphics.Gpu/Engine/GPFifo/CompressedMethod.cs index 458dc8f6..d082ee9d 100644 --- a/src/Ryujinx.Graphics.Gpu/Engine/GPFifo/CompressedMethod.cs +++ b/src/Ryujinx.Graphics.Gpu/Engine/GPFifo/CompressedMethod.cs @@ -29,7 +29,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.GPFifo public uint Method; #pragma warning restore CS0649 public int MethodAddressOld => (int)((Method >> 2) & 0x7FF); - public int MethodAddress => (int)((Method >> 0) & 0xFFF); + public int MethodAddress => (int)(Method & 0xFFF); public int SubdeviceMask => (int)((Method >> 4) & 0xFFF); public int MethodSubchannel => (int)((Method >> 13) & 0x7); public TertOp TertOp => (TertOp)((Method >> 16) & 0x3); -- cgit v1.2.3