This is an old revision of the document!
Table of Contents
Vulkan
need to set up without X or Wayland
Pi 4
Basically follow https://forums.libretro.com/t/retroarch-raspberry-pi-4-vulkan-without-x-howto/31164/2 except:
sudo ninja install
to install Mesa system-wide
Clone https://github.com/krh/vkcube and mkdir build
and meson ..
and ninja
and ./vkcube -m khr -k 0:0:0
.
Hades Canyon NUC
Also similar to above Pi 4 instructions.
sudo apt install libdrm-dev libdrm-tests
modetest -M amdgpu
to list connectors and not try the Intel integrated graphics
modetest -M amdgpu -s 86:3840x2160
You need glslang-tools
before running meson
to build Mesa:
sudo apt install glslang-dev glslang-tools spirv-tools python3-mako pkg-config libudev-dev clang llvm-dev bison flex
sudo apt install libelf-dev
for some reason https://gitlab.freedesktop.org/mesa/mesa/-/issues/7456 make sure meson finds it below! Run-time dependency libelf found: YES 0.186
it won’t fail in configure phase if it doesn’t
Mesa meson
configure options for the AMD GPU:
meson -Dglx=disabled -Dplatforms= -Dvulkan-drivers=amd -Ddri-drivers='' -Dgallium-drivers=radeonsi -Dbuildtype=release ..
vulkaninfo
sudo chmod 666 /dev/dri/renderD129
sudo apt install vulkan-validationlayers
Testing
clone https://github.com/krh/vkcube
mkdir build; cd build; meson .. && ninja
./vkcube -m khr -k 0:0:0