summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-10-25 06:34:40 +0200
committerLiam <byteslice@airmail.cc>2023-10-25 19:05:56 +0200
commit723df0f3685f01ce5a0330d567932136a9de7a8f (patch)
tree5b26229e14b70dba5d59d9265b750e5edff874b5 /src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp
parentnvdrv: fix up remaining copy calls (diff)
downloadyuzu-723df0f3685f01ce5a0330d567932136a9de7a8f.tar
yuzu-723df0f3685f01ce5a0330d567932136a9de7a8f.tar.gz
yuzu-723df0f3685f01ce5a0330d567932136a9de7a8f.tar.bz2
yuzu-723df0f3685f01ce5a0330d567932136a9de7a8f.tar.lz
yuzu-723df0f3685f01ce5a0330d567932136a9de7a8f.tar.xz
yuzu-723df0f3685f01ce5a0330d567932136a9de7a8f.tar.zst
yuzu-723df0f3685f01ce5a0330d567932136a9de7a8f.zip
Diffstat (limited to 'src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp
index 74790a7d8..f43914e1b 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp
@@ -26,18 +26,18 @@ NvResult nvhost_nvdec::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> in
if (!host1x_file.fd_to_id.contains(fd)) {
host1x_file.fd_to_id[fd] = host1x_file.nvdec_next_id++;
}
- return Submit(fd, input, output);
+ return WrapFixedVariable(this, &nvhost_nvdec::Submit, input, output, fd);
}
case 0x2:
- return Wrap1(&nvhost_nvdec::GetSyncpoint, input, output);
+ return WrapFixed(this, &nvhost_nvdec::GetSyncpoint, input, output);
case 0x3:
- return Wrap1(&nvhost_nvdec::GetWaitbase, input, output);
+ return WrapFixed(this, &nvhost_nvdec::GetWaitbase, input, output);
case 0x7:
- return Wrap1(&nvhost_nvdec::SetSubmitTimeout, input, output);
+ return WrapFixed(this, &nvhost_nvdec::SetSubmitTimeout, input, output);
case 0x9:
- return MapBuffer(input, output);
+ return WrapFixedVariable(this, &nvhost_nvdec::MapBuffer, input, output);
case 0xa:
- return UnmapBuffer(input, output);
+ return WrapFixedVariable(this, &nvhost_nvdec::UnmapBuffer, input, output);
default:
break;
}
@@ -45,7 +45,7 @@ NvResult nvhost_nvdec::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8> in
case 'H':
switch (command.cmd) {
case 0x1:
- return Wrap1(&nvhost_nvdec::SetNVMAPfd, input, output);
+ return WrapFixed(this, &nvhost_nvdec::SetNVMAPfd, input, output);
default:
break;
}