summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_synch.h
diff options
context:
space:
mode:
authorGravatar bunnei2019-03-07 10:41:53 -0500
committerGravatar GitHub2019-03-07 10:41:53 -0500
commit4f352833a5b94e900ed7afb3b84eeda1bb5fab3d (patch)
tree48af4d722e551f55a117244f986c11e47e7b27e5 /src/video_core/gpu_synch.h
parentMerge pull request #2149 from ReinUsesLisp/decoders-style (diff)
parentgpu_thread: Fix deadlock with threading idle state check. (diff)
downloadyuzu-4f352833a5b94e900ed7afb3b84eeda1bb5fab3d.tar.gz
yuzu-4f352833a5b94e900ed7afb3b84eeda1bb5fab3d.tar.xz
yuzu-4f352833a5b94e900ed7afb3b84eeda1bb5fab3d.zip
Merge pull request #2055 from bunnei/gpu-thread
Asynchronous GPU command processing
Diffstat (limited to 'src/video_core/gpu_synch.h')
-rw-r--r--src/video_core/gpu_synch.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/video_core/gpu_synch.h b/src/video_core/gpu_synch.h
new file mode 100644
index 000000000..658f683e2
--- /dev/null
+++ b/src/video_core/gpu_synch.h
@@ -0,0 +1,29 @@
1// Copyright 2019 yuzu Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include "video_core/gpu.h"
8
9namespace VideoCore {
10class RendererBase;
11} // namespace VideoCore
12
13namespace VideoCommon {
14
15/// Implementation of GPU interface that runs the GPU synchronously
16class GPUSynch : public Tegra::GPU {
17public:
18 explicit GPUSynch(Core::System& system, VideoCore::RendererBase& renderer);
19 ~GPUSynch();
20
21 void PushGPUEntries(Tegra::CommandList&& entries) override;
22 void SwapBuffers(
23 std::optional<std::reference_wrapper<const Tegra::FramebufferConfig>> framebuffer) override;
24 void FlushRegion(VAddr addr, u64 size) override;
25 void InvalidateRegion(VAddr addr, u64 size) override;
26 void FlushAndInvalidateRegion(VAddr addr, u64 size) override;
27};
28
29} // namespace VideoCommon