ThreadManager: Sync async reads on accurate gpu.
This commit is contained in:
parent
57fdbd9b89
commit
165ae823f5
9 changed files with 48 additions and 8 deletions
|
@ -145,6 +145,18 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
bool MustFlushRegion(VAddr addr, std::size_t size) {
|
||||
std::lock_guard lock{mutex};
|
||||
|
||||
std::vector<MapInterval> objects = GetMapsInRange(addr, size);
|
||||
for (auto& object : objects) {
|
||||
if (object->IsModified() && object->IsRegistered()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// Mark the specified region as being invalidated
|
||||
void InvalidateRegion(VAddr addr, u64 size) {
|
||||
std::lock_guard lock{mutex};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue