VideoCore: Refactor syncing.

This commit is contained in:
Fernando Sahmkow
2022-10-06 21:00:52 +02:00
parent e44ac8b821
commit 668e80a9f4
44 changed files with 648 additions and 252 deletions
+5 -1
View File
@@ -93,8 +93,12 @@ void ThreadManager::FlushRegion(VAddr addr, u64 size) {
}
auto& gpu = system.GPU();
u64 fence = gpu.RequestFlush(addr, size);
TickGPU();
gpu.WaitForSyncOperation(fence);
}
void ThreadManager::TickGPU() {
PushCommand(GPUTickCommand(), true);
ASSERT(fence <= gpu.CurrentFlushRequestFence());
}
void ThreadManager::InvalidateRegion(VAddr addr, u64 size) {