mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-21 12:19:58 -04:00
Import the base tree (MIT, see LICENSE)
This commit is contained in:
25
tools/xlate/patches/0007-position-always-invariant.patch
Normal file
25
tools/xlate/patches/0007-position-always-invariant.patch
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user