From 86b2faedc52626c76c24bbadd2c9b40851457275 Mon Sep 17 00:00:00 2001 From: Steve Zabka Date: Sat, 31 Aug 2024 08:25:11 +0200 Subject: [PATCH] Update autodesk_fusion_installer_x86-64.sh --- .../setup/autodesk_fusion_installer_x86-64.sh | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/files/setup/autodesk_fusion_installer_x86-64.sh b/files/setup/autodesk_fusion_installer_x86-64.sh index e7b095f..74d0670 100755 --- a/files/setup/autodesk_fusion_installer_x86-64.sh +++ b/files/setup/autodesk_fusion_installer_x86-64.sh @@ -445,6 +445,7 @@ function check_gpu_driver { fi INTEL_AMD_GPU=$(glxinfo | grep "OpenGL vendor string" | cut -d: -f2 | tr -d ' ') + INTEL_AMD_VRAM=$(glxinfo | grep -i "Video memory" | grep -Eo '[0-9]+MB' | grep -Eo '[0-9]+' | head -n1) if [[ $INTEL_AMD_GPU == "AMD" ]]; then AMD_PRESENT=true @@ -469,25 +470,13 @@ function check_gpu_driver { echo -e "$(gettext "${GREEN}NVIDIA GPU selected. The DXVK GPU driver will be used for the installation.${NOCOLOR}")" ;; 2) - if [[ $AMD_PRESENT ]]; then - GPU_DRIVER="DXVK" - GET_VRAM_MEGABYTES=$AMD_VRAM - echo -e "$(gettext "${GREEN}The OpenGL GPU driver will be used for the installation.${NOCOLOR}")" - elif [[ $INTEL_PRESENT ]]; then - GPU_DRIVER="OpenGL" - GET_VRAM_MEGABYTES=$INTEL_VRAM - echo -e "$(gettext "${GREEN}The OpenGL GPU fallback driver will be used for the installation.${NOCOLOR}")" - fi + GPU_DRIVER="OpenGL" + GET_VRAM_MEGABYTES=$INTEL_AMD_VRAM + echo -e "$(gettext "${GREEN}The OpenGL GPU fallback driver will be used for the installation.${NOCOLOR}")" ;; *) - echo -e "$(gettext "${RED}Invalid choice. Defaulting to ${INTEL_AMD_GPU} GPU.${NOCOLOR}")" - if [[ $AMD_PRESENT ]]; then - GPU_DRIVER="DXVK" - GET_VRAM_MEGABYTES=$AMD_VRAM - else - GPU_DRIVER="OpenGL" - GET_VRAM_MEGABYTES=$INTEL_VRAM - fi + GPU_DRIVER="OpenGL" + GET_VRAM_MEGABYTES=$INTEL_VRAM ;; esac elif [[ $NVIDIA_PRESENT ]]; then