Skip to content
Snippets Groups Projects
Commit 600dddf8 authored by Fernando Sahmkow's avatar Fernando Sahmkow Committed by FernandoS27
Browse files

Async GPU: do invalidate as synced operation

Async GPU: Always invalidate synced.
parent c13433ae
No related branches found
No related tags found
No related merge requests found
......@@ -89,12 +89,7 @@ void ThreadManager::FlushRegion(CacheAddr addr, u64 size) {
}
void ThreadManager::InvalidateRegion(CacheAddr addr, u64 size) {
if (state.queue.Empty()) {
// It's quicker to invalidate a single region on the CPU if the queue is already empty
system.Renderer().Rasterizer().InvalidateRegion(addr, size);
} else {
PushCommand(InvalidateRegionCommand(addr, size));
}
system.Renderer().Rasterizer().InvalidateRegion(addr, size);
}
void ThreadManager::FlushAndInvalidateRegion(CacheAddr addr, u64 size) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment