diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-08 04:03:04 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-02-08 05:31:28 +0100 |
commit | a39a65cbe0d787587ad686fbd9474703ac58090c (patch) | |
tree | a9a7ab29e0c2e89bf2ec9874df074eb9db792dcc /src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h | |
parent | nvdrv: Add MemoryManager class to track GPU memory. (diff) | |
download | yuzu-a39a65cbe0d787587ad686fbd9474703ac58090c.tar yuzu-a39a65cbe0d787587ad686fbd9474703ac58090c.tar.gz yuzu-a39a65cbe0d787587ad686fbd9474703ac58090c.tar.bz2 yuzu-a39a65cbe0d787587ad686fbd9474703ac58090c.tar.lz yuzu-a39a65cbe0d787587ad686fbd9474703ac58090c.tar.xz yuzu-a39a65cbe0d787587ad686fbd9474703ac58090c.tar.zst yuzu-a39a65cbe0d787587ad686fbd9474703ac58090c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h index 6b3b67113..9d37b971a 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h +++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h @@ -10,6 +10,7 @@ #include "common/common_types.h" #include "common/swap.h" #include "core/hle/service/nvdrv/devices/nvdevice.h" +#include "core/hle/service/nvdrv/memory_manager.h" namespace Service { namespace Nvidia { @@ -19,7 +20,9 @@ class nvmap; class nvhost_as_gpu final : public nvdevice { public: - nvhost_as_gpu(std::shared_ptr<nvmap> nvmap_dev) : nvdevice(), nvmap_dev(std::move(nvmap_dev)) {} + nvhost_as_gpu(std::shared_ptr<nvmap> nvmap_dev) : nvdevice(), nvmap_dev(std::move(nvmap_dev)) { + memory_manager = std::make_shared<MemoryManager>(); + } ~nvhost_as_gpu() override = default; u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override; @@ -98,6 +101,7 @@ private: u32 GetVARegions(const std::vector<u8>& input, std::vector<u8>& output); std::shared_ptr<nvmap> nvmap_dev; + std::shared_ptr<MemoryManager> memory_manager; }; } // namespace Devices |