diff options
author | mailwl <mailwl@gmail.com> | 2018-05-24 08:00:15 +0200 |
---|---|---|
committer | mailwl <mailwl@gmail.com> | 2018-05-24 15:49:34 +0200 |
commit | e6a87428ae71140d04ba36fa77252b0cb3c70db6 (patch) | |
tree | c32d7a514f19ed190aa3a4bdecc46fee6b76c62d /src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp | |
parent | Merge pull request #464 from bunnei/fix-msvc (diff) | |
download | yuzu-e6a87428ae71140d04ba36fa77252b0cb3c70db6.tar yuzu-e6a87428ae71140d04ba36fa77252b0cb3c70db6.tar.gz yuzu-e6a87428ae71140d04ba36fa77252b0cb3c70db6.tar.bz2 yuzu-e6a87428ae71140d04ba36fa77252b0cb3c70db6.tar.lz yuzu-e6a87428ae71140d04ba36fa77252b0cb3c70db6.tar.xz yuzu-e6a87428ae71140d04ba36fa77252b0cb3c70db6.tar.zst yuzu-e6a87428ae71140d04ba36fa77252b0cb3c70db6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp | 9 |
1 files changed, 9 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 03126aeee..79aab87f9 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp @@ -34,6 +34,8 @@ u32 nvhost_gpu::ioctl(Ioctl command, const std::vector<u8>& input, std::vector<u return AllocateObjectContext(input, output); case IoctlCommand::IocChannelGetWaitbaseCommand: return GetWaitbase(input, output); + case IoctlCommand::IocChannelSetTimeoutCommand: + return ChannelSetTimeout(input, output); } if (command.group == NVGPU_IOCTL_MAGIC) { @@ -149,4 +151,11 @@ u32 nvhost_gpu::GetWaitbase(const std::vector<u8>& input, std::vector<u8>& outpu return 0; } +u32 nvhost_gpu::ChannelSetTimeout(const std::vector<u8>& input, std::vector<u8>& output) { + IoctlChannelSetTimeout params{}; + std::memcpy(¶ms, input.data(), sizeof(IoctlChannelSetTimeout)); + NGLOG_INFO(Service_NVDRV, "called, timeout=0x{:X}", params.timeout); + return 0; +} + } // namespace Service::Nvidia::Devices |