summaryrefslogtreecommitdiff
path: root/src/gpu.c
diff options
context:
space:
mode:
author諏訪子 <suwako@076.moe>2024-06-19 17:15:01 +0900
committer諏訪子 <suwako@076.moe>2024-06-19 17:15:01 +0900
commitc73167415c76ec418fa2aa3ef45df6b3e0d55df8 (patch)
tree3f8db254c0a6798ff15efa748017a8e95b286898 /src/gpu.c
parente15cafc78b80ca281f9460d533af0c94e56cc990 (diff)
Linux: AMD GPUの情報対応
Diffstat (limited to 'src/gpu.c')
-rw-r--r--src/gpu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu.c b/src/gpu.c
index df75cdf..ea69841 100644
--- a/src/gpu.c
+++ b/src/gpu.c
@@ -51,7 +51,10 @@ const char *display_gpu() {
"sed 's/ Core Processor Integrated Graphics Controller//'");
#elif defined(__linux__)
return run_gpu_command("lspci | grep VGA | sed 's/^.*: //' | "
- "sed 's/Corporation //' | sed 's/ (.*$//'");
+ "sed 's/Corporation //' | sed 's/ (.*$//' | "
+ "sed 's/Advanced Micro Devices//' | "
+ "sed 's/, Inc. //' | sed 's/Navi [0-9]* //' | "
+ "sed 's/\\[//g' | sed 's/\\]//g'");
#else
if (
access("/bin/glxinfo", F_OK) == -1 &&