diff options
author | VonChenPlus <vonchenplus@gmail.com> | 2022-06-27 06:39:57 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 21:00:53 +0200 |
commit | 9982cff98b4db38565715cc515ea496b6195725b (patch) | |
tree | 08ac644dcb6d51b4deda281133fa31b40b7cc3d7 /src/core/hle/service/nvdrv/devices | |
parent | General: Fix clang format. (diff) | |
download | yuzu-9982cff98b4db38565715cc515ea496b6195725b.tar yuzu-9982cff98b4db38565715cc515ea496b6195725b.tar.gz yuzu-9982cff98b4db38565715cc515ea496b6195725b.tar.bz2 yuzu-9982cff98b4db38565715cc515ea496b6195725b.tar.lz yuzu-9982cff98b4db38565715cc515ea496b6195725b.tar.xz yuzu-9982cff98b4db38565715cc515ea496b6195725b.tar.zst yuzu-9982cff98b4db38565715cc515ea496b6195725b.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv/devices')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvmap.cpp | 12 | ||||
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvmap.h | 5 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp index f84fc8c37..ddf273b5e 100644 --- a/src/core/hle/service/nvdrv/devices/nvmap.cpp +++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp @@ -69,18 +69,6 @@ NvResult nvmap::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input, void nvmap::OnOpen(DeviceFD fd) {} void nvmap::OnClose(DeviceFD fd) {} -VAddr nvmap::GetObjectAddress(u32 handle) const { - auto obj = file.GetHandle(handle); - if (obj) { - return obj->address; - } - return 0; -} - -std::shared_ptr<NvCore::NvMap::Handle> nvmap::GetObject(u32 handle) const { - return file.GetHandle(handle); -} - NvResult nvmap::IocCreate(const std::vector<u8>& input, std::vector<u8>& output) { IocCreateParams params; std::memcpy(¶ms, input.data(), sizeof(params)); diff --git a/src/core/hle/service/nvdrv/devices/nvmap.h b/src/core/hle/service/nvdrv/devices/nvmap.h index c22eb57a4..52e1d7cff 100644 --- a/src/core/hle/service/nvdrv/devices/nvmap.h +++ b/src/core/hle/service/nvdrv/devices/nvmap.h @@ -36,11 +36,6 @@ public: void OnOpen(DeviceFD fd) override; void OnClose(DeviceFD fd) override; - /// Returns the allocated address of an nvmap object given its handle. - VAddr GetObjectAddress(u32 handle) const; - - std::shared_ptr<NvCore::NvMap::Handle> GetObject(u32 handle) const; - enum class HandleParameterType : u32_le { Size = 1, Alignment = 2, |