Added support for workarounds on external GPU.

lspci detects VGA for main/integrated videocards and Display
for external videocards.

This commit should apply workarounds on computers with more than
one GPU. Useful for most laptops using weak iGPU and good dGPU.

Signed-off-by: Pablo Cholaky <waltercool@slash.cl>
This commit is contained in:
Pablo Cholaky 2023-06-02 15:01:30 -04:00
parent b6af0a3809
commit 8d970a4a97
No known key found for this signature in database
GPG Key ID: D9E0B9CF084124B2
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ then
fi
# Check prerequisites
gpu_info=$(lspci 2>/dev/null | grep VGA)
gpu_info=$(lspci 2>/dev/null | grep -E "VGA|Display")
case "$gpu_info" in
*"Navi 1"*|*"Navi 2"*) export HSA_OVERRIDE_GFX_VERSION=10.3.0
;;