From 9cbcbaa90c2af78873d145850e0676b19b2ae79e Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 15 Feb 2019 00:23:14 -0300 Subject: 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 --- Ryujinx.Graphics/Gal/Shader/ShaderDecodeOpCode.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Ryujinx.Graphics/Gal/Shader/ShaderDecodeOpCode.cs') 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); -- cgit v1.2.3