summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
-rw-r--r--src/video_core/gpu_thread.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 788d4f61e..58d8110b8 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -40,8 +40,6 @@ static void RunThread(std::stop_token stop_token, Core::System& system,
40 } 40 }
41 if (auto* submit_list = std::get_if<SubmitListCommand>(&next.data)) { 41 if (auto* submit_list = std::get_if<SubmitListCommand>(&next.data)) {
42 scheduler.Push(submit_list->channel, std::move(submit_list->entries)); 42 scheduler.Push(submit_list->channel, std::move(submit_list->entries));
43 } else if (const auto* data = std::get_if<SwapBuffersCommand>(&next.data)) {
44 renderer.SwapBuffers(data->framebuffer ? &*data->framebuffer : nullptr);
45 } else if (std::holds_alternative<GPUTickCommand>(next.data)) { 43 } else if (std::holds_alternative<GPUTickCommand>(next.data)) {
46 system.GPU().TickWork(); 44 system.GPU().TickWork();
47 } else if (const auto* flush = std::get_if<FlushRegionCommand>(&next.data)) { 45 } else if (const auto* flush = std::get_if<FlushRegionCommand>(&next.data)) {
@@ -78,10 +76,6 @@ void ThreadManager::SubmitList(s32 channel, Tegra::CommandList&& entries) {
78 PushCommand(SubmitListCommand(channel, std::move(entries))); 76 PushCommand(SubmitListCommand(channel, std::move(entries)));
79} 77}
80 78
81void ThreadManager::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {
82 PushCommand(SwapBuffersCommand(framebuffer ? std::make_optional(*framebuffer) : std::nullopt));
83}
84
85void ThreadManager::FlushRegion(DAddr addr, u64 size) { 79void ThreadManager::FlushRegion(DAddr addr, u64 size) {
86 if (!is_async) { 80 if (!is_async) {
87 // Always flush with synchronous GPU mode 81 // Always flush with synchronous GPU mode