2018-08-16 23:47:36 +00:00
|
|
|
|
using static Ryujinx.Graphics.Gal.Shader.ShaderDecodeHelper;
|
2018-07-19 05:33:27 +00:00
|
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gal.Shader
|
|
|
|
|
{
|
|
|
|
|
static partial class ShaderDecode
|
|
|
|
|
{
|
2018-08-31 16:14:04 +00:00
|
|
|
|
public static void Out_R(ShaderIrBlock Block, long OpCode, long Position)
|
2018-07-19 05:33:27 +00:00
|
|
|
|
{
|
|
|
|
|
//TODO: Those registers have to be used for something
|
2018-09-08 17:51:50 +00:00
|
|
|
|
ShaderIrOperGpr Gpr0 = OpCode.Gpr0();
|
|
|
|
|
ShaderIrOperGpr Gpr8 = OpCode.Gpr8();
|
|
|
|
|
ShaderIrOperGpr Gpr20 = OpCode.Gpr20();
|
2018-07-19 05:33:27 +00:00
|
|
|
|
|
2018-09-08 17:51:50 +00:00
|
|
|
|
int Type = OpCode.Read(39, 3);
|
2018-07-19 05:33:27 +00:00
|
|
|
|
|
|
|
|
|
if ((Type & 1) != 0)
|
|
|
|
|
{
|
2018-09-08 17:51:50 +00:00
|
|
|
|
Block.AddNode(OpCode.PredNode(new ShaderIrOp(ShaderIrInst.Emit)));
|
2018-07-19 05:33:27 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((Type & 2) != 0)
|
|
|
|
|
{
|
2018-09-08 17:51:50 +00:00
|
|
|
|
Block.AddNode(OpCode.PredNode(new ShaderIrOp(ShaderIrInst.Cut)));
|
2018-07-19 05:33:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|