From 7e967d796cf572377f21af3817a22755c5b01cb1 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 21 Jan 2022 12:35:21 -0300 Subject: Stop using glTransformFeedbackVaryings and use explicit layout on the shader (#3012) * Stop using glTransformFeedbackVarying and use explicit layout on the shader * This is no longer needed * Shader cache version bump * Fix gl_PerVertex output for tessellation control shaders --- Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs | 3 +++ Ryujinx.Graphics.Shader/Translation/TranslationFlags.cs | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Graphics.Shader/Translation') diff --git a/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs b/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs index 9d5a4070..21f17041 100644 --- a/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs +++ b/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs @@ -33,6 +33,8 @@ namespace Ryujinx.Graphics.Shader.Translation public TranslationOptions Options { get; } + public bool TransformFeedbackEnabled { get; } + public int Size { get; private set; } public byte ClipDistancesWritten { get; private set; } @@ -128,6 +130,7 @@ namespace Ryujinx.Graphics.Shader.Translation OmapTargets = header.OmapTargets; OmapSampleMask = header.OmapSampleMask; OmapDepth = header.OmapDepth; + TransformFeedbackEnabled = gpuAccessor.QueryTransformFeedbackEnabled(); } public int GetDepthRegister() diff --git a/Ryujinx.Graphics.Shader/Translation/TranslationFlags.cs b/Ryujinx.Graphics.Shader/Translation/TranslationFlags.cs index 9af95389..1874dec3 100644 --- a/Ryujinx.Graphics.Shader/Translation/TranslationFlags.cs +++ b/Ryujinx.Graphics.Shader/Translation/TranslationFlags.cs @@ -9,7 +9,6 @@ namespace Ryujinx.Graphics.Shader.Translation VertexA = 1 << 0, Compute = 1 << 1, - Feedback = 1 << 2, - DebugMode = 1 << 3 + DebugMode = 1 << 2 } } \ No newline at end of file -- cgit v1.2.3