From d4b13c34eea2cfa7159cad70b167a882b7d9cdb6 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Wed, 26 May 2021 20:23:54 +0100 Subject: [PATCH] Fixup broken SetTimeslice nvdrv ioctl that was missed in conversion --- .../main/cpp/skyline/services/nvdrv/devices/nvhost_channel.cpp | 3 ++- .../main/cpp/skyline/services/nvdrv/devices/nvhost_channel.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost_channel.cpp b/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost_channel.cpp index c60dbd64..aa759a83 100644 --- a/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost_channel.cpp +++ b/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost_channel.cpp @@ -119,7 +119,8 @@ namespace skyline::service::nvdrv::device { return NvStatus::Success; } - NvStatus NvHostChannel::SetTimeslice(IoctlType type, std::span buffer, std::span inlineBuffer) { + NvStatus NvHostChannel::SetTimeslice(IoctlType type, span buffer, span inlineBuffer) { + timeslice = buffer.as(); return NvStatus::Success; } diff --git a/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost_channel.h b/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost_channel.h index 8e45ea8e..108ee646 100644 --- a/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost_channel.h +++ b/app/src/main/cpp/skyline/services/nvdrv/devices/nvhost_channel.h @@ -80,7 +80,7 @@ namespace skyline::service::nvdrv::device { * @brief Sets the timeslice of the channel * @url https://switchbrew.org/wiki/NV_services#NVGPU_IOCTL_CHANNEL_SET_TIMESLICE) */ - NvStatus SetTimeslice(IoctlType type, std::span buffer, std::span inlineBuffer); + NvStatus SetTimeslice(IoctlType type, span buffer, span inlineBuffer); /** * @brief Sets the user specific data @@ -100,6 +100,7 @@ namespace skyline::service::nvdrv::device { NVFUNC(0x480D, NvHostChannel, SetPriority), NVFUNC(0x481A, NvHostChannel, AllocGpfifoEx2), NVFUNC(0x481B, NvHostChannel, SubmitGpfifo), // Our SubmitGpfifo implementation also handles SubmitGpfifoEx + NVFUNC(0x481D, NvHostChannel, SetTimeslice), NVFUNC(0x4714, NvHostChannel, SetUserData) ) };