Unverified Commit b4fc29e6 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #962 from dylanaraps/ati

gpu: Fix ATI/AMD branding issue.
parents c64b5c3d 0d89e1a4
...@@ -2068,6 +2068,10 @@ get_gpu() { ...@@ -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() { ...@@ -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"*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment