From e3919ece285121b544218a1437a54c1b62624b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Thu, 27 Feb 2020 22:48:26 +0100 Subject: [PATCH] Added ADL (AMD Display Library) overdrive version to the report. --- Hardware/ATI/ATIGPU.cs | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Hardware/ATI/ATIGPU.cs b/Hardware/ATI/ATIGPU.cs index 28e9545..5cd6b00 100644 --- a/Hardware/ATI/ATIGPU.cs +++ b/Hardware/ATI/ATIGPU.cs @@ -10,6 +10,7 @@ using System; using System.Globalization; +using System.Text; namespace OpenHardwareMonitor.Hardware.ATI { internal sealed class ATIGPU : Hardware { @@ -166,6 +167,36 @@ namespace OpenHardwareMonitor.Hardware.ATI { } + public override string GetReport() { + var r = new StringBuilder(); + + r.AppendLine("AMD GPU"); + r.AppendLine(); + + r.Append("AdapterIndex: "); + r.AppendLine(adapterIndex.ToString(CultureInfo.InvariantCulture)); + r.AppendLine(); + + r.AppendLine("ADL Overdrive"); + r.AppendLine(); + int status = ADL.ADL_Overdrive_Caps(adapterIndex, + out int supported, out int enabled, out int version); + + r.Append(" Status: "); + r.AppendLine(status == ADL.ADL_OK ? "OK" : + status.ToString(CultureInfo.InvariantCulture)); + r.Append(" Supported: "); + r.AppendLine(supported.ToString(CultureInfo.InvariantCulture)); + r.Append(" Enabled: "); + r.AppendLine(enabled.ToString(CultureInfo.InvariantCulture)); + r.Append(" Version: "); + r.AppendLine(version.ToString(CultureInfo.InvariantCulture)); + + r.AppendLine(); + + return r.ToString(); + } + public override void Update() { if (context != IntPtr.Zero && overdriveVersion >= 7) { GetODNTemperature(ADLODNTemperatureType.CORE, temperatureCore);