summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-02-12 03:30:23 +0100
committerSubv <subv2112@gmail.com>2018-02-12 03:30:23 +0100
commitba2426aa3f9b433b54e43e5dae3c596e6f3ae45d (patch)
treed8a35877596beef256e3991653d28c454f8ad0a8 /src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
parentMerge pull request #175 from bunnei/libnx-fixes-2 (diff)
downloadyuzu-ba2426aa3f9b433b54e43e5dae3c596e6f3ae45d.tar
yuzu-ba2426aa3f9b433b54e43e5dae3c596e6f3ae45d.tar.gz
yuzu-ba2426aa3f9b433b54e43e5dae3c596e6f3ae45d.tar.bz2
yuzu-ba2426aa3f9b433b54e43e5dae3c596e6f3ae45d.tar.lz
yuzu-ba2426aa3f9b433b54e43e5dae3c596e6f3ae45d.tar.xz
yuzu-ba2426aa3f9b433b54e43e5dae3c596e6f3ae45d.tar.zst
yuzu-ba2426aa3f9b433b54e43e5dae3c596e6f3ae45d.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h5
1 files changed, 2 insertions, 3 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 9d37b971a..44ffddcd9 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
@@ -20,9 +20,8 @@ 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)) {
- memory_manager = std::make_shared<MemoryManager>();
- }
+ nvhost_as_gpu(std::shared_ptr<nvmap> nvmap_dev, std::shared_ptr<MemoryManager> memory_manager)
+ : nvdevice(), nvmap_dev(std::move(nvmap_dev)), memory_manager(std::move(memory_manager)) {}
~nvhost_as_gpu() override = default;
u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override;