diff options
| -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< | |||
| 29 | u32 nvhost_ctrl::NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>& output) { | 29 | u32 nvhost_ctrl::NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>& output) { |
| 30 | IocGetConfigParams params{}; | 30 | IocGetConfigParams params{}; |
| 31 | std::memcpy(¶ms, input.data(), sizeof(params)); | 31 | std::memcpy(¶ms, input.data(), sizeof(params)); |
| 32 | LOG_DEBUG(Service_NVDRV, "called, setting={}!{}", params.domain_str.data(), | 32 | LOG_TRACE(Service_NVDRV, "called, setting={}!{}", params.domain_str.data(), |
| 33 | params.param_str.data()); | 33 | params.param_str.data()); |
| 34 | 34 | return 0x30006; // Returns error on production mode | |
| 35 | if (!strcmp(params.domain_str.data(), "nv")) { | ||
| 36 | if (!strcmp(params.param_str.data(), "NV_MEMORY_PROFILER")) { | ||
| 37 | params.config_str[0] = '0'; | ||
| 38 | } else if (!strcmp(params.param_str.data(), "NVN_THROUGH_OPENGL")) { | ||
| 39 | params.config_str[0] = '0'; | ||
| 40 | } else if (!strcmp(params.param_str.data(), "NVRM_GPU_PREVENT_USE")) { | ||
| 41 | params.config_str[0] = '0'; | ||
| 42 | } else { | ||
| 43 | params.config_str[0] = '0'; | ||
| 44 | } | ||
| 45 | } else { | ||
| 46 | UNIMPLEMENTED(); // unknown domain? Only nv has been seen so far on hardware | ||
| 47 | } | ||
| 48 | std::memcpy(output.data(), ¶ms, sizeof(params)); | ||
| 49 | return 0; | ||
| 50 | } | 35 | } |
| 51 | 36 | ||
| 52 | u32 nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& output, | 37 | u32 nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>& output, |