Import the base tree (MIT, see LICENSE)

This commit is contained in:
Valiantsin Dzerakh
2026-11-04 22:16:41 +03:00
committed by chrg6
commit 0478c13e45
734 changed files with 233953 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
--- a/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Declarations.cs
+++ b/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/Declarations.cs
@@ -465,10 +465,9 @@
context.Decorate(perVertexStructType, Decoration.Block);
- if (context.HostCapabilities.ReducedPrecision)
- {
- context.MemberDecorate(perVertexStructType, 0, Decoration.Invariant);
- }
+ // NX2NAVI: Maxwell computes a position identically in every shader that runs the same code (a depth pre-pass drawn
+ // again with EQUAL), so the position is always invariant, not only with the ReducedPrecision job flag.
+ context.MemberDecorate(perVertexStructType, 0, Decoration.Invariant);
context.MemberDecorate(perVertexStructType, 0, Decoration.BuiltIn, (LiteralInteger)BuiltIn.Position);
context.MemberDecorate(perVertexStructType, 1, Decoration.BuiltIn, (LiteralInteger)BuiltIn.PointSize);
@@ -566,7 +565,7 @@
context.Decorate(spvVar, Decoration.Patch);
}
- if (context.HostCapabilities.ReducedPrecision && ioVariable == IoVariable.Position)
+ if (ioVariable == IoVariable.Position)
{
context.Decorate(spvVar, Decoration.Invariant);
}