summaryrefslogtreecommitdiff
path: root/src/helpers/MiscFunctions.cpp
diff options
context:
space:
mode:
authorSystem64 <72354122+System64fumo@users.noreply.github.com>2024-05-23 19:04:39 +0300
committerGitHub <noreply@github.com>2024-05-23 18:04:39 +0200
commit255272ea18a1bd899168b2d2063b6f153edda919 (patch)
tree31ee90a843e8911fb4b9fba0e8cdb6a09c31305d /src/helpers/MiscFunctions.cpp
parentdf80fbf70650dfb0d96381a1d86d30811cf516f4 (diff)
debug: Add ARM GPU info (#6212)
Added a simple way to get basic info about the GPU on ARM based systems
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
-rw-r--r--src/helpers/MiscFunctions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp
index 7382d24c..a520c9d4 100644
--- a/src/helpers/MiscFunctions.cpp
+++ b/src/helpers/MiscFunctions.cpp
@@ -649,6 +649,8 @@ void logSystemInfo() {
#if defined(__DragonFly__) || defined(__FreeBSD__)
const std::string GPUINFO = execAndGet("pciconf -lv | fgrep -A4 vga");
+#elif defined(__arm__) || defined(__aarch64__)
+ const std::string GPUINFO = execAndGet("cat /proc/device-tree/soc*/gpu*/compatible");
#else
const std::string GPUINFO = execAndGet("lspci -vnn | grep VGA");
#endif