GPUTHread: Remove async reads from Normal Accuracy.
This commit is contained in:
parent
7b0d8bd1fb
commit
588ab44470
|
@ -99,25 +99,13 @@ void ThreadManager::FlushRegion(VAddr addr, u64 size) {
|
||||||
PushCommand(FlushRegionCommand(addr, size));
|
PushCommand(FlushRegionCommand(addr, size));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!Settings::IsGPULevelExtreme()) {
|
||||||
// Asynchronous GPU mode
|
return;
|
||||||
switch (Settings::values.gpu_accuracy.GetValue()) {
|
|
||||||
case Settings::GPUAccuracy::Normal:
|
|
||||||
PushCommand(FlushRegionCommand(addr, size));
|
|
||||||
break;
|
|
||||||
case Settings::GPUAccuracy::High:
|
|
||||||
// TODO(bunnei): Is this right? Preserving existing behavior for now
|
|
||||||
break;
|
|
||||||
case Settings::GPUAccuracy::Extreme: {
|
|
||||||
auto& gpu = system.GPU();
|
|
||||||
u64 fence = gpu.RequestFlush(addr, size);
|
|
||||||
PushCommand(GPUTickCommand(), true);
|
|
||||||
ASSERT(fence <= gpu.CurrentFlushRequestFence());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
UNIMPLEMENTED_MSG("Unsupported gpu_accuracy {}", Settings::values.gpu_accuracy.GetValue());
|
|
||||||
}
|
}
|
||||||
|
auto& gpu = system.GPU();
|
||||||
|
u64 fence = gpu.RequestFlush(addr, size);
|
||||||
|
PushCommand(GPUTickCommand(), true);
|
||||||
|
ASSERT(fence <= gpu.CurrentFlushRequestFence());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThreadManager::InvalidateRegion(VAddr addr, u64 size) {
|
void ThreadManager::InvalidateRegion(VAddr addr, u64 size) {
|
||||||
|
|
Reference in New Issue