mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 07:08:04 -05:00
nvhost_vic: Fix device closure
Implements the OnClose method of the nvhost_vic device, and removes the remnants of an older implementation. Also cleans up some of the surrounding code.
This commit is contained in:
@ -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) {
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user