diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-20 18:18:54 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-08-21 18:14:25 +0200 |
commit | de8ff8a1c629b97be98267e9866ce10b63ad12ad (patch) | |
tree | c2cd508853a27d715d209b105680e19475b8f6a1 /src/video_core | |
parent | Buffer_Cache: Optimize and track written areas. (diff) | |
download | yuzu-de8ff8a1c629b97be98267e9866ce10b63ad12ad.tar yuzu-de8ff8a1c629b97be98267e9866ce10b63ad12ad.tar.gz yuzu-de8ff8a1c629b97be98267e9866ce10b63ad12ad.tar.bz2 yuzu-de8ff8a1c629b97be98267e9866ce10b63ad12ad.tar.lz yuzu-de8ff8a1c629b97be98267e9866ce10b63ad12ad.tar.xz yuzu-de8ff8a1c629b97be98267e9866ce10b63ad12ad.tar.zst yuzu-de8ff8a1c629b97be98267e9866ce10b63ad12ad.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index 4ea43a6c4..03b288233 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -60,6 +60,10 @@ public: map->MarkAsWritten(true); MarkRegionAsWritten(map->GetStart(), map->GetEnd() - 1); } + } else { + if (map->IsWritten()) { + WriteBarrier(); + } } const u64 offset = static_cast<u64>(block->GetOffset(cache_addr)); |