From a7109c767bdc014327b574012794156c92174495 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 12 Oct 2021 17:35:31 -0300 Subject: Rewrite shader decoding stage (#2698) * Rewrite shader decoding stage * Fix P2R constant buffer encoding * Fix PSET/PSETP * PR feedback * Log unimplemented shader instructions * Implement NOP * Remove using * PR feedback --- .../Decoders/OpCodeAttribute.cs | 23 ---------------------- 1 file changed, 23 deletions(-) delete mode 100644 Ryujinx.Graphics.Shader/Decoders/OpCodeAttribute.cs (limited to 'Ryujinx.Graphics.Shader/Decoders/OpCodeAttribute.cs') diff --git a/Ryujinx.Graphics.Shader/Decoders/OpCodeAttribute.cs b/Ryujinx.Graphics.Shader/Decoders/OpCodeAttribute.cs deleted file mode 100644 index 0a24d4c8..00000000 --- a/Ryujinx.Graphics.Shader/Decoders/OpCodeAttribute.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Ryujinx.Graphics.Shader.Instructions; - -namespace Ryujinx.Graphics.Shader.Decoders -{ - class OpCodeAttribute : OpCodeAluReg, IOpCodeAttribute - { - public int AttributeOffset { get; } - public bool Patch { get; } - public int Count { get; } - - public bool Phys => !Patch && AttributeOffset == 0 && !Ra.IsRZ; - public bool Indexed => Phys; - - public new static OpCode Create(InstEmitter emitter, ulong address, long opCode) => new OpCodeAttribute(emitter, address, opCode); - - public OpCodeAttribute(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode) - { - AttributeOffset = opCode.Extract(20, 10); - Patch = opCode.Extract(31); - Count = opCode.Extract(47, 2) + 1; - } - } -} \ No newline at end of file -- cgit v1.2.3