Skip to content

Commit

Permalink
Merge pull request #46256 from hpvb/dri-prime-amd-master
Browse files Browse the repository at this point in the history
Add 'AMD' GPU vendor name to PRIME detector
  • Loading branch information
hpvb authored Feb 20, 2021
2 parents 29d5976 + e6a5899 commit d4d7535
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/linuxbsd/detect_prime_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -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];

Expand Down

0 comments on commit d4d7535

Please sign in to comment.