aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-10-29 13:45:30 -0300
committerGitHub <noreply@github.com>2022-10-29 13:45:30 -0300
commit59cdf310bdc16d537ba5ff3813399c54abbce2b7 (patch)
tree4cd095f5b7dc3a18f53c9c94c9001a5f3fd5c268 /Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs
parent4e34170a84fc1b2096ad4588dec9460a5f8c9870 (diff)
SPIR-V: Fix tessellation control shader output types (#3807)
* SPIR-V: Fix tessellation control shader output types * Shader cache version bump
Diffstat (limited to 'Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs')
-rw-r--r--Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs7
1 files changed, 6 insertions, 1 deletions
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)