-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle Ryzen CPU and AMD GPU vendor string and break on first regex match #250
Conversation
Do we want to have "AMD®" (the registered trademark symbol) prefixed on the GPU (and CPU?) vendor string displayed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lenemter I update the PR with an addition regex - could you see if it cleans up your iGPU vendor string? (post updated screenshot)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
® is too small in this font, should we keep it? |
Thanks @lenemter ! I will let others (core devs) comment/merge as they see fit :-) |
Seems OK to me (there is in existing code as well) but I don't have opinion either way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some fixups to handle specific Ryzen CPU and AMD GPU vendor strings in the regex replacement cleanup method.
Also, break after the first regex match, so the replacement strings are in order of preference now.
Before: (note the lowercasing of the cpu string and lengthy gpu string)
After: (note the generic gpu string part matched, instead of the "RX 570" trailer because the actual gpu is an RX 580)