aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/Shader/ShaderDecodeOpCode.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2019-02-15 00:23:14 -0300
committerjduncanator <1518948+jduncanator@users.noreply.github.com>2019-02-15 14:23:14 +1100
commit9cbcbaa90c2af78873d145850e0676b19b2ae79e (patch)
treef1280ddc743d86c93c0000ffb82841a03e8aeda2 /Ryujinx.Graphics/Gal/Shader/ShaderDecodeOpCode.cs
parentb126ea48c63a3de8da8f3b817860c0323f2621ef (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.cs5
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);