This is an old revision of the document!
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:
Run the `meson` configure command for Mesa without the `-Ddri-drivers=` option `CFLAGS="-O2 -march=armv8-a+crc+simd -mtune=cortex-a72" CXXFLAGS="-O2 -march=armv8-a+crc+simd -mtune=cortex-a72" meson -Dglx=disabled -Dplatforms= -Dllvm=disabled -Dvulkan-drivers=broadcom -Dgallium-drivers=v3d,vc4,kmsro -Dbuildtype=release ..`
After building Mesa,
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
==== Other deps ====
sudo apt install vulkan-validationlayers
glslc: https:github.com/google/shaderc/blob/main/downloads.md
==== Testing ====
clone https://github.com/krh/vkcube
mkdir build; cd build; meson .. && ninja
./vkcube -m khr -k 0:0:0