diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-16 14:51:37 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-22 17:36:06 +0200 |
commit | da8f17715dbdc7eec92f5f0c11c968a51b86cab4 (patch) | |
tree | a1604f3cf9abe9128d26834f9c68161ecab6e204 /src/video_core/texture_cache | |
parent | Texture Cache: Implement OnCPUWrite and SyncGuestHost (diff) | |
download | yuzu-da8f17715dbdc7eec92f5f0c11c968a51b86cab4.tar yuzu-da8f17715dbdc7eec92f5f0c11c968a51b86cab4.tar.gz yuzu-da8f17715dbdc7eec92f5f0c11c968a51b86cab4.tar.bz2 yuzu-da8f17715dbdc7eec92f5f0c11c968a51b86cab4.tar.lz yuzu-da8f17715dbdc7eec92f5f0c11c968a51b86cab4.tar.xz yuzu-da8f17715dbdc7eec92f5f0c11c968a51b86cab4.tar.zst yuzu-da8f17715dbdc7eec92f5f0c11c968a51b86cab4.zip |
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 441fda53d..c23b9f9b9 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -63,7 +63,7 @@ public: } } - void OnCPUWrite(CacheAddr addr, std::size_t size) { + void OnCPUWrite(VAddr addr, std::size_t size) { std::lock_guard lock{mutex}; for (const auto& surface : GetSurfacesInRegion(addr, size)) { @@ -549,7 +549,7 @@ private: } const auto& final_params = new_surface->GetSurfaceParams(); if (cr_params.type != final_params.type) { - if (Settings::values.use_accurate_gpu_emulation) { + if (Settings::IsGPULevelExtreme()) { BufferCopy(current_surface, new_surface); } } else { |