From f861f0bca2767f74478bc444a7a057d05cc96638 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 11 Feb 2022 15:52:20 -0300 Subject: [PATCH] Fix missing geometry shader passthrough inputs (#3106) * Fix missing geometry shader passthrough inputs * Shader cache version bump --- Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs | 2 +- Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs index 110115e768..f1e9f383db 100644 --- a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs +++ b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs @@ -40,7 +40,7 @@ namespace Ryujinx.Graphics.Gpu.Shader /// /// Version of the codegen (to be changed when codegen or guest format change). /// - private const ulong ShaderCodeGenVersion = 3012; + private const ulong ShaderCodeGenVersion = 3106; // Progress reporting helpers private volatile int _shaderCount; diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs index 55d5551ced..c955a6161f 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs @@ -490,7 +490,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl } else { - int usedAttributes = context.Config.UsedInputAttributes; + int usedAttributes = context.Config.UsedInputAttributes | context.Config.PassthroughAttributes; while (usedAttributes != 0) { int index = BitOperations.TrailingZeroCount(usedAttributes);