yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Buffer_Cache: Implement barriers.

This commit is contained in:
Fernando Sahmkow 2019-07-20 12:18:54 -04:00 committed by FernandoS27
parent 286f4c446a
commit de8ff8a1c6
1 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,10 @@ public:
map->MarkAsWritten(true); map->MarkAsWritten(true);
MarkRegionAsWritten(map->GetStart(), map->GetEnd() - 1); MarkRegionAsWritten(map->GetStart(), map->GetEnd() - 1);
} }
} else {
if (map->IsWritten()) {
WriteBarrier();
}
} }
const u64 offset = static_cast<u64>(block->GetOffset(cache_addr)); const u64 offset = static_cast<u64>(block->GetOffset(cache_addr));