diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-09-14 14:53:53 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 14:53:53 -0300 |
commit | a745913329c4f4a135b276212f172578f08bc718 (patch) | |
tree | 5e526aa603434d11974978ff8220427480ffeecc /src | |
parent | e6700b314f1384f015666767baf9ea1d8411e330 (diff) |
Fix gl_Layer to geometry shader change not writing gl_Layer (#5682)1.1.1013
* Fix gl_Layer to geometry shader change not writing gl_Layer
* Shader cache version bump
Diffstat (limited to 'src')
-rw-r--r-- | src/Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheHostStorage.cs | 2 | ||||
-rw-r--r-- | src/Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheHostStorage.cs b/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheHostStorage.cs index 4b99bb09..b46ceb4f 100644 --- a/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheHostStorage.cs +++ b/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheHostStorage.cs @@ -22,7 +22,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.DiskCache private const ushort FileFormatVersionMajor = 1; private const ushort FileFormatVersionMinor = 2; private const uint FileFormatVersionPacked = ((uint)FileFormatVersionMajor << 16) | FileFormatVersionMinor; - private const uint CodeGenVersion = 5668; + private const uint CodeGenVersion = 5682; private const string SharedTocFileName = "shared.toc"; private const string SharedDataFileName = "shared.data"; diff --git a/src/Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs b/src/Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs index f1226ae6..3feb881a 100644 --- a/src/Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs +++ b/src/Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs @@ -576,6 +576,11 @@ namespace Ryujinx.Graphics.Shader.Translation int outputAttributesMask = AttributeUsage.UsedOutputAttributes; int layerOutputAttr = LayerOutputAttribute; + if (LayerOutputWritten) + { + outputAttributesMask |= 1 << ((layerOutputAttr - AttributeConsts.UserAttributeBase) / 16); + } + OutputTopology outputTopology; int maxOutputVertices; |