aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMrPurple666 <antoniosacramento666usa@gmail.com>2025-04-11 17:50:05 -0300
committerMrPurple666 <antoniosacramento666usa@gmail.com>2025-04-12 22:54:32 -0300
commitf9f311c01448600535392e2222358e338d43d1ae (patch)
tree3aaa6fa814bea2d08c2f9a5696a7f80fee744fa4 /src
parenta6c9177ad1130636a497bad5c38f8b39f1966b30 (diff)
Revert "Merge branch 'pr-12'"
This reverts commit dfe104bbb96b52f47943462c296ecbcb046dffdf, reversing changes made to 45683a4034849fdf3bc8ca52592ddc2ee4e804c5.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
index af110c2148..ddd85678b2 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp
@@ -45,8 +45,6 @@ NvResult nvhost_ctrl_gpu::Ioctl1(DeviceFD fd, Ioctl command, std::span<const u8>
return WrapFixed(this, &nvhost_ctrl_gpu::GetActiveSlotMask, input, output);
case 0x1c:
return WrapFixed(this, &nvhost_ctrl_gpu::GetGpuTime, input, output);
- case 0x13:
- return WrapFixed(this, &nvhost_ctrl_gpu::GetTpcMasks2, input, output);
default:
break;
}
@@ -73,23 +71,6 @@ NvResult nvhost_ctrl_gpu::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8>
case 0x6:
return WrapFixedInlOut(this, &nvhost_ctrl_gpu::GetTPCMasks3, input, output,
inline_output);
- case 0x13: {
- // NVGPU_GPU_IOCTL_NUM_VSMS
- struct Parameters {
- u32 num_vsms; // Output: number of SM units
- u32 reserved; // Output: reserved/padding
- };
- static_assert(sizeof(Parameters) == 8, "Parameters is incorrect size");
-
- // The Tegra X1 used in Switch has 2 SM units
- Parameters params{
- .num_vsms = 2,
- .reserved = 0
- };
-
- std::memcpy(output.data(), &params, sizeof(Parameters));
- return NvResult::Success;
- }
default:
break;
}
@@ -97,8 +78,7 @@ NvResult nvhost_ctrl_gpu::Ioctl3(DeviceFD fd, Ioctl command, std::span<const u8>
default:
break;
}
- UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}, group={:01X}, command={:01X}", command.raw,
- command.group, command.cmd);
+ UNIMPLEMENTED_MSG("Unimplemented ioctl={:08X}", command.raw);
return NvResult::NotImplemented;
}