ci: draw the core pixel shader set on lavapipe #2718
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2718
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2718/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Ybucaille on GitHub · 2026-11-26 03:27 UTC · original
Ybucaille:ci/vulkan-lavapipe→main· +28 −0 · 2 files · 3 commits · closed without mergingRefs #614
Change
A new Linux CI job,
pixel-vulkan-lavapipe, runstests/pixel_aot_check.py draw-core-vulkanon lavapipe (Mesa's CPU Vulkan driver), so every PR draws the corepixel_aotset through SPIR-V without a GPU. The check itself is unchanged (#2297).mesa-vulkan-drivers,libvulkan-dev(the host is built fromtests/vk_pixel_draw.c) andspirv-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.--allow-denorm-mismatchand 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.llvmpipesubstring matches nothing else and the loader needs no manifest path.docs/non-windows-hosts.mdnames the job and its dependencies.Test
Local, Arch Linux, Mesa 26.2.7 lavapipe (
denorm_preserve32=0), the same DXC v1.9.2609 tarball:exit 0 in about 8 s,
max_absolute_error=0on every render, negative controls detected. Negative control for the job: comparing each channel with its neighbour (expected[c ^ 1]intests/vk_offscreen.py) exits 1 withAOT color export differs from CPU reference.Not run yet: the job on GitHub's
ubuntu-24.04image, whose lavapipe is an older Mesa; this PR's own CI run is the first. Independent of #2717 (that one changesexport16; lavapipe already matched before it).AI-assisted (Claude Code).
@Ybucaille on GitHub · 2026-11-26 03:28 UTC · original
Closing this: the job is not stable across lavapipe versions.
On the
ubuntu-24.04runner (Mesa 25.2.8, LLVM 20.1.2) the firstdraw-corerender mismatches atx=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