diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-04-25 01:22:09 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-04-25 01:22:09 +0200 |
commit | 75e0d16caa994f0765f78268fb5a94496914d23b (patch) | |
tree | 378eab8a370a1f95ad04d9828e1e6e74d3e8fbac /src/video_core | |
parent | Merge pull request #6234 from Morph1984/stub-am (diff) | |
download | yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar.gz yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar.bz2 yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar.lz yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar.xz yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.tar.zst yuzu-75e0d16caa994f0765f78268fb5a94496914d23b.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/gpu.cpp | 4 | ||||
-rw-r--r-- | src/video_core/gpu.h | 4 |
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); |