use depth mask when writing to depth

This commit is contained in:
Samuliak 2025-01-17 14:51:25 +01:00
parent 21e7466670
commit 2a218d418f
No known key found for this signature in database
5 changed files with 17 additions and 8 deletions

View file

@ -678,6 +678,13 @@ uint64 LatteSHRC_CalcPSAuxHash(LatteDecompilerShader* pixelShader, uint32* conte
auxHash = std::rotl<uint64>(auxHash, 7);
auxHash += (uint64)dataType;
}
bool hasDepthBuffer = LatteMRT::GetActiveDepthBufferMask(LatteGPUState.contextNew);
if (hasDepthBuffer)
{
auxHash = std::rotl<uint64>(auxHash, 5);
auxHash += 13u;
}
}
#endif