diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2021-02-20 17:18:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 17:18:46 +0100 |
commit | d4d753552495dda0eefcdd69228eb4ed4ddc5447 (patch) | |
tree | 103ffa5be511d82c2d067113db9444df0fa1045c | |
parent | 29d5976d929674550d785a1c5971a223f2e1e88e (diff) | |
parent | e6a5899646a52d1b84181efc1b4e7ed531d58f45 (diff) |
Merge pull request #46256 from hpvb/dri-prime-amd-master
Add 'AMD' GPU vendor name to PRIME detector
-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]; |