mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-26 08:35:47 +01:00
service/nvdrv: Silence -Wswitch
This commit is contained in:
parent
5c907f85fc
commit
8d0b1a957e
@ -45,6 +45,8 @@ u32 nvhost_as_gpu::ioctl(Ioctl command, const std::vector<u8>& input, const std:
|
|||||||
return GetVARegions(input, output);
|
return GetVARegions(input, output);
|
||||||
case IoctlCommand::IocUnmapBufferCommand:
|
case IoctlCommand::IocUnmapBufferCommand:
|
||||||
return UnmapBuffer(input, output);
|
return UnmapBuffer(input, output);
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (static_cast<IoctlCommand>(command.cmd.Value()) == IoctlCommand::IocRemapCommand)
|
if (static_cast<IoctlCommand>(command.cmd.Value()) == IoctlCommand::IocRemapCommand)
|
||||||
|
@ -38,9 +38,10 @@ u32 nvhost_ctrl::ioctl(Ioctl command, const std::vector<u8>& input, const std::v
|
|||||||
return IocCtrlEventUnregister(input, output);
|
return IocCtrlEventUnregister(input, output);
|
||||||
case IoctlCommand::IocCtrlEventSignalCommand:
|
case IoctlCommand::IocCtrlEventSignalCommand:
|
||||||
return IocCtrlEventSignal(input, output);
|
return IocCtrlEventSignal(input, output);
|
||||||
|
default:
|
||||||
|
UNIMPLEMENTED_MSG("Unimplemented ioctl");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
UNIMPLEMENTED_MSG("Unimplemented ioctl");
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 nvhost_ctrl::NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>& output) {
|
u32 nvhost_ctrl::NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>& output) {
|
||||||
|
@ -40,9 +40,10 @@ u32 nvhost_ctrl_gpu::ioctl(Ioctl command, const std::vector<u8>& input,
|
|||||||
return FlushL2(input, output);
|
return FlushL2(input, output);
|
||||||
case IoctlCommand::IocGetGpuTime:
|
case IoctlCommand::IocGetGpuTime:
|
||||||
return GetGpuTime(input, output);
|
return GetGpuTime(input, output);
|
||||||
|
default:
|
||||||
|
UNIMPLEMENTED_MSG("Unimplemented ioctl");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
UNIMPLEMENTED_MSG("Unimplemented ioctl");
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 nvhost_ctrl_gpu::GetCharacteristics(const std::vector<u8>& input, std::vector<u8>& output,
|
u32 nvhost_ctrl_gpu::GetCharacteristics(const std::vector<u8>& input, std::vector<u8>& output,
|
||||||
|
@ -44,6 +44,8 @@ u32 nvhost_gpu::ioctl(Ioctl command, const std::vector<u8>& input, const std::ve
|
|||||||
return GetWaitbase(input, output);
|
return GetWaitbase(input, output);
|
||||||
case IoctlCommand::IocChannelSetTimeoutCommand:
|
case IoctlCommand::IocChannelSetTimeoutCommand:
|
||||||
return ChannelSetTimeout(input, output);
|
return ChannelSetTimeout(input, output);
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.group == NVGPU_IOCTL_MAGIC) {
|
if (command.group == NVGPU_IOCTL_MAGIC) {
|
||||||
|
Loading…
Reference in New Issue
Block a user