diff options
author | Liam <byteslice@airmail.cc> | 2023-10-24 19:30:35 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-10-25 19:05:56 +0200 |
commit | efdb2e8f3dfc1106ee601a2e0cc479c35aa83698 (patch) | |
tree | ff77b31bb6437e8501f1d70c0f2251454070f540 /src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp | |
parent | nvdrv: convert nvhost_gpu (diff) | |
download | yuzu-efdb2e8f3dfc1106ee601a2e0cc479c35aa83698.tar yuzu-efdb2e8f3dfc1106ee601a2e0cc479c35aa83698.tar.gz yuzu-efdb2e8f3dfc1106ee601a2e0cc479c35aa83698.tar.bz2 yuzu-efdb2e8f3dfc1106ee601a2e0cc479c35aa83698.tar.lz yuzu-efdb2e8f3dfc1106ee601a2e0cc479c35aa83698.tar.xz yuzu-efdb2e8f3dfc1106ee601a2e0cc479c35aa83698.tar.zst yuzu-efdb2e8f3dfc1106ee601a2e0cc479c35aa83698.zip |
Diffstat (limited to 'src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp index a05c8cdae..23a57c4d5 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_nvjpg.cpp @@ -5,6 +5,7 @@ #include "common/assert.h" #include "common/logging/log.h" +#include "core/hle/service/nvdrv/devices/ioctl_serialization.h" #include "core/hle/service/nvdrv/devices/nvhost_nvjpg.h" namespace Service::Nvidia::Devices { @@ -18,7 +19,7 @@ NvResult nvhost_nvjpg::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> in case 'H': switch (command.cmd) { case 0x1: - return SetNVMAPfd(input, output); + return Wrap1(&nvhost_nvjpg::SetNVMAPfd, input, output); default: break; } @@ -46,9 +47,7 @@ NvResult nvhost_nvjpg::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8> in void nvhost_nvjpg::OnOpen(DeviceFD fd) {} void nvhost_nvjpg::OnClose(DeviceFD fd) {} -NvResult nvhost_nvjpg::SetNVMAPfd(std::span<const u8> input, std::span<u8> output) { - IoctlSetNvmapFD params{}; - std::memcpy(¶ms, input.data(), input.size()); +NvResult nvhost_nvjpg::SetNVMAPfd(IoctlSetNvmapFD& params) { LOG_DEBUG(Service_NVDRV, "called, fd={}", params.nvmap_fd); nvmap_fd = params.nvmap_fd; |