diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2019-02-15 00:23:14 -0300 |
|---|---|---|
| committer | jduncanator <1518948+jduncanator@users.noreply.github.com> | 2019-02-15 14:23:14 +1100 |
| commit | 9cbcbaa90c2af78873d145850e0676b19b2ae79e (patch) | |
| tree | f1280ddc743d86c93c0000ffb82841a03e8aeda2 /Ryujinx.Graphics/Gal/Shader/ShaderDecodeOpCode.cs | |
| parent | b126ea48c63a3de8da8f3b817860c0323f2621ef (diff) | |
Fix XMAD shader instruction, gl_FrontFacing and enable face culling (#583)
* Fix XMAD shader instruction implementation
* Fix gl_FrontFacing constant value
* Enable face culling again
* Fix typo
Diffstat (limited to 'Ryujinx.Graphics/Gal/Shader/ShaderDecodeOpCode.cs')
| -rw-r--r-- | Ryujinx.Graphics/Gal/Shader/ShaderDecodeOpCode.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gal/Shader/ShaderDecodeOpCode.cs b/Ryujinx.Graphics/Gal/Shader/ShaderDecodeOpCode.cs index 6531138e..f0f92148 100644 --- a/Ryujinx.Graphics/Gal/Shader/ShaderDecodeOpCode.cs +++ b/Ryujinx.Graphics/Gal/Shader/ShaderDecodeOpCode.cs @@ -138,6 +138,11 @@ namespace Ryujinx.Graphics.Gal.Shader return new ShaderIrOperImmf(BitConverter.Int32BitsToSingle((int)(OpCode >> 20))); } + private static ShaderIrOperImm ImmU16_20(this long OpCode) + { + return new ShaderIrOperImm(OpCode.Read(20, 0xffff)); + } + private static ShaderIrOperImm Imm19_20(this long OpCode) { int Value = OpCode.Read(20, 0x7ffff); |
