report pipeline compilation count

This commit is contained in:
Samuliak 2024-10-15 18:32:12 +02:00
parent 944cc8be7d
commit 79f5586c6c
No known key found for this signature in database
3 changed files with 34 additions and 23 deletions

View file

@ -48,7 +48,7 @@ MTL::RenderPipelineState* MetalPipelineCache::GetRenderPipelineState(const Latte
MetalPipelineCompiler compiler(m_mtlr);
compiler.InitFromState(fetchShader, vertexShader, geometryShader, pixelShader, lastUsedAttachmentsInfo, activeAttachmentsInfo, lcr);
pipeline = compiler.Compile(false, true);
pipeline = compiler.Compile(false, true, true);
AddCurrentStateToCache(hash);
@ -363,7 +363,7 @@ void MetalPipelineCache::LoadPipelineFromCache(std::span<uint8> fileData)
// s_spinlockSharedInternal.unlock();
// return;
//}
pipeline = pp.Compile(true, true);
pipeline = pp.Compile(true, true, false);
// destroy pp early
}