diff options
author | bunnei <bunneidev@gmail.com> | 2022-01-03 16:40:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-03 16:40:36 -0800 |
commit | e7733544779f2706d108682dd027d44e7fa5ff4b (patch) | |
tree | 9662605d300e28c2e7722ecdc978b65f97b568cb /src/video_core/gpu.h | |
parent | abbbdc2bc027ed7af236625ae8427a46df63f7e7 (diff) | |
parent | d866916f42c3bbb21aa6f046140737690c1ce47f (diff) |
Merge pull request #7668 from ameerj/fence-stop-token
gpu: Use std::stop_token in WaitFence for VSync thread
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r-- | src/video_core/gpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 500411176..cc65a7870 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -5,6 +5,7 @@ #pragma once #include <memory> +#include <stop_token> #include "common/bit_field.h" #include "common/common_types.h" @@ -209,7 +210,7 @@ public: [[nodiscard]] const VideoCore::ShaderNotify& ShaderNotify() const; /// Allows the CPU/NvFlinger to wait on the GPU before presenting a frame. - void WaitFence(u32 syncpoint_id, u32 value); + void WaitFence(u32 syncpoint_id, u32 value, std::stop_token stop_token = {}); void IncrementSyncPoint(u32 syncpoint_id); |