Merge pull request #962 from dylanaraps/ati

gpu: Fix ATI/AMD branding issue.
This commit is contained in:
Dylan Araps 2018-05-24 07:58:45 +00:00 committed by GitHub
commit b4fc29e6f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2068,6 +2068,10 @@ get_gpu() {
case "$gpu" in
*"advanced"*)
brand="${gpu/*AMD*ATI*/AMD ATI}"
brand="${brand:-${gpu/*AMD*/AMD}}"
brand="${brand:-${gpu/*ATI*/ATi}}"
gpu="${gpu/'[AMD/ATI]' }"
gpu="${gpu/'[AMD]' }"
gpu="${gpu/OEM }"
@ -2075,7 +2079,7 @@ get_gpu() {
gpu="${gpu/ \/ *}"
gpu="${gpu/*\[}"
gpu="${gpu/\]*}"
gpu="AMD $gpu"
gpu="$brand $gpu"
;;
*"nvidia"*)