video_core: gpu_thread: Do not wait when system is powered down.

master
bunnei 2020-12-12 01:37:06 +07:00
parent 916438a9de
commit 4991620f89
1 changed files with 2 additions and 1 deletions

@ -135,7 +135,8 @@ void ThreadManager::FlushAndInvalidateRegion(VAddr addr, u64 size) {
}
void ThreadManager::WaitIdle() const {
while (state.last_fence > state.signaled_fence.load(std::memory_order_relaxed)) {
while (state.last_fence > state.signaled_fence.load(std::memory_order_relaxed) &&
system.IsPoweredOn()) {
}
}