summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/devices
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-08 03:31:06 +0100
committerbunnei <bunneidev@gmail.com>2018-02-08 04:55:09 +0100
commit703880c9ab4212f728496185ff73023012e141e5 (patch)
tree82eeedde4845b9d9622154978c6f80723475af50 /src/core/hle/service/nvdrv/devices
parentMerge pull request #168 from mailwl/new-stubs (diff)
downloadyuzu-703880c9ab4212f728496185ff73023012e141e5.tar
yuzu-703880c9ab4212f728496185ff73023012e141e5.tar.gz
yuzu-703880c9ab4212f728496185ff73023012e141e5.tar.bz2
yuzu-703880c9ab4212f728496185ff73023012e141e5.tar.lz
yuzu-703880c9ab4212f728496185ff73023012e141e5.tar.xz
yuzu-703880c9ab4212f728496185ff73023012e141e5.tar.zst
yuzu-703880c9ab4212f728496185ff73023012e141e5.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp1
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h8
2 files changed, 8 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
index 11ab25545..3701c182f 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp
@@ -5,6 +5,7 @@
#include "common/assert.h"
#include "common/logging/log.h"
#include "core/hle/service/nvdrv/devices/nvhost_as_gpu.h"
+#include "core/hle/service/nvdrv/devices/nvmap.h"
namespace Service {
namespace Nvidia {
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 06c256d5d..6b3b67113 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.h
@@ -4,6 +4,8 @@
#pragma once
+#include <memory>
+#include <utility>
#include <vector>
#include "common/common_types.h"
#include "common/swap.h"
@@ -13,9 +15,11 @@ namespace Service {
namespace Nvidia {
namespace Devices {
+class nvmap;
+
class nvhost_as_gpu final : public nvdevice {
public:
- nvhost_as_gpu() = default;
+ nvhost_as_gpu(std::shared_ptr<nvmap> nvmap_dev) : nvdevice(), nvmap_dev(std::move(nvmap_dev)) {}
~nvhost_as_gpu() override = default;
u32 ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u8>& output) override;
@@ -92,6 +96,8 @@ private:
u32 MapBufferEx(const std::vector<u8>& input, std::vector<u8>& output);
u32 BindChannel(const std::vector<u8>& input, std::vector<u8>& output);
u32 GetVARegions(const std::vector<u8>& input, std::vector<u8>& output);
+
+ std::shared_ptr<nvmap> nvmap_dev;
};
} // namespace Devices