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 | Merge pull request #7251 from FernandoS27/shader-dump (diff) | |
parent | gpu: Add shut down method to synchronize threads before destruction (diff) | |
download | yuzu-118d5fa3b0fdc070f57916203dbbb999fe7e3c69.tar yuzu-118d5fa3b0fdc070f57916203dbbb999fe7e3c69.tar.gz yuzu-118d5fa3b0fdc070f57916203dbbb999fe7e3c69.tar.bz2 yuzu-118d5fa3b0fdc070f57916203dbbb999fe7e3c69.tar.lz yuzu-118d5fa3b0fdc070f57916203dbbb999fe7e3c69.tar.xz yuzu-118d5fa3b0fdc070f57916203dbbb999fe7e3c69.tar.zst yuzu-118d5fa3b0fdc070f57916203dbbb999fe7e3c69.zip |
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(); |