Fix Metroid
This commit is contained in:
parent
ff71937776
commit
8d8d08d321
2 changed files with 16 additions and 0 deletions
|
|
@ -44,6 +44,8 @@ NvResult nvhost_ctrl_gpu::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8>
|
|||
return WrapFixed(this, &nvhost_ctrl_gpu::GetTPCMasks1, input, output);
|
||||
case 0x7:
|
||||
return WrapFixed(this, &nvhost_ctrl_gpu::FlushL2, input, output);
|
||||
case 0x13:
|
||||
return WrapFixed(this, &nvhost_ctrl_gpu::GetGpuLoad, input, output);
|
||||
case 0x14:
|
||||
return WrapFixed(this, &nvhost_ctrl_gpu::GetActiveSlotMask, input, output);
|
||||
case 0x1c:
|
||||
|
|
@ -247,6 +249,13 @@ NvResult nvhost_ctrl_gpu::GetGpuTime(IoctlGetGpuTime& params) {
|
|||
return NvResult::Success;
|
||||
}
|
||||
|
||||
NvResult nvhost_ctrl_gpu::GetGpuLoad(IoctlGetGpuLoad& params) {
|
||||
LOG_DEBUG(Service_NVDRV, "called");
|
||||
params.load = 0;
|
||||
params.padding = 0;
|
||||
return NvResult::Success;
|
||||
}
|
||||
|
||||
Kernel::KEvent* nvhost_ctrl_gpu::QueryEvent(u32 event_id) {
|
||||
switch (event_id) {
|
||||
case 1:
|
||||
|
|
|
|||
|
|
@ -151,6 +151,12 @@ private:
|
|||
};
|
||||
static_assert(sizeof(IoctlGetGpuTime) == 0x10, "IoctlGetGpuTime is incorrect size");
|
||||
|
||||
struct IoctlGetGpuLoad {
|
||||
u32_le load;
|
||||
u32_le padding;
|
||||
};
|
||||
static_assert(sizeof(IoctlGetGpuLoad) == 8, "IoctlGetGpuLoad is incorrect size");
|
||||
|
||||
NvResult GetCharacteristics1(IoctlCharacteristics& params);
|
||||
NvResult GetCharacteristics3(IoctlCharacteristics& params,
|
||||
std::span<IoctlGpuCharacteristics> gpu_characteristics);
|
||||
|
|
@ -165,6 +171,7 @@ private:
|
|||
NvResult ZBCQueryTable(IoctlZbcQueryTable& params);
|
||||
NvResult FlushL2(IoctlFlushL2& params);
|
||||
NvResult GetGpuTime(IoctlGetGpuTime& params);
|
||||
NvResult GetGpuLoad(IoctlGetGpuLoad& params);
|
||||
|
||||
EventInterface& events_interface;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue