Ver Fonte

AsyncGpu: Address Feedback

Fernando Sahmkow há 6 anos atrás
pai
commit
cfc2f30dc4
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      src/video_core/gpu.cpp
  2. 1 1
      src/video_core/gpu_thread.cpp

+ 1 - 1
src/video_core/gpu.cpp

@@ -72,7 +72,7 @@ void GPU::WaitFence(u32 syncpoint_id, u32 value) const {
         return;
     }
     MICROPROFILE_SCOPE(GPU_wait);
-    while (syncpoints[syncpoint_id].load() < value) {
+    while (syncpoints[syncpoint_id].load(std::memory_order_relaxed) < value) {
     }
 }
 

+ 1 - 1
src/video_core/gpu_thread.cpp

@@ -91,7 +91,7 @@ void ThreadManager::FlushAndInvalidateRegion(CacheAddr addr, u64 size) {
 }
 
 void ThreadManager::WaitIdle() const {
-    while (state.last_fence > state.signaled_fence.load()) {
+    while (state.last_fence > state.signaled_fence.load(std::memory_order_relaxed)) {
     }
 }