diff options
author | Liam <byteslice@airmail.cc> | 2023-12-12 23:15:52 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-12-15 03:54:36 +0100 |
commit | 030e6b3980aa5ce6069041c339d49d21d68ca73b (patch) | |
tree | 428a3d3a1e322a4cfad696bdcd756dd7332acefa /src/video_core/shader_cache.cpp | |
parent | Merge pull request #12354 from liamwhite/mackage-panager (diff) | |
download | yuzu-030e6b3980aa5ce6069041c339d49d21d68ca73b.tar yuzu-030e6b3980aa5ce6069041c339d49d21d68ca73b.tar.gz yuzu-030e6b3980aa5ce6069041c339d49d21d68ca73b.tar.bz2 yuzu-030e6b3980aa5ce6069041c339d49d21d68ca73b.tar.lz yuzu-030e6b3980aa5ce6069041c339d49d21d68ca73b.tar.xz yuzu-030e6b3980aa5ce6069041c339d49d21d68ca73b.tar.zst yuzu-030e6b3980aa5ce6069041c339d49d21d68ca73b.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 e81cd031b..a109f9cbe 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, 1); + rasterizer.UpdatePagesCachedCount(addr, size, true); } 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, -1); + rasterizer.UpdatePagesCachedCount(addr, size, false); } void ShaderCache::RemoveShadersFromStorage(std::span<ShaderInfo*> removed_shaders) { |