diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2018-07-10 06:10:17 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2018-07-10 06:10:17 +0200 |
commit | 0944bfe3cbb6aad01a1a4c8fef3644c98421c272 (patch) | |
tree | 91dc7717bc504c340acd55cdce5c9f8f3ccb9bcb /src/core/hle/service/nvdrv/devices | |
parent | Merge pull request #636 from FearlessTobi/add-gitignore (diff) | |
download | yuzu-0944bfe3cbb6aad01a1a4c8fef3644c98421c272.tar yuzu-0944bfe3cbb6aad01a1a4c8fef3644c98421c272.tar.gz yuzu-0944bfe3cbb6aad01a1a4c8fef3644c98421c272.tar.bz2 yuzu-0944bfe3cbb6aad01a1a4c8fef3644c98421c272.tar.lz yuzu-0944bfe3cbb6aad01a1a4c8fef3644c98421c272.tar.xz yuzu-0944bfe3cbb6aad01a1a4c8fef3644c98421c272.tar.zst yuzu-0944bfe3cbb6aad01a1a4c8fef3644c98421c272.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp index 315f81e90..671b092e1 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp @@ -29,24 +29,9 @@ u32 nvhost_ctrl::ioctl(Ioctl command, const std::vector<u8>& input, std::vector< u32 nvhost_ctrl::NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>& output) { IocGetConfigParams params{}; std::memcpy(¶ms, input.data(), sizeof(params)); - LOG_DEBUG(Service_NVDRV, "called, setting={}!{}", params.domain_str.data(), + LOG_TRACE(Service_NVDRV, "called, setting={}!{}", params.domain_str.data(), params.param_str.data()); - - if (!strcmp(params.domain_str.data(), "nv")) { - if (!strcmp(params.param_str.data(), "NV_MEMORY_PROFILER")) { - params.config_str[0] = '0'; - } else if (!strcmp(params.param_str.data(), "NVN_THROUGH_OPENGL")) { - params.config_str[0] = '0'; - } else if (!strcmp(params.param_str.data(), "NVRM_GPU_PREVENT_USE")) { - params.config_str[0] = '0'; - } else { - params.config_str[0] = '0'; - } - } else { - UNIMPLEMENTED(); // unknown domain? Only nv has been seen so far on hardware - } - std::memcpy(output.data(), ¶ms, sizeof(params)); - return 0; + return 0x30006; // Returns error on production mode } u32 nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& output, |