Use native generators with the signed Mesa target SDK
@@ -48,3 +48,7 @@ Keep the completed LLVM runtime build tree until its development archive is pack
4848The Mesa 24.2.8 recipe compiles Gallium once and uses one Meson installation to produce `mesa` and `mesa-gallium-sdk`. EGL, GLES and GBM stay in the runtime archive. The SDK archive carries OSMesa and XA for builds that request them. Both architecture plans resolve the split outputs to the same recipe, and the install fixture confirmed that the two outputs own disjoint paths. See `foundation/release-split-plan-01`, receipt SHA-256 `124659b0ae78559071f072e3845c4c5903da1b2f9a0b523931e422b21ac3b585`. The real Mesa binaries still need the LLVM dependencies and their guest graphics checks.
4949
5050For those checks, install `vinix-release-x11` and `busybox-init` from the signed feed into a clean root and audit it. Build `egl.v` and `glx.v` against that SDK and place the executables at `/vinix-egl-check` and `/vinix-glx-check` in a disposable guest root. Boot `graphics.sh` using `tests/disk-root.py`. The fixture reads back the expected pixel from current Mesa's surfaceless EGL and again from an authenticated indirect GLX connection to `Xvfb-glx` using the legacy DRI directory.
51+
52+Set `VINIX_MESA_NATIVE_FILE` to a Meson native machine file whose `pkg_config_path` includes a build-host `wayland-scanner.pc`. The worker reused the source-built x86_64 Wayland scanner from an audited signed root. Meson found the native scanner through that file, found the target Wayland client in the SDK, and generated a protocol header. Mako and Intel CLC run in the build environment. See `xorg/mesa-host-tools-03/generator-check`, receipt SHA-256 `8df63367710d4ead9e968d30fe97eb3c63b45b4eba0f444447f5bf75b0cd4229`.
53+
54+The refreshed source plan includes the AArch64 GCC runtime release 2 and the split Mesa archives. The graphics dependency inventory found ready archives for 88 x86_64 and 71 AArch64 package names at their planned versions. AArch64 libxml2 had two different archives for 2.13.9-1. The graphics queue uses the archive already installed in the audited LLVM SDK, SHA-256 `b5cda4ef51da15ed533f54354aa54bdadf0b604fa3db5cfa1b903ed914206a5e`. See `xorg/mesa-dependency-pool-01` and `release-inputs/upstream-7f173671/order-02`, receipt SHA-256 `b5c322922dc200c50a7ac7d36fa9f07f5c09a699c1ca40dd7e13a6182bd01959` and `0432bbc6fff489421b88046086cd2de6f8cddc6242fd40605c2bbc70b2d0ff2b`.
@@ -59,6 +59,12 @@ fn configure(profile string, source string, build string) ! {
5959 '-Dgallium-rusticl=false', '-Dgallium-va=disabled', '-Dgallium-vdpau=disabled',
6060 '-Dgallium-nine=false', '-Dllvm=enabled', '-Dshared-llvm=enabled', '-Dshared-glapi=enabled',
6161 '-Dopengl=true']
62+ if native := os.getenv_opt('VINIX_MESA_NATIVE_FILE') {
63+ if !os.is_file(native) {
64+ return error('VINIX_MESA_NATIVE_FILE does not name a Meson native file')
65+ }
66+ args << ['--native-file', os.abs_path(native)]
67+ }
6268 path := if legacy { '/usr/lib/xorg/modules/dri' } else { '/usr/lib/mesa24/dri' }
6369 args << ['-Dplatforms=x11,wayland', '-Dglx=dri', '-Dgbm=enabled', '-Degl=enabled', '-Dgles1=enabled',
6470 '-Dgles2=enabled', '-Ddri-drivers-path=' + path, '-Ddri3=enabled']