diff options
author | namkazy <nam.kazt.91@gmail.com> | 2020-02-16 05:53:03 +0100 |
---|---|---|
committer | namkazy <nam.kazt.91@gmail.com> | 2020-02-16 05:53:03 +0100 |
commit | 7fadc9c180fca37080f34e00d486c75d156b4615 (patch) | |
tree | d51c3e80b34ec2fd88ca3741a95f9ab5b936b8f1 /src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp | |
parent | Merge pull request #3419 from yuzu-emu/revert-3386-gpu-mem-interface (diff) | |
download | yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar.gz yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar.bz2 yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar.lz yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar.xz yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.tar.zst yuzu-7fadc9c180fca37080f34e00d486c75d156b4615.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp | 12 |
1 files changed, 12 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 6d8bca8bb..f1966ac0e 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp @@ -44,6 +44,8 @@ u32 nvhost_gpu::ioctl(Ioctl command, const std::vector<u8>& input, const std::ve return GetWaitbase(input, output); case IoctlCommand::IocChannelSetTimeoutCommand: return ChannelSetTimeout(input, output); + case IoctlCommand::IocChannelSetTimeslice: + return ChannelSetTimeslice(input, output); default: break; } @@ -228,4 +230,14 @@ u32 nvhost_gpu::ChannelSetTimeout(const std::vector<u8>& input, std::vector<u8>& return 0; } +u32 nvhost_gpu::ChannelSetTimeslice(const std::vector<u8>& input, std::vector<u8>& output) { + IoctlSetTimeslice params{}; + std::memcpy(¶ms, input.data(), sizeof(IoctlSetTimeslice)); + LOG_INFO(Service_NVDRV, "called, timeslice=0x{:X}", params.timeslice); + + channel_timeslice = params.timeslice; + + return 0; +} + } // namespace Service::Nvidia::Devices |