diff options
author | Fernando S <fsahmkow27@gmail.com> | 2024-02-02 15:08:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 15:08:06 +0100 |
commit | 58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53 (patch) | |
tree | a6efdfb4de7a7bac87926f6f1e93e7275634c731 /src/video_core/gpu_thread.cpp | |
parent | Merge pull request #12878 from zhaobot/tx-update-20240201020554 (diff) | |
parent | hardware_composer: implement speed limit extensions (diff) | |
download | yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar.gz yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar.bz2 yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar.lz yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar.xz yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.tar.zst yuzu-58cf2ee1f93ebfa0e6b25b71d349ad2ad7895f53.zip |
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
-rw-r--r-- | src/video_core/gpu_thread.cpp | 6 |
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, } if (auto* submit_list = std::get_if<SubmitListCommand>(&next.data)) { scheduler.Push(submit_list->channel, std::move(submit_list->entries)); - } else if (const auto* data = std::get_if<SwapBuffersCommand>(&next.data)) { - renderer.SwapBuffers(data->framebuffer ? &*data->framebuffer : nullptr); } else if (std::holds_alternative<GPUTickCommand>(next.data)) { system.GPU().TickWork(); } else if (const auto* flush = std::get_if<FlushRegionCommand>(&next.data)) { @@ -78,10 +76,6 @@ void ThreadManager::SubmitList(s32 channel, Tegra::CommandList&& entries) { PushCommand(SubmitListCommand(channel, std::move(entries))); } -void ThreadManager::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) { - PushCommand(SwapBuffersCommand(framebuffer ? std::make_optional(*framebuffer) : std::nullopt)); -} - void ThreadManager::FlushRegion(DAddr addr, u64 size) { if (!is_async) { // Always flush with synchronous GPU mode |