mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-09 16:19:59 +00:00
Async GPU: do invalidate as synced operation
Async GPU: Always invalidate synced.
This commit is contained in:
parent
c13433aee4
commit
600dddf88d
1 changed files with 1 additions and 6 deletions
|
@ -89,12 +89,7 @@ void ThreadManager::FlushRegion(CacheAddr addr, u64 size) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThreadManager::InvalidateRegion(CacheAddr addr, u64 size) {
|
void ThreadManager::InvalidateRegion(CacheAddr addr, u64 size) {
|
||||||
if (state.queue.Empty()) {
|
system.Renderer().Rasterizer().InvalidateRegion(addr, size);
|
||||||
// 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));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThreadManager::FlushAndInvalidateRegion(CacheAddr addr, u64 size) {
|
void ThreadManager::FlushAndInvalidateRegion(CacheAddr addr, u64 size) {
|
||||||
|
|
Loading…
Reference in a new issue