aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-10-11 13:41:15 -0400
committerFernando Sahmkow <fsahmkow27@gmail.com>2019-10-11 13:41:15 -0400
commitcfc2f30dc409cbbb36c19c74a98f3017e6d722f2 (patch)
tree0558c34b32545aa8e59f366d53eb3923633f49fe /src
parent538f5880fff5e29fd5539eea371c3131013908e4 (diff)
AsyncGpu: Address Feedback
Diffstat (limited to 'src')
-rw-r--r--src/video_core/gpu.cpp2
-rw-r--r--src/video_core/gpu_thread.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index d94be9c9df..da7359d4d4 100644
--- a/src/video_core/gpu.cpp
+++ b/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) {
}
}
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 4a42634d2c..758a37f14c 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/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)) {
}
}