From 96f4b01e06202adb51ba4b4b53c04a88d2480288 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 14:15:02 +0100 Subject: [PATCH] Use native generators with the signed Mesa target SDK --- tests/x11/README.md | 4 ++++ tools/vinix-mesa.v | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/tests/x11/README.md b/tests/x11/README.md index c260696..acc7712 100644 --- a/tests/x11/README.md +++ b/tests/x11/README.md @@ -48,3 +48,7 @@ Keep the completed LLVM runtime build tree until its development archive is pack The 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. For 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. + +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`. + +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`. diff --git a/tools/vinix-mesa.v b/tools/vinix-mesa.v index ee4d847..497fc61 100644 --- a/tools/vinix-mesa.v +++ b/tools/vinix-mesa.v @@ -59,6 +59,12 @@ fn configure(profile string, source string, build string) ! { '-Dgallium-rusticl=false', '-Dgallium-va=disabled', '-Dgallium-vdpau=disabled', '-Dgallium-nine=false', '-Dllvm=enabled', '-Dshared-llvm=enabled', '-Dshared-glapi=enabled', '-Dopengl=true'] + if native := os.getenv_opt('VINIX_MESA_NATIVE_FILE') { + if !os.is_file(native) { + return error('VINIX_MESA_NATIVE_FILE does not name a Meson native file') + } + args << ['--native-file', os.abs_path(native)] + } path := if legacy { '/usr/lib/xorg/modules/dri' } else { '/usr/lib/mesa24/dri' } args << ['-Dplatforms=x11,wayland', '-Dglx=dri', '-Dgbm=enabled', '-Degl=enabled', '-Dgles1=enabled', '-Dgles2=enabled', '-Ddri-drivers-path=' + path, '-Ddri3=enabled'] -- 2.56.1