diff options
author | Fernando S <fsahmkow27@gmail.com> | 2023-12-19 16:14:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 16:14:09 +0100 |
commit | 97ad3e75304fdf604e7619986388df9d659c3e52 (patch) | |
tree | ea5ca8448da392fc0a66d5019a694b5bff3a2013 /src/video_core/shader_cache.cpp | |
parent | Merge pull request #12304 from liamwhite/flinger-wtf (diff) | |
parent | Revert "video_core: use interval map for page count tracking" (diff) | |
download | yuzu-97ad3e75304fdf604e7619986388df9d659c3e52.tar yuzu-97ad3e75304fdf604e7619986388df9d659c3e52.tar.gz yuzu-97ad3e75304fdf604e7619986388df9d659c3e52.tar.bz2 yuzu-97ad3e75304fdf604e7619986388df9d659c3e52.tar.lz yuzu-97ad3e75304fdf604e7619986388df9d659c3e52.tar.xz yuzu-97ad3e75304fdf604e7619986388df9d659c3e52.tar.zst yuzu-97ad3e75304fdf604e7619986388df9d659c3e52.zip |
Diffstat (limited to 'src/video_core/shader_cache.cpp')
-rw-r--r-- | src/video_core/shader_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader_cache.cpp b/src/video_core/shader_cache.cpp index a109f9cbe..e81cd031b 100644 --- a/src/video_core/shader_cache.cpp +++ b/src/video_core/shader_cache.cpp @@ -132,7 +132,7 @@ void ShaderCache::Register(std::unique_ptr<ShaderInfo> data, VAddr addr, size_t storage.push_back(std::move(data)); - rasterizer.UpdatePagesCachedCount(addr, size, true); + rasterizer.UpdatePagesCachedCount(addr, size, 1); } void ShaderCache::InvalidatePagesInRegion(VAddr addr, size_t size) { @@ -209,7 +209,7 @@ void ShaderCache::UnmarkMemory(Entry* entry) { const VAddr addr = entry->addr_start; const size_t size = entry->addr_end - addr; - rasterizer.UpdatePagesCachedCount(addr, size, false); + rasterizer.UpdatePagesCachedCount(addr, size, -1); } void ShaderCache::RemoveShadersFromStorage(std::span<ShaderInfo*> removed_shaders) { |