From 7ce5584f9e0d86f17ea4fc781483f60cfa288340 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 7 Dec 2019 01:54:28 -0300 Subject: Support depth clip mode and disable shader fast math optimization on NVIDIA as a workaround for compiler bugs (?) --- Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Ryujinx.Graphics.Shader/CodeGen') diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs index 32c90c2d..5a84ff49 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs @@ -26,6 +26,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl context.AppendLine("#extension GL_ARB_compute_shader : enable"); } + context.AppendLine("#pragma optionNV(fastmath off)"); + context.AppendLine(); context.AppendLine($"const int {DefaultNames.UndefinedName} = 0;"); -- cgit v1.2.3