Update build.func

This commit is contained in:
CanbiZ 2025-07-28 11:08:38 +02:00
parent 5a55c0d188
commit 939b8d400d

View File

@ -1214,7 +1214,8 @@ EOF
if [[ "$CT_TYPE" == "0" || "$is_vaapi_app" == "true" ]]; then
VAAPI_DEVICES=()
for bypath in /dev/dri/by-path/*-render; do
for bypath in /dev/dri/by-path/*-render /dev/dri/renderD*; do
[[ -e "$bypath" ]] || continue
dev_target=$(readlink -f "$bypath") || continue
pci_addr=$(basename "$bypath" | cut -d- -f1 --complement | sed 's/-render//')
pci_info=$(lspci -nn | grep "$pci_addr" || true)