From 59cdf310bdc16d537ba5ff3813399c54abbce2b7 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 29 Oct 2022 13:45:30 -0300 Subject: SPIR-V: Fix tessellation control shader output types (#3807) * SPIR-V: Fix tessellation control shader output types * Shader cache version bump --- Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs') diff --git a/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs b/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs index 4d2fdb54..e9f8467d 100644 --- a/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs +++ b/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs @@ -37,7 +37,12 @@ namespace Ryujinx.Graphics.Shader.StructuredIr Config = config; - if (config.GpPassthrough) + if (config.Stage == ShaderStage.TessellationControl) + { + // Required to index outputs. + Info.Inputs.Add(AttributeConsts.InvocationId); + } + else if (config.GpPassthrough) { int passthroughAttributes = config.PassthroughAttributes; while (passthroughAttributes != 0) -- cgit v1.2.3