ci: draw the core pixel shader set on lavapipe #2718

Closed
github-bot wants to merge 3 commits from gh-pr/2718/head into gh-pr/2718/base
Owner

@⁠Ybucaille on GitHub · 2026-11-26 03:27 UTC · original
Ybucaille:ci/vulkan-lavapipe → main · +28 −0 · 2 files · 3 commits · closed without merging

Refs #614

Change

A new Linux CI job, pixel-vulkan-lavapipe, runs tests/pixel_aot_check.py draw-core-vulkan on lavapipe (Mesa's CPU Vulkan driver), so every PR draws the core pixel_aot set through SPIR-V without a GPU. The check itself is unchanged (#2297).

  • Setup: mesa-vulkan-drivers, libvulkan-dev (the host is built from tests/vk_pixel_draw.c) and spirv-tools (spirv-val) from apt; DXC v1.9.2609 from the Microsoft release page, pinned by SHA-256. The mode uses only the standard library, so no venv.
  • Subnormals: lavapipe flushes them, so the job runs with --allow-denorm-mismatch and must still match every reference bit for bit. That makes it a regression check for the Vulkan path, not a conformance result. A case that starts to depend on a subnormal would fail there; the fix is then to keep that case off the lavapipe run with a reason, not to loosen the comparison.
  • Device: lavapipe is the only driver installed, so the llvmpipe substring matches nothing else and the loader needs no manifest path.
  • docs/non-windows-hosts.md names the job and its dependencies.

Test

Local, Arch Linux, Mesa 26.2.7 lavapipe (denorm_preserve32=0), the same DXC v1.9.2609 tarball:

python3 -B tests/pixel_aot_check.py draw-core-vulkan out/dxc-ci/bin/dxc llvmpipe --allow-denorm-mismatch

exit 0 in about 8 s, max_absolute_error=0 on every render, negative controls detected. Negative control for the job: comparing each channel with its neighbour (expected[c ^ 1] in tests/vk_offscreen.py) exits 1 with AOT color export differs from CPU reference.

Not run yet: the job on GitHub's ubuntu-24.04 image, whose lavapipe is an older Mesa; this PR's own CI run is the first. Independent of #2717 (that one changes export16; lavapipe already matched before it).

AI-assisted (Claude Code).

**@⁠Ybucaille** on GitHub · 2026-11-26 03:27 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2718) `Ybucaille:ci/vulkan-lavapipe` → `main` · +28 −0 · 2 files · 3 commits · closed without merging Refs #614 ## Change A new Linux CI job, `pixel-vulkan-lavapipe`, runs `tests/pixel_aot_check.py draw-core-vulkan` on lavapipe (Mesa's CPU Vulkan driver), so every PR draws the core `pixel_aot` set through SPIR-V without a GPU. The check itself is unchanged (#2297). - **Setup:** `mesa-vulkan-drivers`, `libvulkan-dev` (the host is built from `tests/vk_pixel_draw.c`) and `spirv-tools` (`spirv-val`) from apt; DXC v1.9.2609 from the Microsoft release page, pinned by SHA-256. The mode uses only the standard library, so no venv. - **Subnormals:** lavapipe flushes them, so the job runs with `--allow-denorm-mismatch` and must still match every reference bit for bit. That makes it a regression check for the Vulkan path, not a conformance result. A case that starts to depend on a subnormal would fail there; the fix is then to keep that case off the lavapipe run with a reason, not to loosen the comparison. - **Device:** lavapipe is the only driver installed, so the `llvmpipe` substring matches nothing else and the loader needs no manifest path. - `docs/non-windows-hosts.md` names the job and its dependencies. ## Test Local, Arch Linux, Mesa 26.2.7 lavapipe (`denorm_preserve32=0`), the same DXC v1.9.2609 tarball: ``` python3 -B tests/pixel_aot_check.py draw-core-vulkan out/dxc-ci/bin/dxc llvmpipe --allow-denorm-mismatch ``` exit 0 in about 8 s, `max_absolute_error=0` on every render, negative controls detected. Negative control for the job: comparing each channel with its neighbour (`expected[c ^ 1]` in `tests/vk_offscreen.py`) exits 1 with `AOT color export differs from CPU reference`. Not run yet: the job on GitHub's `ubuntu-24.04` image, whose lavapipe is an older Mesa; this PR's own CI run is the first. Independent of #2717 (that one changes `export16`; lavapipe already matched before it). AI-assisted (Claude Code).
The draw-core-vulkan mode only ran on developer machines with a GPU.
Add a GPU-free Linux job that runs it on lavapipe, Mesa's CPU Vulkan
driver, so the Vulkan path and its negative controls are checked on
every change.

lavapipe flushes subnormals, so the run passes --allow-denorm-mismatch
and is a diagnostic: it must still match every reference bit for bit.
DXC v1.9.2609 is downloaded from the Microsoft release page and pinned
by SHA-256. Only the lavapipe ICD is installed, so the llvmpipe device
substring cannot select another adapter.
Ubuntu names the lavapipe manifest lvp_icd.x86_64.json, so the fixed
path would point at no driver. lavapipe is the only driver the job
installs, so the loader needs no override.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:17:49 +00:00
github-bot closed this pull request 2026-11-27 01:17:49 +00:00
Author
Owner

@⁠Ybucaille on GitHub · 2026-11-26 03:28 UTC · original

Closing this: the job is not stable across lavapipe versions.

On the ubuntu-24.04 runner (Mesa 25.2.8, LLVM 20.1.2) the first draw-core render mismatches at x=0 y=0, channel 2: expected_bits=3f008000, actual_bits=3f008081 (the exact UNORM texel 128/255 instead of the reference value). Mesa 26.2.7 locally matches the reference bit for bit, as do Intel ANV and NVIDIA. So the result depends on the Mesa version the runner image ships, and the job would break or pass with image updates rather than with code changes. Making it reliable would mean pinning Mesa (PPA or container), which is more upkeep than this check is worth for now.

Recorded here for whoever picks up a Vulkan CI later: Mesa 25.2 lavapipe is not a valid oracle for draw-core; 26.2 is, on the cases measured.

AI-assisted (Claude Code).

**@⁠Ybucaille** on GitHub · 2026-11-26 03:28 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2718#issuecomment-7181756264) Closing this: the job is not stable across lavapipe versions. On the `ubuntu-24.04` runner (Mesa 25.2.8, LLVM 20.1.2) the first `draw-core` render mismatches at `x=0 y=0`, channel 2: `expected_bits=3f008000`, `actual_bits=3f008081` (the exact UNORM texel 128/255 instead of the reference value). Mesa 26.2.7 locally matches the reference bit for bit, as do Intel ANV and NVIDIA. So the result depends on the Mesa version the runner image ships, and the job would break or pass with image updates rather than with code changes. Making it reliable would mean pinning Mesa (PPA or container), which is more upkeep than this check is worth for now. Recorded here for whoever picks up a Vulkan CI later: Mesa 25.2 lavapipe is not a valid oracle for `draw-core`; 26.2 is, on the cases measured. AI-assisted (Claude Code).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.