summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-01-06 06:09:57 +0100
committerGitHub <noreply@github.com>2020-01-06 06:09:57 +0100
commit89fc75d76993d294ee106402bc78becc95d0bb38 (patch)
tree5efd323f3848e1203a72dc69f52f0cd02776ac48 /src/video_core/gpu.h
parentMerge pull request #3264 from ReinUsesLisp/vk-descriptor-pool (diff)
parentvideo_core: Block in WaitFence. (diff)
downloadyuzu-89fc75d76993d294ee106402bc78becc95d0bb38.tar
yuzu-89fc75d76993d294ee106402bc78becc95d0bb38.tar.gz
yuzu-89fc75d76993d294ee106402bc78becc95d0bb38.tar.bz2
yuzu-89fc75d76993d294ee106402bc78becc95d0bb38.tar.lz
yuzu-89fc75d76993d294ee106402bc78becc95d0bb38.tar.xz
yuzu-89fc75d76993d294ee106402bc78becc95d0bb38.tar.zst
yuzu-89fc75d76993d294ee106402bc78becc95d0bb38.zip
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r--src/video_core/gpu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index ecc338ae9..b648317bb 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -6,6 +6,7 @@
#include <array>
#include <atomic>
+#include <condition_variable>
#include <list>
#include <memory>
#include <mutex>
@@ -181,7 +182,7 @@ public:
virtual void WaitIdle() const = 0;
/// Allows the CPU/NvFlinger to wait on the GPU before presenting a frame.
- void WaitFence(u32 syncpoint_id, u32 value) const;
+ void WaitFence(u32 syncpoint_id, u32 value);
void IncrementSyncPoint(u32 syncpoint_id);
@@ -312,6 +313,8 @@ private:
std::mutex sync_mutex;
+ std::condition_variable sync_cv;
+
const bool is_async;
};