feat: Improve AMD detection (#1293)

This commit is contained in:
Kroese
2026-07-17 20:54:41 +02:00
committed by GitHub
parent 5483981ed4
commit 3eec8e03ed
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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() {