Record native Mesa shader tools and the Zink loader dependency
@@ -6,6 +6,10 @@ Build each LLVM release with a native TableGen of the same version. `tools/vinix
66
77Mesa 24.2.8 uses a native `intel_clc` to compile the built-in shaders for the x86 Iris driver. Build that generator from the same patched Mesa source on the build host, using LLVM/Clang 19, libclc, SPIRV-Tools and the matching SPIRV-LLVM-Translator. Put the resulting executable on the build host’s `PATH` and check its LLVM version with `intel_clc -M`. Mesa's cross build runs it with each Intel GPU generation and compiles the resulting shader tables into the driver. The release ARM configuration uses the ARM Gallium backends. The legacy GLX profile keeps Mesa 24.0.9’s software DRI server and its private LLVM 17 dependency.
88
9+The build-host generator’s Meson configure found LLVM 19.1.4, clang-cpp, libclc 0.2.0, SPIRV-Tools 2024.4.1 and LLVMSPIRVLib 19.1.0.0. Clang 19 compiled the generator’s `clc_helpers.cpp` with `CXXFLAGS="-O0 -g0"` on the 1 GiB worker. The configure log and compiler commands are in `xorg/llvm/work/intel-clc-02` on the release worker.
10+
11+Both target Mesa profiles build the Zink Gallium backend with Mesa's Vulkan headers. If a client selects Zink, the driver opens `libvulkan.so.1` at runtime. The loader is therefore a driver-specific dependency that an ELF `DT_NEEDED` scan cannot detect. The software EGL and GLX checks exercise the software Gallium backend. [Zink loader selection in Mesa 24.2.8](https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-24.2.8/src/gallium/drivers/zink/zink_screen.c#L3293)
12+
913## Sharing a builder
1014
1115Compile `tools/vinix-ninja.v` as `vinix-ninja` on the build host. Its default invocation delegates to Ninja with two jobs. On a shared Linux worker, open the existing build lock before starting vpac and pass that same file descriptor to its subprocesses. This example assumes the signed target SDK and build tools are already configured in the worker service.