From ed0b10c81f1e9133c8e24beb5efd824c6bce4470 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 2 Aug 2022 03:44:30 -0300 Subject: Fix geometry shader passthrough fallback being used when feature is supported (#3525) * Fix geometry shader passthrough fallback being used when feature is supported * Shader cache version bump --- Ryujinx.Graphics.Shader/Translation/EmitterContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Shader/Translation') diff --git a/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs b/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs index 51823240..e8b682d0 100644 --- a/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs +++ b/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs @@ -248,7 +248,7 @@ namespace Ryujinx.Graphics.Shader.Translation this.Copy(Attribute(index + 12), w); } - if (Config.GpPassthrough) + if (Config.GpPassthrough && !Config.GpuAccessor.QueryHostSupportsGeometryShaderPassthrough()) { int inputVertices = Config.GpuAccessor.QueryPrimitiveTopology().ToInputVertices(); -- cgit v1.2.3