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.
This commit is contained in:
parent
3f2cfe9b07
commit
92687b4544
1 changed files with 2 additions and 1 deletions
|
@ -61,6 +61,7 @@ struct vendor {
|
||||||
|
|
||||||
vendor vendormap[] = {
|
vendor vendormap[] = {
|
||||||
{ "Advanced Micro Devices, Inc.", 30 },
|
{ "Advanced Micro Devices, Inc.", 30 },
|
||||||
|
{ "AMD", 30 },
|
||||||
{ "NVIDIA Corporation", 30 },
|
{ "NVIDIA Corporation", 30 },
|
||||||
{ "X.Org", 30 },
|
{ "X.Org", 30 },
|
||||||
{ "Intel Open Source Technology Center", 20 },
|
{ "Intel Open Source Technology Center", 20 },
|
||||||
|
@ -128,7 +129,7 @@ void create_context() {
|
||||||
|
|
||||||
int detect_prime() {
|
int detect_prime() {
|
||||||
pid_t p;
|
pid_t p;
|
||||||
int priorities[2];
|
int priorities[2] = {};
|
||||||
String vendors[2];
|
String vendors[2];
|
||||||
String renderers[2];
|
String renderers[2];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue