diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-25 05:45:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-25 05:45:24 +0100 |
commit | 932fbd5a25aae385c887afcf8342c5e6af8b7c51 (patch) | |
tree | 9ef26c56f2ecd1afa9ddb3f0e0334cde8e8af215 /src | |
parent | Merge pull request #1787 from bunnei/fix-gpu-mm (diff) | |
parent | nvdrv: Implement/stub DumpGraphicsMemoryInfo and GetStatus. (diff) | |
download | yuzu-932fbd5a25aae385c887afcf8342c5e6af8b7c51.tar yuzu-932fbd5a25aae385c887afcf8342c5e6af8b7c51.tar.gz yuzu-932fbd5a25aae385c887afcf8342c5e6af8b7c51.tar.bz2 yuzu-932fbd5a25aae385c887afcf8342c5e6af8b7c51.tar.lz yuzu-932fbd5a25aae385c887afcf8342c5e6af8b7c51.tar.xz yuzu-932fbd5a25aae385c887afcf8342c5e6af8b7c51.tar.zst yuzu-932fbd5a25aae385c887afcf8342c5e6af8b7c51.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/nvdrv/interface.cpp | 18 | ||||
-rw-r--r-- | src/core/hle/service/nvdrv/interface.h | 2 |
2 files changed, 18 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/interface.cpp b/src/core/hle/service/nvdrv/interface.cpp index ac3859353..602086eed 100644 --- a/src/core/hle/service/nvdrv/interface.cpp +++ b/src/core/hle/service/nvdrv/interface.cpp @@ -88,6 +88,20 @@ void NVDRV::FinishInitialize(Kernel::HLERequestContext& ctx) { rb.Push(RESULT_SUCCESS); } +void NVDRV::GetStatus(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service_NVDRV, "(STUBBED) called"); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); +} + +void NVDRV::DumpGraphicsMemoryInfo(Kernel::HLERequestContext& ctx) { + // According to SwitchBrew, this has no inputs and no outputs, so effectively does nothing on + // retail hardware. + LOG_DEBUG(Service_NVDRV, "called"); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); +} + NVDRV::NVDRV(std::shared_ptr<Module> nvdrv, const char* name) : ServiceFramework(name), nvdrv(std::move(nvdrv)) { static const FunctionInfo functions[] = { @@ -97,10 +111,10 @@ NVDRV::NVDRV(std::shared_ptr<Module> nvdrv, const char* name) {3, &NVDRV::Initialize, "Initialize"}, {4, &NVDRV::QueryEvent, "QueryEvent"}, {5, nullptr, "MapSharedMem"}, - {6, nullptr, "GetStatus"}, + {6, &NVDRV::GetStatus, "GetStatus"}, {7, nullptr, "ForceSetClientPID"}, {8, &NVDRV::SetClientPID, "SetClientPID"}, - {9, nullptr, "DumpGraphicsMemoryInfo"}, + {9, &NVDRV::DumpGraphicsMemoryInfo, "DumpGraphicsMemoryInfo"}, {10, nullptr, "InitializeDevtools"}, {11, &NVDRV::Ioctl, "Ioctl2"}, {12, nullptr, "Ioctl3"}, diff --git a/src/core/hle/service/nvdrv/interface.h b/src/core/hle/service/nvdrv/interface.h index d340893c2..5a1e4baa7 100644 --- a/src/core/hle/service/nvdrv/interface.h +++ b/src/core/hle/service/nvdrv/interface.h @@ -24,6 +24,8 @@ private: void QueryEvent(Kernel::HLERequestContext& ctx); void SetClientPID(Kernel::HLERequestContext& ctx); void FinishInitialize(Kernel::HLERequestContext& ctx); + void GetStatus(Kernel::HLERequestContext& ctx); + void DumpGraphicsMemoryInfo(Kernel::HLERequestContext& ctx); std::shared_ptr<Module> nvdrv; |