summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-11-01 18:53:32 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-10-06 21:00:51 +0200
commit3cbe352c18f69596d91c4862382d61a3d6515140 (patch)
treead03ae10647c26a0913344ed62b47a768eb67736 /src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp
parentNVDRV: Cleanup. (diff)
downloadyuzu-3cbe352c18f69596d91c4862382d61a3d6515140.tar
yuzu-3cbe352c18f69596d91c4862382d61a3d6515140.tar.gz
yuzu-3cbe352c18f69596d91c4862382d61a3d6515140.tar.bz2
yuzu-3cbe352c18f69596d91c4862382d61a3d6515140.tar.lz
yuzu-3cbe352c18f69596d91c4862382d61a3d6515140.tar.xz
yuzu-3cbe352c18f69596d91c4862382d61a3d6515140.tar.zst
yuzu-3cbe352c18f69596d91c4862382d61a3d6515140.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp
index 8b2cd9bf1..5a9c59f37 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp
@@ -8,9 +8,10 @@
#include "common/common_types.h"
#include "common/logging/log.h"
#include "core/core.h"
+#include "core/hle/service/nvdrv/core/container.h"
+#include "core/hle/service/nvdrv/core/syncpoint_manager.h"
#include "core/hle/service/nvdrv/devices/nvhost_nvdec_common.h"
#include "core/hle/service/nvdrv/devices/nvmap.h"
-#include "core/hle/service/nvdrv/syncpoint_manager.h"
#include "core/memory.h"
#include "video_core/memory_manager.h"
#include "video_core/renderer_base.h"
@@ -45,8 +46,9 @@ std::size_t WriteVectors(std::vector<u8>& dst, const std::vector<T>& src, std::s
} // Anonymous namespace
nvhost_nvdec_common::nvhost_nvdec_common(Core::System& system_, std::shared_ptr<nvmap> nvmap_dev_,
- SyncpointManager& syncpoint_manager_)
- : nvdevice{system_}, nvmap_dev{std::move(nvmap_dev_)}, syncpoint_manager{syncpoint_manager_} {}
+ NvCore::Container& core_)
+ : nvdevice{system_}, nvmap_dev{std::move(nvmap_dev_)}, core{core_},
+ syncpoint_manager{core.GetSyncpointManager()} {}
nvhost_nvdec_common::~nvhost_nvdec_common() = default;
NvResult nvhost_nvdec_common::SetNVMAPfd(const std::vector<u8>& input) {