summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-26 08:05:58 +0200
committerGitHub <noreply@github.com>2021-04-26 08:05:58 +0200
commit3c5fb536348b42924b05c2660168529ca80cb30a (patch)
tree23c8ea71a6e6800da58dc006cbf95b25c3f62379 /src/video_core
parentMerge pull request #6241 from Morph1984/new-keyboard-bindings (diff)
parentnvhost_vic: Fix device closure (diff)
downloadyuzu-3c5fb536348b42924b05c2660168529ca80cb30a.tar
yuzu-3c5fb536348b42924b05c2660168529ca80cb30a.tar.gz
yuzu-3c5fb536348b42924b05c2660168529ca80cb30a.tar.bz2
yuzu-3c5fb536348b42924b05c2660168529ca80cb30a.tar.lz
yuzu-3c5fb536348b42924b05c2660168529ca80cb30a.tar.xz
yuzu-3c5fb536348b42924b05c2660168529ca80cb30a.tar.zst
yuzu-3c5fb536348b42924b05c2660168529ca80cb30a.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/gpu.cpp4
-rw-r--r--src/video_core/gpu.h4
2 files changed, 3 insertions, 5 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) {
cdma_pusher->ProcessEntries(std::move(entries));
}
-void GPU::ClearCommandBuffer() {
- // This condition fires when a video stream ends, clear all intermediary data
+void GPU::ClearCdmaInstance() {
cdma_pusher.reset();
- LOG_INFO(Service_NVDRV, "NVDEC video stream ended");
}
void GPU::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index b1960ea86..8669e9940 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -324,8 +324,8 @@ public:
/// Push GPU command buffer entries to be processed
void PushCommandBuffer(Tegra::ChCommandHeaderList& entries);
- /// Frees the CDMAPusher to free up resources
- void ClearCommandBuffer();
+ /// Frees the CDMAPusher instance to free up resources
+ void ClearCdmaInstance();
/// Swap buffers (render frame)
void SwapBuffers(const Tegra::FramebufferConfig* framebuffer);