Zink: building and running
- Clone the mesa repository, using the zink-branch to the folder
git clone https://gitlab.freedesktop.org/mesa/mesa.git mesa
- cd to the
- Configure the build-system:
meson --prefix=/tmp/zink -Dgallium-drivers=zink build-zink
- Build and install:
ninja -C build-zink install
In order to run, you need set the
LIBGL_DRIVERS_PATH to point to the newly installed location, as well as overriding
Here's a simple example showing how to run glxgears:
LIBGL_DRIVERS_PATH=/tmp/zink/lib64/dri/ MESA_LOADER_DRIVER_OVERRIDE=zink glxgears -info
This is a bit tedious to write, so here's a more comprehensive wrapper-script you can place somewhere in path to set up everyhing. I have this in
#!/bin/sh ZINKENV=/tmp/zink LIB64=$ZINKENV/lib/x86_64-linux-gnu export LD_LIBRARY_PATH=$LIB64/ export LIBGL_DRIVERS_PATH=$LIB64/dri export MESA_LOADER_DRIVER_OVERRIDE=zink export VK_ICD_FILENAMES=$ZINKENV/share/vulkan/icd.d/intel_icd.x86_64.json exec "$@"
This does a few more things. First of all, it makes sure I use the Intel ICD from the same build. Secondly, it also uses the newly built libGL instead of the system one. This makes for a bit more pleasant debugging-experience.