Tests: two expectations that no longer match the code #2245
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2245
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2245/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?
@b3IKK on GitHub · 2026-11-25 11:11 UTC · original
b3IKK:tests/main-suite-red→main· +10 −3 · 2 files · 1 commits · merged 2026-11-25 11:19 UTCFixes #2242.
Fixes #2248.
main(9633138) fails two of its own tests on this machine, so every PR's.\scripts\test.ps1is red for reasons unrelated to the PR:gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translatorread the marker at byte 0 of the synthetic DXIL thatcompiled()builds. Since the translated cache checks that an entry is a DXIL container, marker1sits at byte 67 and byte 0 is'D'(68): the test compared68with1(left: 68, right: 1).hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaarequired formats 85 (B5G6R5) and 88 (B8G8R8X8) to come through unchanged.pc_resource_descpromotes them to 28 (R8G8B8A8) and 87 (B8G8R8A8) — a PC driver takes neither as a UAV — andALLOW_UNORDERED_ACCESSis valid on the promoted format, so it stays. The flag assertion only holds for the formats left as they are (left: 4, right: 0at format 85).Both are stale expectations of the tests, not regressions of the code: the promotions and the container check are deliberate and are what their own tests elsewhere assert (28 for a B5G5R5A1 target at
pc_resource_desc, and the 68-byte synthetic container).What is in it
crates/xcl/src/gpu/recomp/pso.rs: read the marker at byte 67, with a comment saying why.crates/xcl/src/hle/d3d12x/device_x.rs: in the loop over formats without typed-UAV support, assert the flag is kept for the two promoted formats and stripped (and the format unchanged) for the rest.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4) on this head: 1243 passed, 0 failed, 46 ignored (the same command on unmodifiedmain9633138here: 2 failed)Regression run
main (
9633138, clean tree, no local changes):PR (
0d13b07, clean tree, no local changes):Not tested
AI use
main's suite, traced both failures to the tests' expectations, fixed them, ran the suite again and thescripts/smoke.ps1pair.@ivall on GitHub · 2026-11-25 11:19 UTC · original
Merged as
426a5a7, thank you. This unblocks CI onmain.Tested the merged tree (
9633138+ this) on AMD RDNA4, Windows, DXC 1.8.2502.11, debug:cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 1240 passed, 3 failed, 46 ignored, 7 SKIPPED (6 per-lane refusals, 1 no heap windows). Both tests fixed here pass. The 3 failures are onmaintoo:fuzz_validate_and_gpu_1and_3(#2115), andgpu_image_get_resinfo_past_last_level, which fails every time on this card: for a mip past the last level the driver gives the sizes of a clamped mip, not 0 as the test and RDNA2 want.@raylitebull #2233 fixes the same two tests. I took this one because its checks were green and it also checks that 85 and 88 become 28 and 87 with the flag kept. Please close #2233 if you agree.
AI use: Claude Code (Claude Opus 5.5) read the diffs, ran the tests and wrote this on the maintainer's behalf.