mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-22 20:39:20 +01:00
Fixup GpuChannel::SetNvmapFd to take an FD rather than an nvmap handle
This commit is contained in:
parent
386a3447a8
commit
eb6f052873
@ -65,8 +65,8 @@ namespace skyline::service::nvdrv::device::nvhost {
|
||||
mem[offset++] = (fence.id << 8) | 0x1;
|
||||
}
|
||||
|
||||
PosixResult GpuChannel::SetNvmapFd(In<core::NvMap::Handle::Id> id) {
|
||||
state.logger->Debug("id: {}", id);
|
||||
PosixResult GpuChannel::SetNvmapFd(In<FileDescriptor> fd) {
|
||||
state.logger->Debug("fd: {}", fd);
|
||||
return PosixResult::Success;
|
||||
}
|
||||
|
||||
@ -224,7 +224,7 @@ namespace skyline::service::nvdrv::device::nvhost {
|
||||
|
||||
VARIABLE_IOCTL_HANDLER_FUNC(GpuChannel, ({
|
||||
IOCTL_CASE_ARGS(IN, SIZE(0x4), MAGIC(GpuChannelMagic), FUNC(0x1),
|
||||
SetNvmapFd, ARGS(In<core::NvMap::Handle::Id>))
|
||||
SetNvmapFd, ARGS(In<FileDescriptor>))
|
||||
IOCTL_CASE_ARGS(IN, SIZE(0x4), MAGIC(GpuChannelMagic), FUNC(0x3),
|
||||
SetTimeout, ARGS(In<u32>))
|
||||
IOCTL_CASE_ARGS(INOUT, SIZE(0x10), MAGIC(GpuChannelMagic), FUNC(0x9),
|
||||
|
@ -57,7 +57,7 @@ namespace skyline::service::nvdrv::device::nvhost {
|
||||
* @brief Sets the nvmap handle id to be used for channel submits (does nothing for GPU channels)
|
||||
* @url https://switchbrew.org/wiki/NV_services#NVGPU_IOCTL_CHANNEL_SET_NVMAP_FD
|
||||
*/
|
||||
PosixResult SetNvmapFd(In<core::NvMap::Handle::Id> id);
|
||||
PosixResult SetNvmapFd(In<FileDescriptor> id);
|
||||
|
||||
/**
|
||||
* @brief Sets the timeout for channel submits
|
||||
|
Loading…
Reference in New Issue
Block a user