summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorameerj <aj662@drexel.edu>2020-11-23 19:25:01 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-02-13 19:07:31 +0100
commitac265a72ce4176ceb3cd10a5548ab71519771640 (patch)
tree0acde029388d465a5801db9106dd8f4e026e57e8 /src/video_core/gpu_thread.cpp
parentMerge pull request #5919 from ReinUsesLisp/stream-buffer-tragic (diff)
downloadyuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.gz
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.bz2
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.lz
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.xz
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.tar.zst
yuzu-ac265a72ce4176ceb3cd10a5548ab71519771640.zip
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
-rw-r--r--src/video_core/gpu_thread.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 50319f1d5..7644588e3 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -48,9 +48,8 @@ static void RunThread(Core::System& system, VideoCore::RendererBase& renderer,
dma_pusher.DispatchCalls();
} else if (auto* command_list = std::get_if<SubmitChCommandEntries>(&next.data)) {
// NVDEC
- cdma_pusher.Push(std::move(command_list->entries));
- cdma_pusher.DispatchCalls();
- } else if (const auto* data = std::get_if<SwapBuffersCommand>(&next.data)) {
+ cdma_pusher.ProcessEntries(std::move(command_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<OnCommandListEndCommand>(next.data)) {
rasterizer->ReleaseFences();