diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-11-09 21:06:46 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-10 01:06:46 +0100 |
| commit | c3d62bd0783a20efb78fa0776f4c620970774cf9 (patch) | |
| tree | 9ed3aaf6e7eec9d11e43021633be29f122a1bf4a /Ryujinx.Graphics.Shader/Decoders/OpCodeAtom.cs | |
| parent | 934a78005e75653529c320cf90e78fe6536447c2 (diff) | |
Implement ATOM shader instruction (#1687)
* Implement ATOM shader instruction
* Fix reduction type decoding
Diffstat (limited to 'Ryujinx.Graphics.Shader/Decoders/OpCodeAtom.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Decoders/OpCodeAtom.cs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Ryujinx.Graphics.Shader/Decoders/OpCodeAtom.cs b/Ryujinx.Graphics.Shader/Decoders/OpCodeAtom.cs index 1bf5d0cd..006a91f3 100644 --- a/Ryujinx.Graphics.Shader/Decoders/OpCodeAtom.cs +++ b/Ryujinx.Graphics.Shader/Decoders/OpCodeAtom.cs @@ -8,10 +8,6 @@ namespace Ryujinx.Graphics.Shader.Decoders public Register Ra { get; } public Register Rb { get; } - public ReductionType Type { get; } - - public int Offset { get; } - public bool Extended { get; } public AtomicOp AtomicOp { get; } @@ -24,15 +20,6 @@ namespace Ryujinx.Graphics.Shader.Decoders Ra = new Register(opCode.Extract(8, 8), RegisterType.Gpr); Rb = new Register(opCode.Extract(20, 8), RegisterType.Gpr); - Type = (ReductionType)opCode.Extract(28, 2); - - if (Type == ReductionType.FP32FtzRn) - { - Type = ReductionType.S64; - } - - Offset = opCode.Extract(30, 22); - Extended = opCode.Extract(48); AtomicOp = (AtomicOp)opCode.Extract(52, 4); |
