mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-08-28 11:56:03 +00:00
feat: Improve AMD detection (#1293)
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ RENDERNODE=$(strip "$RENDERNODE")
|
||||
|
||||
CPU_VENDOR=$(lscpu | awk '/Vendor ID/{print $3}')
|
||||
|
||||
if ! enabled "$GPU" || [[ "$CPU_VENDOR" != "GenuineIntel" || "$ARCH" != "amd64" ]]; then
|
||||
if ! enabled "$GPU" || isAmdCpu || [[ "$ARCH" != "amd64" ]]; then
|
||||
|
||||
[[ "${DISPLAY,,}" == "none" ]] && VGA="none"
|
||||
DISPLAY_OPTS="-display $DISPLAY -vga $VGA"
|
||||
|
||||
+1
-2
@@ -24,10 +24,9 @@ hasFeature() {
|
||||
isAmdCpu() {
|
||||
|
||||
local vendor
|
||||
vendor=$(lscpu | awk '/Vendor ID/{print $3}')
|
||||
vendor=$(awk -F ': *' '/^vendor_id/{print $2; exit}' /proc/cpuinfo)
|
||||
|
||||
[[ "$vendor" == "AuthenticAMD" ]]
|
||||
|
||||
}
|
||||
|
||||
interactive() {
|
||||
|
||||
Reference in New Issue
Block a user