Add option to enable/disable shader cache

This commit is contained in:
PabloG02
2023-01-13 16:50:43 +01:00
committed by Billy Laws
parent 8bfda0d84d
commit 8b9d6f79ab
10 changed files with 23 additions and 3 deletions

View File

@ -32,6 +32,7 @@ namespace skyline::gpu::interconnect::maxwell3d {
}
void RuntimeGraphicsPipelineStateAccessor::MarkComplete() {
ctx.gpu.graphicsPipelineCacheManager->QueueWrite(std::move(bundle));
if (ctx.gpu.graphicsPipelineCacheManager)
ctx.gpu.graphicsPipelineCacheManager->QueueWrite(std::move(bundle));
}
}

View File

@ -881,6 +881,9 @@ namespace skyline::gpu::interconnect::maxwell3d {
}
PipelineManager::PipelineManager(GPU &gpu) {
if (!gpu.graphicsPipelineCacheManager)
return;
std::ifstream stream{gpu.graphicsPipelineCacheManager->OpenReadStream()};
i64 lastKnownGoodOffset{stream.tellg()};
try {