aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Decoders/OpCodeAttribute.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2021-10-12 17:35:31 -0300
committerGitHub <noreply@github.com>2021-10-12 22:35:31 +0200
commita7109c767bdc014327b574012794156c92174495 (patch)
treed7d7db6eaa63d4e3e0396a3182d0267b6ad31dd7 /Ryujinx.Graphics.Shader/Decoders/OpCodeAttribute.cs
parent0510fde25ae66ec0b55091746a52931248d75b89 (diff)
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
Diffstat (limited to 'Ryujinx.Graphics.Shader/Decoders/OpCodeAttribute.cs')
-rw-r--r--Ryujinx.Graphics.Shader/Decoders/OpCodeAttribute.cs23
1 files changed, 0 insertions, 23 deletions
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