summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/gpu_thread.h')
-rw-r--r--src/video_core/gpu_thread.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/video_core/gpu_thread.h b/src/video_core/gpu_thread.h
index 2de25e9ef..dc0fce9f8 100644
--- a/src/video_core/gpu_thread.h
+++ b/src/video_core/gpu_thread.h
@@ -44,14 +44,6 @@ struct SubmitListCommand final {
44 Tegra::CommandList entries; 44 Tegra::CommandList entries;
45}; 45};
46 46
47/// Command to signal to the GPU thread that a swap buffers is pending
48struct SwapBuffersCommand final {
49 explicit SwapBuffersCommand(std::optional<const Tegra::FramebufferConfig> framebuffer_)
50 : framebuffer{std::move(framebuffer_)} {}
51
52 std::optional<Tegra::FramebufferConfig> framebuffer;
53};
54
55/// Command to signal to the GPU thread to flush a region 47/// Command to signal to the GPU thread to flush a region
56struct FlushRegionCommand final { 48struct FlushRegionCommand final {
57 explicit constexpr FlushRegionCommand(DAddr addr_, u64 size_) : addr{addr_}, size{size_} {} 49 explicit constexpr FlushRegionCommand(DAddr addr_, u64 size_) : addr{addr_}, size{size_} {}
@@ -81,8 +73,8 @@ struct FlushAndInvalidateRegionCommand final {
81struct GPUTickCommand final {}; 73struct GPUTickCommand final {};
82 74
83using CommandData = 75using CommandData =
84 std::variant<std::monostate, SubmitListCommand, SwapBuffersCommand, FlushRegionCommand, 76 std::variant<std::monostate, SubmitListCommand, FlushRegionCommand, InvalidateRegionCommand,
85 InvalidateRegionCommand, FlushAndInvalidateRegionCommand, GPUTickCommand>; 77 FlushAndInvalidateRegionCommand, GPUTickCommand>;
86 78
87struct CommandDataContainer { 79struct CommandDataContainer {
88 CommandDataContainer() = default; 80 CommandDataContainer() = default;
@@ -118,9 +110,6 @@ public:
118 /// Push GPU command entries to be processed 110 /// Push GPU command entries to be processed
119 void SubmitList(s32 channel, Tegra::CommandList&& entries); 111 void SubmitList(s32 channel, Tegra::CommandList&& entries);
120 112
121 /// Swap buffers (render frame)
122 void SwapBuffers(const Tegra::FramebufferConfig* framebuffer);
123
124 /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory 113 /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory
125 void FlushRegion(DAddr addr, u64 size); 114 void FlushRegion(DAddr addr, u64 size);
126 115