diff options
| author | Fernando S <fsahmkow27@gmail.com> | 2022-01-04 14:16:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-04 14:16:24 +0100 |
| commit | 118d5fa3b0fdc070f57916203dbbb999fe7e3c69 (patch) | |
| tree | dcea9a661fb5595fd255fa62e81d82c9a3aef822 /src/video_core/gpu.h | |
| parent | c68a0d17fc30d9b91b8324b3899556e3ebfea8d5 (diff) | |
| parent | c17938f96ba9a3f2571387b21328743db8050250 (diff) | |
Merge pull request #7670 from ameerj/vsync-block
gpu: Add shut down method to synchronize threads before destruction
Diffstat (limited to 'src/video_core/gpu.h')
| -rw-r--r-- | src/video_core/gpu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index cc65a7870..3188b83ed 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -5,7 +5,6 @@ #pragma once #include <memory> -#include <stop_token> #include "common/bit_field.h" #include "common/common_types.h" @@ -210,7 +209,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, std::stop_token stop_token = {}); + void WaitFence(u32 syncpoint_id, u32 value); void IncrementSyncPoint(u32 syncpoint_id); @@ -233,6 +232,9 @@ public: /// core timing events. void Start(); + /// Performs any additional necessary steps to shutdown GPU emulation. + void NotifyShutdown(); + /// Obtain the CPU Context void ObtainContext(); |
