summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-10-11 19:41:15 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2019-10-11 19:41:15 +0200
commitcfc2f30dc409cbbb36c19c74a98f3017e6d722f2 (patch)
tree0558c34b32545aa8e59f366d53eb3923633f49fe
parentGL_Renderer: Remove lefting snippet. (diff)
downloadyuzu-cfc2f30dc409cbbb36c19c74a98f3017e6d722f2.tar
yuzu-cfc2f30dc409cbbb36c19c74a98f3017e6d722f2.tar.gz
yuzu-cfc2f30dc409cbbb36c19c74a98f3017e6d722f2.tar.bz2
yuzu-cfc2f30dc409cbbb36c19c74a98f3017e6d722f2.tar.lz
yuzu-cfc2f30dc409cbbb36c19c74a98f3017e6d722f2.tar.xz
yuzu-cfc2f30dc409cbbb36c19c74a98f3017e6d722f2.tar.zst
yuzu-cfc2f30dc409cbbb36c19c74a98f3017e6d722f2.zip
-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 d94be9c9d..da7359d4d 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 4a42634d2..758a37f14 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)) {
}
}