aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nvdrv/nvdrv_interface.cpp
diff options
context:
space:
mode:
authorTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-29 03:39:29 -0400
committerTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-29 03:39:29 -0400
commitea6c1193fbfa95e586bb6d129dc684163a12cb3e (patch)
treee4d23143900184630deeabe27eab1321dac4a428 /src/core/hle/service/nvdrv/nvdrv_interface.cpp
parent0bb5055b6541c74f47603a8dff0569a509cbaf18 (diff)
Revert "Import experimental NS2 support and accumulated GPU fixes"
This reverts commit 535b676970. The Switch 2 support comes from the nx2 work instead, merged next.
Diffstat (limited to 'src/core/hle/service/nvdrv/nvdrv_interface.cpp')
-rw-r--r--src/core/hle/service/nvdrv/nvdrv_interface.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/core/hle/service/nvdrv/nvdrv_interface.cpp b/src/core/hle/service/nvdrv/nvdrv_interface.cpp
index 3f81720a39..5fae68adbb 100644
--- a/src/core/hle/service/nvdrv/nvdrv_interface.cpp
+++ b/src/core/hle/service/nvdrv/nvdrv_interface.cpp
@@ -72,10 +72,6 @@ void NVDRV::Ioctl1(HLERequestContext& ctx) {
const auto input_buffer = ctx.ReadBuffer(0);
const auto nv_result = nvdrv->Ioctl1(fd, command, input_buffer, output_buffer);
- if (nv_result != NvResult::Success && ctx.GetThread().GetOwnerProcess()->UsesPAuthReturns()) {
- LOG_DEBUG(Service_NVDRV, "native ioctl failure fd={}, ioctl={:#x}, result={}, caller={:#x}",
- fd, command.raw, static_cast<u32>(nv_result), ctx.GetThread().GetContext().lr);
- }
if (command.is_out != 0) {
ctx.WriteBuffer(output_buffer);
}
@@ -103,10 +99,6 @@ void NVDRV::Ioctl2(HLERequestContext& ctx) {
const auto nv_result =
nvdrv->Ioctl2(fd, command, input_buffer, input_inlined_buffer, output_buffer);
- if (nv_result != NvResult::Success && ctx.GetThread().GetOwnerProcess()->UsesPAuthReturns()) {
- LOG_DEBUG(Service_NVDRV, "native ioctl failure fd={}, ioctl={:#x}, result={}, caller={:#x}",
- fd, command.raw, static_cast<u32>(nv_result), ctx.GetThread().GetContext().lr);
- }
if (command.is_out != 0) {
ctx.WriteBuffer(output_buffer);
}
@@ -134,11 +126,6 @@ void NVDRV::Ioctl3(HLERequestContext& ctx) {
const auto nv_result =
nvdrv->Ioctl3(fd, command, input_buffer, output_buffer, inline_output_buffer);
- if (command.raw == 0xc0e04705) {
- LOG_DEBUG(Service_NVDRV, "native characteristics input={}, output={}, inline={}, result={}",
- input_buffer.size(), output_buffer.size(), inline_output_buffer.size(),
- static_cast<u32>(nv_result));
- }
if (command.is_out != 0) {
ctx.WriteBuffer(output_buffer, 0);
ctx.WriteBuffer(inline_output_buffer, 1);
@@ -198,10 +185,6 @@ void NVDRV::QueryEvent(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto fd = rp.Pop<DeviceFD>();
const auto event_id = rp.Pop<u32>();
- if (ctx.GetThread().GetOwnerProcess()->UsesPAuthReturns()) {
- LOG_DEBUG(Service_NVDRV, "native QueryEvent fd={}, id={}, caller={:#x}", fd, event_id,
- ctx.GetThread().GetContext().lr);
- }
if (!is_initialized) {
ServiceError(ctx, NvResult::NotInitialized);
@@ -282,14 +265,6 @@ NVDRV::NVDRV(Core::System& system_, std::shared_ptr<Module> nvdrv_, const char*
RegisterHandlers(functions);
}
-NVDRV::NVDRV(Core::System& system, std::shared_ptr<Module> module, const char* name,
- Kernel::KProcess* process, u64 aruid)
- : NVDRV{system, std::move(module), name} {
- session_id = nvdrv->GetContainer().OpenSession(process);
- pid = aruid;
- is_initialized = true;
-}
-
NVDRV::~NVDRV() {
if (is_initialized) {
auto& container = nvdrv->GetContainer();