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
1 changed files with 5 additions and 1 deletions

View File

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