diff options
author | David <25727384+ogniK5377@users.noreply.github.com> | 2018-05-22 23:41:19 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-05-22 23:41:19 +0200 |
commit | 58d90787429e7e29dbcf3520de7b6a24610612c1 (patch) | |
tree | 194b08989ab2870e33cfb8a4d764a13f39a2933b /src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp | |
parent | Merge pull request #456 from Subv/unmap_buffer (diff) | |
download | yuzu-58d90787429e7e29dbcf3520de7b6a24610612c1.tar yuzu-58d90787429e7e29dbcf3520de7b6a24610612c1.tar.gz yuzu-58d90787429e7e29dbcf3520de7b6a24610612c1.tar.bz2 yuzu-58d90787429e7e29dbcf3520de7b6a24610612c1.tar.lz yuzu-58d90787429e7e29dbcf3520de7b6a24610612c1.tar.xz yuzu-58d90787429e7e29dbcf3520de7b6a24610612c1.tar.zst yuzu-58d90787429e7e29dbcf3520de7b6a24610612c1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp index 25e3ccef6..03126aeee 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp @@ -32,6 +32,8 @@ u32 nvhost_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u return AllocGPFIFOEx2(input, output); case IoctlCommand::IocAllocObjCtxCommand: return AllocateObjectContext(input, output); + case IoctlCommand::IocChannelGetWaitbaseCommand: + return GetWaitbase(input, output); } if (command.group == NVGPU_IOCTL_MAGIC) { @@ -138,4 +140,13 @@ u32 nvhost_gpu::SubmitGPFIFO(const std::vector<u8>& input, std::vector<u8>& outp return 0; } +u32 nvhost_gpu::GetWaitbase(const std::vector<u8>& input, std::vector<u8>& output) { + IoctlGetWaitbase params{}; + std::memcpy(¶ms, input.data(), sizeof(IoctlGetWaitbase)); + NGLOG_INFO(Service_NVDRV, "called, unknown=0x{:X}", params.unknown); + params.value = 0; // Seems to be hard coded at 0 + std::memcpy(output.data(), ¶ms, output.size()); + return 0; +} + } // namespace Service::Nvidia::Devices |