Raspberry Pi 4 Mesa Vulkan Installer
Single shell script to install the Mesa Vulkan driver for Raspberry Pi 4.
Tested on Linux rpi4 5.10.63-v8+ aarch64.
Usage
- Clone / copy / download script
- Set as executable and run
Installing Vulkan
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
Using Vulkan
- 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