diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-18 21:51:42 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-22 17:36:04 +0200 |
commit | 084ceb925acad470b69467d64e4dfbb3bd7ef3f1 (patch) | |
tree | 3e4dcc3a3671b85cb3ac5f812159974c006e3c47 /src/video_core/texture_cache/texture_cache.h | |
parent | Merge pull request #3714 from lioncash/copies (diff) | |
download | yuzu-084ceb925acad470b69467d64e4dfbb3bd7ef3f1.tar yuzu-084ceb925acad470b69467d64e4dfbb3bd7ef3f1.tar.gz yuzu-084ceb925acad470b69467d64e4dfbb3bd7ef3f1.tar.bz2 yuzu-084ceb925acad470b69467d64e4dfbb3bd7ef3f1.tar.lz yuzu-084ceb925acad470b69467d64e4dfbb3bd7ef3f1.tar.xz yuzu-084ceb925acad470b69467d64e4dfbb3bd7ef3f1.tar.zst yuzu-084ceb925acad470b69467d64e4dfbb3bd7ef3f1.zip |
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 69ca08fd1..7432691d1 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -417,7 +417,7 @@ private: **/ RecycleStrategy PickStrategy(std::vector<TSurface>& overlaps, const SurfaceParams& params, const GPUVAddr gpu_addr, const MatchTopologyResult untopological) { - if (Settings::values.use_accurate_gpu_emulation) { + if (Settings::IsGPULevelExtreme()) { return RecycleStrategy::Flush; } // 3D Textures decision @@ -461,7 +461,7 @@ private: } switch (PickStrategy(overlaps, params, gpu_addr, untopological)) { case RecycleStrategy::Ignore: { - return InitializeSurface(gpu_addr, params, Settings::values.use_accurate_gpu_emulation); + return InitializeSurface(gpu_addr, params, Settings::IsGPULevelExtreme()); } case RecycleStrategy::Flush: { std::sort(overlaps.begin(), overlaps.end(), @@ -598,7 +598,7 @@ private: if (passed_tests == 0) { return {}; // In Accurate GPU all tests should pass, else we recycle - } else if (Settings::values.use_accurate_gpu_emulation && passed_tests != overlaps.size()) { + } else if (Settings::IsGPULevelExtreme() && passed_tests != overlaps.size()) { return {}; } for (const auto& surface : overlaps) { @@ -668,7 +668,7 @@ private: for (const auto& surface : overlaps) { if (!surface->MatchTarget(params.target)) { if (overlaps.size() == 1 && surface->GetCpuAddr() == cpu_addr) { - if (Settings::values.use_accurate_gpu_emulation) { + if (Settings::IsGPULevelExtreme()) { return std::nullopt; } Unregister(surface); |