mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-23 16:37:02 +00:00
only add pipeline to cache if compilation was attempted
This commit is contained in:
parent
15eb6bb37f
commit
295a6ed9fd
3 changed files with 13 additions and 5 deletions
|
|
@ -332,7 +332,7 @@ void MetalPipelineCompiler::InitFromState(const LatteFetchShader* fetchShader, c
|
|||
InitFromStateRender(fetchShader, vertexShader, lastUsedAttachmentsInfo, activeAttachmentsInfo, lcr, fbosMatch);
|
||||
}
|
||||
|
||||
MTL::RenderPipelineState* MetalPipelineCompiler::Compile(bool forceCompile, bool isRenderThread, bool showInOverlay)
|
||||
MTL::RenderPipelineState* MetalPipelineCompiler::Compile(bool forceCompile, bool isRenderThread, bool showInOverlay, bool& attemptedCompilation)
|
||||
{
|
||||
if (forceCompile)
|
||||
{
|
||||
|
|
@ -408,6 +408,9 @@ MTL::RenderPipelineState* MetalPipelineCompiler::Compile(bool forceCompile, bool
|
|||
g_compiling_pipelines++;
|
||||
}
|
||||
|
||||
// Inform the pipeline cache that compilation was at least attempted
|
||||
attemptedCompilation = true;
|
||||
|
||||
return pipeline;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue