From e93ca84b14cc325364f1ccc45a6e8622978e959d Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 2 Apr 2020 21:20:47 -0300 Subject: Better IPA shader instruction implementation (#1082) * Fix varying interpolation on fragment shader * Some nits * Alignment --- Ryujinx.Graphics.Shader/IntermediateRepresentation/Operand.cs | 9 +++------ .../IntermediateRepresentation/OperandHelper.cs | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'Ryujinx.Graphics.Shader/IntermediateRepresentation') diff --git a/Ryujinx.Graphics.Shader/IntermediateRepresentation/Operand.cs b/Ryujinx.Graphics.Shader/IntermediateRepresentation/Operand.cs index 567277a7..1df88a3d 100644 --- a/Ryujinx.Graphics.Shader/IntermediateRepresentation/Operand.cs +++ b/Ryujinx.Graphics.Shader/IntermediateRepresentation/Operand.cs @@ -14,8 +14,6 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation public int Value { get; } - public InterpolationQualifier Interpolation { get; } - public INode AsgOp { get; set; } public HashSet UseOps { get; } @@ -30,11 +28,10 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation Type = type; } - public Operand(OperandType type, int value, InterpolationQualifier iq = InterpolationQualifier.None) : this() + public Operand(OperandType type, int value) : this() { - Type = type; - Value = value; - Interpolation = iq; + Type = type; + Value = value; } public Operand(Register reg) : this() diff --git a/Ryujinx.Graphics.Shader/IntermediateRepresentation/OperandHelper.cs b/Ryujinx.Graphics.Shader/IntermediateRepresentation/OperandHelper.cs index 45c9ba1e..6765f8a4 100644 --- a/Ryujinx.Graphics.Shader/IntermediateRepresentation/OperandHelper.cs +++ b/Ryujinx.Graphics.Shader/IntermediateRepresentation/OperandHelper.cs @@ -5,9 +5,9 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation { static class OperandHelper { - public static Operand Attribute(int value, InterpolationQualifier iq = InterpolationQualifier.None) + public static Operand Attribute(int value) { - return new Operand(OperandType.Attribute, value, iq); + return new Operand(OperandType.Attribute, value); } public static Operand Cbuf(int slot, int offset) -- cgit v1.2.3