fc8809d849e2e5b72f3e89c2d12cd4eafa61ea44
3
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2549c339c6 |
CI: the runtime's device tests again on lavapipe at 128-bit vectors, with a Mesa shader cache of their own
What: a Linux step after the CPU ICD step runs the runtime's device tests from that step's archive with LP_NATIVE_VECTOR_WIDTH=128 (lavapipe's subgroups of 4, the width arm64 lavapipe runs at) and MESA_SHADER_CACHE_DIR set to a directory of the leg's own in the workspace. It prints vulkaninfo's device name and subgroup sizes first and fails unless they show 128 bits and subgroups of 4, so a green step shows the width ran. scripts/lavapipe-image's nextest command takes --write and --env as run does, so the leg's cache directory and variables reach the container. scripts/linux-gate-ci gets the same step, as docs/VALIDATION.md asks of every Linux step. AGENTS.md's CI line and VALIDATION.md's note on the width name the leg and the cache rule. Nothing in product code reads either variable. Why: the planner wants a stand-in for a device whose SIMD group is 4 wide (tile GPUs are a target). The lab's 128-bit runs failed because of llvmpipe's disk cache, not our lowering. llvmpipe keys its texture functions (lp_texture_handle.c) and its cache id (lp_screen.c) without lp_native_vector_width (Mesa 26.2.4), so a cache that 256-bit runs filled gave a 128-bit shader an 8-wide texture function. A cache of the leg's own cannot collide with the 256-bit one. Verified on lavapipe (Mesa 26.2.4, LLVM 23.1.1, 128 bits, subgroups 4), at aeb0ca9560, the runtime's whole cpu_icd suite: - shared default cache: 989 tests run: 887 passed, 102 failed, 4 skipped (job m3-max-83853); - the cache off: 989 tests run: 989 passed (2 slow), 4 skipped (job m3-max-83888); - gdb on two of the crashes stops at the same JIT store, vmovaps of a ymm register, the 4th of four plus a byte at 0x80: an 8-wide texel struct written into a 4-wide caller (job m3-max-83878). The step itself ran in the lab from ci.yml's step text, in the pinned lavapipe image (Mesa 26.2.4-arch1.1, LLVM 23.1.1): deviceName = llvmpipe (LLVM 23.1.1, 128 bits), subgroupSize 4 (min and max 4); 764 runtime device tests listed; Summary 762 tests run: 762 passed, 231 skipped; job exit 0 (job m3-max-83928, on the RTX 5080 Laptop machine's lavapipe). scripts/linux-gate-ci's new step passed bash -n only; it has not run end to end. No Rust changed, so clippy, Rustdoc and the suites have the inputs they had. |
||
|
|
9a89d5e25c |
CI: the lavapipe image's udmabuf decided by the node's presence, its downloads saved on fetch, its build step limited
lavapipe exports a dma-buf through /dev/udmabuf. The image's containers now get the host's node wherever the host has one (docker's daemon opens it for them; rootless podman only where the user may), with the node's group, and `lavapipe-image udmabuf`, which the build step runs, says which. Where they get none, `nextest` skips the tests and `replay` (new: the conformance replay in the image) leaves out the cases scripts/lavapipe-image/needs-udmabuf names, each named in the log: those are measured, each failing without the node and passing with it. The workflow decides by the node's presence alone; no test is loosened. LAVAPIPE_IMAGE_UDMABUF names another node, or none, which is how the lab's replica shows what a runner without the node runs. The downloads are restored before the build and saved right after it, keyed on the pin (the tarball's sha256, the date and the packages' versions), so a job whose later steps fail still keeps them. The build step's limit is 90 minutes: a cold fetch at the slowest rate measured from the archive, one connection at 57 KB/s, of the 127 MB tarball and 135 MB of databases and packages (262 MB) takes 77 minutes. A fetch that fails ends the build step with the URL and curl's status, or pacman's, before any test runs; the fetches retry three times. Measured at this change's parent plus the probe (job m3-max-79668, lavapipe on x86-64 AVX2, no node passed in): of 807 device tests run, 806 pass and replay::rt_replay::a_video_surface_is_waited_for_at_its_ready_point_once fails with "the device exports no DmaBuf"; with the node (m3-max-79517) every one passes. The four surface-textures cases are refused at replace-region without the node (m3-max-79408) and hold the ledger's expectations with it (m3-max-79517). |
||
|
|
7687644485 |
CI: the device-executing steps run on lavapipe in an image of one Arch Linux Archive date
CI's lavapipe steps ran on Ubuntu's Mesa 26.0.8 (LLVM 21.1.8), whose llvmpipe faults in its JIT code on the conformance case reconvergence-constructs' rc_break draw (a null load on its rasterizer thread), while the ledger's llvmpipe rows were recorded on Mesa 26.2.4 with LLVM 23.1.1. The device tests, the conformance replay and public case qualification now run in a container image of exactly that Mesa and LLVM, and nowhere else. scripts/lavapipe-image/pin names the image: the Arch Linux bootstrap tarball of 2026.10.01 and its sha256, the archive date 2026-10-05 its packages come from, and each package's exact version (vulkan-swrast 1:26.2.4-1, llvm and llvm-libs 23.1.1-1, vulkan-icd-loader and vulkan-validation-layers 1.4.363.0-1, spirv-tools 1:1.4.363.0-1, vulkan-tools 1.4.363.0-1, python 3.14.7-1). scripts/lavapipe-image/lavapipe-image builds it: the tarball by curl -A curl, checked against the sha256; its root imported with docker or podman; then pacman, against that date's archive repositories alone, fetching through curl -A curl (XferCommand), with signatures required and checked by the bootstrap's own keyring. Its downloads stay under ~/.cache/m2v-lavapipe-image, which CI caches keyed on the pin, so a run whose pin has not moved downloads nothing. `ensure` prints the pin, the packages the image holds and its device's name and driver, and fails where any differs from the pin or from the ledger's new `# llvmpipe:` line, which names the venue's Mesa, LLVM, loader and layers. That line holds upstream versions: the image is Arch's build (mesa 1:26.2.4-1), and the rows were recorded on another distribution's build of the same release (3:26.2.4-1). The tests are built on the host and only run in the image, with no network, only the environment named, and the checkout mounted read-only (qualification writes the corpus alone). lavapipe exports a dma-buf through /dev/udmabuf, so a container gets the host's where the host's user may open it, and offers the exports the host's lavapipe does. Each container is held to its job's memory (LAVAPIPE_IMAGE_MEMORY, else the host's) and CPUs (CARGO_BUILD_JOBS, else the host's), since the container runtime runs it outside the job's processes. The archive serves a connection slowly at times, so the build fetches the transaction's packages eight at a time with the same curl command before pacman runs. The device tests are the tests the --cfg m2v_cpu_icd build lists and the plain builds do not (only_in.py): a test that opens a device compiles only under the cfg, and the plain builds' tests, the .ll fixtures' test with Ubuntu's LLVM 21 among them, run on the host as before. They go into the image as a nextest archive, which needs no toolchain there; the replay and qualification run the binaries built in the checkout. The host keeps the Vulkan loader and no driver. AGENTS.md and CONTRIBUTING say in one sentence each that the pin and the ledger's line move together. Verified in the lab's replica of CI's Linux job (job m3-max-79517, at this change on e086e51c7e, docker 29.10.1, lavapipe on x86-64 AVX2): the image builds from the cached downloads in 55 s and its check passes (every package equal to the pin; "llvmpipe (LLVM 23.1.1, 256 bits)", "Mesa 26.2.4-arch1.1 (LLVM 23.1.1)"). The device tests: 810 listed, 809 run, 809 passed. The conformance replay holds exactly the 4,712 open gaps the ledger expects on llvmpipe, with no fault. Public case qualification passes. Without /dev/udmabuf (m3-max-79408) one device test met "the device exports no DmaBuf" and the replay refused four surface-textures cases at replace-region; with it both are as the ledger expects. The two red host steps of both runs, golden_hashes and the pinned opened chains, are the tables the next pin blesses, not this change. |