diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-19 17:15:01 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-19 17:15:01 +0900 |
commit | c73167415c76ec418fa2aa3ef45df6b3e0d55df8 (patch) | |
tree | 3f8db254c0a6798ff15efa748017a8e95b286898 | |
parent | e15cafc78b80ca281f9460d533af0c94e56cc990 (diff) |
Linux: AMD GPUの情報対応
-rw-r--r-- | src/gpu.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 && |