From 99f236fcf03e4304a91df70c3545b9b79ff15942 Mon Sep 17 00:00:00 2001 From: gdk Date: Tue, 26 Nov 2019 01:00:58 -0300 Subject: Simplified F2I shader instruction codegen --- Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Ryujinx.Graphics.Shader/Translation') diff --git a/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs b/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs index c55e3430..df8867e9 100644 --- a/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs +++ b/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs @@ -206,11 +206,6 @@ namespace Ryujinx.Graphics.Shader.Translation return context.Add(Instruction.FP | Instruction.Ceiling, Local(), a); } - public static Operand FPClamp(this EmitterContext context, Operand a, Operand b, Operand c) - { - return context.Add(Instruction.FP | Instruction.Clamp, Local(), a, b, c); - } - public static Operand FPCompareEqual(this EmitterContext context, Operand a, Operand b) { return context.Add(Instruction.FP | Instruction.CompareEqual, Local(), a, b); @@ -226,6 +221,11 @@ namespace Ryujinx.Graphics.Shader.Translation return context.Add(Instruction.ConvertFPToS32, Local(), a); } + public static Operand FPConvertToU32(this EmitterContext context, Operand a) + { + return context.Add(Instruction.ConvertFPToU32, Local(), a); + } + public static Operand FPCosine(this EmitterContext context, Operand a) { return context.Add(Instruction.FP | Instruction.Cosine, Local(), a); -- cgit v1.2.3