diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-03 11:58:43 -0400 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 11:36:08 -0400 |
| commit | ad92865497f83fe4c19cd9ab78cce9da1a8c3a6c (patch) | |
| tree | f24dd8b60b23abe73931a934af33d2ed82aa7975 /src/video_core/gpu_synch.cpp | |
| parent | bfb5244cf8c600e6444d8590c8850ec31779bc6c (diff) | |
General: Correct rebase, sync gpu and context management.
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(); |
