Browse Source

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

bunnei 5 năm trước cách đây
mục cha
commit
4991620f89
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/video_core/gpu_thread.cpp

+ 2 - 1
src/video_core/gpu_thread.cpp

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