Single shell script to install the Mesa Vulkan driver for Raspberry Pi 4.
Tested on Linux rpi4 5.10.63-v8+ aarch64.
The latest version of libdrm
(currently 2.4.110) seems to now be a required dependency.
Refer to this excellent PR comment for more info.
- Clone / copy / download script
- Set as executable and run
Pass --help
to print usage.
install_vulkan.sh [install[=~/mesa_vulkan]] [config[=release]] [src[=mesa]]
[build[=build/$config]] [script[=vk_icd.sh]]
install
: where to install built Vulkan driversconfig
: build configurationsrc
: where to clone the mesa repositorybuild
: where to build Vulkan driversscript
: name of source-able script to generate to set up an environment via installed drivers
- Source the generated script into the shell environment:
. vk_icd.sh
- Run
vkconfig
to confirm driver / loader / ICD / etc work as expected - Run desired Vulkan applications, eg
vkcube