diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-12-18 00:59:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 00:59:49 +0100 |
commit | 65e646eeba53fe1067b7d69044ddabaee18d868f (patch) | |
tree | 9cd2c5d264e623060186bd51e9c07433e9629234 /src/video_core/shader_cache.cpp | |
parent | Merge pull request #12378 from liamwhite/offsetof (diff) | |
download | yuzu-65e646eeba53fe1067b7d69044ddabaee18d868f.tar yuzu-65e646eeba53fe1067b7d69044ddabaee18d868f.tar.gz yuzu-65e646eeba53fe1067b7d69044ddabaee18d868f.tar.bz2 yuzu-65e646eeba53fe1067b7d69044ddabaee18d868f.tar.lz yuzu-65e646eeba53fe1067b7d69044ddabaee18d868f.tar.xz yuzu-65e646eeba53fe1067b7d69044ddabaee18d868f.tar.zst yuzu-65e646eeba53fe1067b7d69044ddabaee18d868f.zip |
Diffstat (limited to '')
-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) { |