diff options
author | Marco Carvalho <marcolucio27@gmail.com> | 2023-06-09 06:23:44 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 11:23:44 +0200 |
commit | 86de288142188341a98fab6d132152077b391fbd (patch) | |
tree | f3f14fbcbe4013ce0cbf919c90df13ef12404062 /src/Ryujinx.Graphics.Gpu/Engine/GPFifo/CompressedMethod.cs | |
parent | f35aa8e9d6cbef59e287fc338932e6d4a78cfc0f (diff) |
Removing shift by 0 (#5249)1.1.875
* Integral numbers should not be shifted by zero or more than their number of bits-1
* more
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Engine/GPFifo/CompressedMethod.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Gpu/Engine/GPFifo/CompressedMethod.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |