From 2bbdb30dba31254957899f2610462630fa0aff53 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 04:21:02 +0100 Subject: [PATCH] Record native Mesa shader tools and the Zink loader dependency --- mesa/BOOTSTRAP.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesa/BOOTSTRAP.md b/mesa/BOOTSTRAP.md index 4c16b65..0c30edf 100644 --- a/mesa/BOOTSTRAP.md +++ b/mesa/BOOTSTRAP.md @@ -6,6 +6,10 @@ Build each LLVM release with a native TableGen of the same version. `tools/vinix Mesa 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. +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. + +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) + ## Sharing a builder Compile `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. -- 2.56.1