add amdvlk for steam deck

This commit is contained in:
user 2023-05-31 22:01:48 +02:00
parent eee56ec1ef
commit 0366c02649
2 changed files with 8 additions and 3 deletions

View file

@ -1248,7 +1248,7 @@ function abfrage() {
[[ -z "${nvidia}" ]] && nvidia=n
if lspci | grep -e VGA -e 3D -m 1 | grep AMD; then
read -p "Will you have activate youre AMD driver? : [y/N] " amd
read -p "Have you a AMD Graphic-Card or a Steam Deck? : [amd/steam/N] " amd
fi
[[ -z "${amd}" ]] && amd=n
@ -1620,10 +1620,14 @@ if [ "${nvidia}" == "y" ]; then
echo "VK_ICD_FILENAMES=\"/usr/share/vulkan/icd.d/nvidia_icd.json\"" >> ${mountpoint}/etc/environment
fi
if [ "${amd}" == "y" ]; then
if [ "${amd}" == "amd" ]; then
arch-chroot ${mountpoint} pacman -Sy lib32-amdvlk amdvlk opencl-mesa lib32-opencl-mesa --needed --noconfirm
# https://wiki.archlinux.org/title/Vulkan#Selecting_Vulkan_driver
echo "VK_ICD_FILENAMES=\"/usr/share/vulkan/icd.d/amd_icd64.json\"" >> ${mountpoint}/etc/environment
elif [ "${amd}" == "steam" ]; then
arch-chroot ${mountpoint} pacman -Sy lib32-amdvlk amdvlk opencl-mesa lib32-opencl-mesa --needed --noconfirm
# https://wiki.archlinux.org/title/Vulkan#Selecting_Vulkan_driver
echo "AMD_VULKAN_ICD=RADV" >> ${mountpoint}/etc/environment
fi
if [ "${multicard}" == "y" ]; then

View file

@ -74,7 +74,8 @@ lib32-vulkan-validation-layers
libheif
libreoffice-fresh
libva-intel-driver intel-media-driver org.freedesktop.secrets gnome-keyring
lib32-amdvlk amdvlk opencl-mesa lib32-opencl-mesa gamescope steam nvtop
lib32-amdvlk amdvlk opencl-mesa lib32-opencl-mesa glad python-glfw qt6-shadertools vkd3d lib32-vkd3d vkmark vulkan-extra-layers vulkan-extra-tools vulkan-swrast vulkan-validation-layers vulkan-virtio lib32-vulkan-swrast lib32-vulkan-virtio
gamescope steam nvtop
libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau libvdpau-va-gl
libwacom xf86-input-wacom
man man-pages man-pages-de