Browse Source

Async GPU: do invalidate as synced operation

Async GPU: Always invalidate synced.
nce_cpp
Fernando Sahmkow 7 years ago
committed by FernandoS27
parent
commit
b18365ed59
  1. 7
      src/video_core/gpu_thread.cpp

7
src/video_core/gpu_thread.cpp

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

Loading…
Cancel
Save