From a1a5341bafa82d4346cb4ee61f43dcd94d53a6de Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 1 Feb 2020 20:18:58 -0300 Subject: [PATCH] Support flat interpolation qualifier on shaders (#915) --- Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs index 25bf2592..664c798b 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs @@ -100,7 +100,8 @@ namespace Ryujinx.Graphics.Shader.Instructions switch (op.Mode) { - case InterpolationMode.Pass: iq = InterpolationQualifier.NoPerspective; break; + case InterpolationMode.Constant: iq = InterpolationQualifier.Flat; break; + case InterpolationMode.Pass: iq = InterpolationQualifier.NoPerspective; break; } Operand srcA = Attribute(op.AttributeOffset, iq);