summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorGravatar liamwhite2023-02-11 10:28:30 -0500
committerGravatar GitHub2023-02-11 10:28:30 -0500
commit1040f1f5038832f12d71d6b80924d81b6c4d607c (patch)
tree40eace73fde2c2d6104a16e437eff79f624ef387 /src/video_core/gpu_thread.cpp
parentMerge pull request #9742 from liamwhite/svc-wrap-only (diff)
parentRemove OnCommandListEndCommand (diff)
downloadyuzu-1040f1f5038832f12d71d6b80924d81b6c4d607c.tar.gz
yuzu-1040f1f5038832f12d71d6b80924d81b6c4d607c.tar.xz
yuzu-1040f1f5038832f12d71d6b80924d81b6c4d607c.zip
Merge pull request #9744 from behunin/quick-release
gpu_thread: Remove OnCommandListEndCommand
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 164a5252a..9c103c0d4 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 scheduler.Push(submit_list->channel, std::move(submit_list->entries)); 40 scheduler.Push(submit_list->channel, std::move(submit_list->entries));
41 } else if (const auto* data = std::get_if<SwapBuffersCommand>(&next.data)) { 41 } else if (const auto* data = std::get_if<SwapBuffersCommand>(&next.data)) {
42 renderer.SwapBuffers(data->framebuffer ? &*data->framebuffer : nullptr); 42 renderer.SwapBuffers(data->framebuffer ? &*data->framebuffer : nullptr);
43 } else if (std::holds_alternative<OnCommandListEndCommand>(next.data)) {
44 rasterizer->ReleaseFences();
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)) {
@@ -110,10 +108,6 @@ void ThreadManager::FlushAndInvalidateRegion(VAddr addr, u64 size) {
110 rasterizer->OnCPUWrite(addr, size); 108 rasterizer->OnCPUWrite(addr, size);
111} 109}
112 110
113void ThreadManager::OnCommandListEnd() {
114 PushCommand(OnCommandListEndCommand());
115}
116
117u64 ThreadManager::PushCommand(CommandData&& command_data, bool block) { 111u64 ThreadManager::PushCommand(CommandData&& command_data, bool block) {
118 if (!is_async) { 112 if (!is_async) {
119 // In synchronous GPU mode, block the caller until the command has executed 113 // In synchronous GPU mode, block the caller until the command has executed