diff options
author | Hein-Pieter van Braam-Stewart <hp@tmm.cx> | 2021-02-20 16:49:06 +0100 |
---|---|---|
committer | Hein-Pieter van Braam-Stewart <hp@tmm.cx> | 2021-02-20 16:49:06 +0100 |
commit | e6a5899646a52d1b84181efc1b4e7ed531d58f45 (patch) | |
tree | 3be3380314d2dc5b6265e46602a339c9e325b5e5 /platform | |
parent | ed8333f6bc7d0f6b721a5ddf610f1e76793cb78e (diff) |
Add 'AMD' GPU vendor name to PRIME detector
Apparently some recent Mesa version also changed AMD's vendor string. In
addition I found a small uninitialized variable that's corrected now.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linuxbsd/detect_prime_x11.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/linuxbsd/detect_prime_x11.cpp b/platform/linuxbsd/detect_prime_x11.cpp index 0f8d108dff..da1c95a593 100644 --- a/platform/linuxbsd/detect_prime_x11.cpp +++ b/platform/linuxbsd/detect_prime_x11.cpp @@ -61,6 +61,7 @@ struct vendor { vendor vendormap[] = { { "Advanced Micro Devices, Inc.", 30 }, + { "AMD", 30 }, { "NVIDIA Corporation", 30 }, { "X.Org", 30 }, { "Intel Open Source Technology Center", 20 }, @@ -128,7 +129,7 @@ void create_context() { int detect_prime() { pid_t p; - int priorities[2]; + int priorities[2] = {}; String vendors[2]; String renderers[2]; |