Merge pull request #46256 from hpvb/dri-prime-amd-master

Add 'AMD' GPU vendor name to PRIME detector
This commit is contained in:
Hein-Pieter van Braam 2021-02-20 17:18:46 +01:00 committed by GitHub
commit d4d7535524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];