VideoCore: Refactor syncing.

This commit is contained in:
Fernando Sahmkow committed 2022-10-06 21:00:52 +02:00
1 parent e44ac8b821
commit 668e80a9f4
44 files changed
+648 -252

No files matched your search

+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) {