latte: isolate Metal-specific hashes

This commit is contained in:
Samuliak 2025-05-19 20:22:45 +02:00
parent 4ec2638395
commit feba1aa7ba
No known key found for this signature in database
3 changed files with 15 additions and 12 deletions

View file

@ -403,7 +403,8 @@ void LatteDecompiler_analyzeExport(LatteDecompilerShaderContext* shaderContext,
}
else if (cfInstruction->exportType == 0 && cfInstruction->exportArrayBase == 61)
{
if (LatteMRT::GetActiveDepthBufferMask(*shaderContext->contextRegistersNew))
// Only check for depth buffer mask on Metal, as its not in the PS hash on other backends
if (g_renderer->GetType() != RendererAPI::Metal || LatteMRT::GetActiveDepthBufferMask(*shaderContext->contextRegistersNew))
shader->depthMask = true;
}
else