From f43dd080641b3c2508e35bc7651fb0adcb282a2e Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 29 May 2018 20:37:10 -0300 Subject: Added support for more shader instructions and texture formats, fix swapped channels in RGB565 and RGBA5551? texture formats, allow zero values on blending registers, initial work to build CFG on the shader decoder, update the BRA instruction to work with it (WIP) --- Ryujinx.Graphics/Gal/Shader/ShaderOpCodeTable.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Ryujinx.Graphics/Gal/Shader/ShaderOpCodeTable.cs') diff --git a/Ryujinx.Graphics/Gal/Shader/ShaderOpCodeTable.cs b/Ryujinx.Graphics/Gal/Shader/ShaderOpCodeTable.cs index acfcc147..51197fd4 100644 --- a/Ryujinx.Graphics/Gal/Shader/ShaderOpCodeTable.cs +++ b/Ryujinx.Graphics/Gal/Shader/ShaderOpCodeTable.cs @@ -63,6 +63,9 @@ namespace Ryujinx.Graphics.Gal.Shader Set("0100110011100x", ShaderDecode.I2i_C); Set("0011100x11100x", ShaderDecode.I2i_I); Set("0101110011100x", ShaderDecode.I2i_R); + Set("0100110000100x", ShaderDecode.Imnmx_C); + Set("0011100x00100x", ShaderDecode.Imnmx_I); + Set("0101110000100x", ShaderDecode.Imnmx_R); Set("11100000xxxxxx", ShaderDecode.Ipa); Set("0100110000011x", ShaderDecode.Iscadd_C); Set("0011100x00011x", ShaderDecode.Iscadd_I); @@ -89,6 +92,10 @@ namespace Ryujinx.Graphics.Gal.Shader Set("1101111101001x", ShaderDecode.Texq); Set("1101100xxxxxxx", ShaderDecode.Texs); Set("1101101xxxxxxx", ShaderDecode.Tlds); + Set("0100111xxxxxxx", ShaderDecode.Xmad_CR); + Set("0011011x00xxxx", ShaderDecode.Xmad_I); + Set("010100010xxxxx", ShaderDecode.Xmad_RC); + Set("0101101100xxxx", ShaderDecode.Xmad_RR); #endregion } -- cgit v1.2.3