Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jp7677/dxvk-nvapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Bogacki <krzysztof.bogacki@leancode.pl>2022-06-06 04:01:09 +0300
committerJens Peters <jp7677@gmail.com>2022-06-25 01:53:54 +0300
commitc95cb5c8a03c672a880f1527485bb9f2683a4119 (patch)
tree95111e5eb124deb15ec750f8e106e3ff06c23b59
parentd821c9fdf32f19adcf3ddb91a3ac214f60579933 (diff)
nvml: Fix minor inconsistency in method names
-rw-r--r--src/nvapi_gpu.cpp2
-rw-r--r--src/sysinfo/nvapi_adapter.cpp2
-rw-r--r--src/sysinfo/nvapi_adapter.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/nvapi_gpu.cpp b/src/nvapi_gpu.cpp
index 91f0968..5f02734 100644
--- a/src/nvapi_gpu.cpp
+++ b/src/nvapi_gpu.cpp
@@ -479,7 +479,7 @@ extern "C" {
return HandleInvalidated(str::format(n, ": NVML available but current adapter is not NVML compatible"), alreadyLoggedHandleInvalidated);
nvmlPstates_t pState;
- auto result = adapter->GetNvmlPerformanceState(&pState);
+ auto result = adapter->GetNvmlDevicePerformanceState(&pState);
switch (result) {
case NVML_SUCCESS:
*pCurrentPstate = static_cast<NV_GPU_PERF_PSTATE_ID>(pState);
diff --git a/src/sysinfo/nvapi_adapter.cpp b/src/sysinfo/nvapi_adapter.cpp
index 35357d2..571a7bb 100644
--- a/src/sysinfo/nvapi_adapter.cpp
+++ b/src/sysinfo/nvapi_adapter.cpp
@@ -262,7 +262,7 @@ namespace dxvk {
return m_nvml.DeviceGetVbiosVersion(m_nvmlDevice, version, length);
}
- nvmlReturn_t NvapiAdapter::GetNvmlPerformanceState(nvmlPstates_t* pState) const {
+ nvmlReturn_t NvapiAdapter::GetNvmlDevicePerformanceState(nvmlPstates_t* pState) const {
return m_nvml.DeviceGetPerformanceState(m_nvmlDevice, pState);
}
diff --git a/src/sysinfo/nvapi_adapter.h b/src/sysinfo/nvapi_adapter.h
index 831c704..efc35aa 100644
--- a/src/sysinfo/nvapi_adapter.h
+++ b/src/sysinfo/nvapi_adapter.h
@@ -34,7 +34,7 @@ namespace dxvk {
[[nodiscard]] nvmlReturn_t GetNvmlDeviceTemperature(nvmlTemperatureSensors_t sensorType, unsigned int* temp) const;
[[nodiscard]] nvmlReturn_t GetNvmlDeviceUtilizationRates(nvmlUtilization_t* utilization) const;
[[nodiscard]] nvmlReturn_t GetNvmlDeviceVbiosVersion(char* version, unsigned int length) const;
- [[nodiscard]] nvmlReturn_t GetNvmlPerformanceState(nvmlPstates_t* pState) const;
+ [[nodiscard]] nvmlReturn_t GetNvmlDevicePerformanceState(nvmlPstates_t* pState) const;
[[nodiscard]] nvmlReturn_t GetNvmlDeviceClockInfo(nvmlClockType_t type, unsigned int* clock) const;
private: