summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2021-04-25 23:05:58 -0700
committerGravatar GitHub2021-04-25 23:05:58 -0700
commit3c5fb536348b42924b05c2660168529ca80cb30a (patch)
tree23c8ea71a6e6800da58dc006cbf95b25c3f62379 /src/video_core/gpu.cpp
parentMerge pull request #6241 from Morph1984/new-keyboard-bindings (diff)
parentnvhost_vic: Fix device closure (diff)
downloadyuzu-3c5fb536348b42924b05c2660168529ca80cb30a.tar.gz
yuzu-3c5fb536348b42924b05c2660168529ca80cb30a.tar.xz
yuzu-3c5fb536348b42924b05c2660168529ca80cb30a.zip
Merge pull request #6237 from ameerj/nvdec-end-fix
nvhost_vic: Fix device closure
Diffstat (limited to 'src/video_core/gpu.cpp')
-rw-r--r--src/video_core/gpu.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 7c42f1177..a38024242 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -492,10 +492,8 @@ void GPU::PushCommandBuffer(Tegra::ChCommandHeaderList& entries) {
492 cdma_pusher->ProcessEntries(std::move(entries)); 492 cdma_pusher->ProcessEntries(std::move(entries));
493} 493}
494 494
495void GPU::ClearCommandBuffer() { 495void GPU::ClearCdmaInstance() {
496 // This condition fires when a video stream ends, clear all intermediary data
497 cdma_pusher.reset(); 496 cdma_pusher.reset();
498 LOG_INFO(Service_NVDRV, "NVDEC video stream ended");
499} 497}
500 498
501void GPU::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) { 499void GPU::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {