diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-03 17:58:43 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 17:36:08 +0200 |
commit | ad92865497f83fe4c19cd9ab78cce9da1a8c3a6c (patch) | |
tree | f24dd8b60b23abe73931a934af33d2ed82aa7975 /src/video_core/gpu_synch.cpp | |
parent | CoreTiming/CycleTimer: Correct Idling. (diff) | |
download | yuzu-ad92865497f83fe4c19cd9ab78cce9da1a8c3a6c.tar yuzu-ad92865497f83fe4c19cd9ab78cce9da1a8c3a6c.tar.gz yuzu-ad92865497f83fe4c19cd9ab78cce9da1a8c3a6c.tar.bz2 yuzu-ad92865497f83fe4c19cd9ab78cce9da1a8c3a6c.tar.lz yuzu-ad92865497f83fe4c19cd9ab78cce9da1a8c3a6c.tar.xz yuzu-ad92865497f83fe4c19cd9ab78cce9da1a8c3a6c.tar.zst yuzu-ad92865497f83fe4c19cd9ab78cce9da1a8c3a6c.zip |
Diffstat (limited to 'src/video_core/gpu_synch.cpp')
-rw-r--r-- | src/video_core/gpu_synch.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/gpu_synch.cpp b/src/video_core/gpu_synch.cpp index 6f38a672a..aaeb9811d 100644 --- a/src/video_core/gpu_synch.cpp +++ b/src/video_core/gpu_synch.cpp @@ -13,10 +13,16 @@ GPUSynch::GPUSynch(Core::System& system, std::unique_ptr<VideoCore::RendererBase GPUSynch::~GPUSynch() = default; -void GPUSynch::Start() { +void GPUSynch::Start() {} + +void GPUSynch::ObtainContext() { context->MakeCurrent(); } +void GPUSynch::ReleaseContext() { + context->DoneCurrent(); +} + void GPUSynch::PushGPUEntries(Tegra::CommandList&& entries) { dma_pusher->Push(std::move(entries)); dma_pusher->DispatchCalls(); |