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

Closed
Ybucaille wants to merge 3 commits from upstream-pr/2718 into main
Ybucaille commented 2026-11-26 03:27:30 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Ybucaille on 2026-11-26T03:27:30Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6618851471 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2718). Originally posted by [Ybucaille](https://github.com/Ybucaille) on 2026-11-26T03:27:30Z. --- 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).
upstream-sync closed this pull request 2026-11-26 04:04:31 +00:00
Ybucaille commented 2026-11-26 04:04:38 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Ybucaille on 2026-11-26T03:28:53Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181756264 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2718#issuecomment-7181756264). Originally posted by [Ybucaille](https://github.com/Ybucaille) on 2026-11-26T03:28:53Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2710
No description provided.