Tests: reduce fuzz seed 540, an RDNA2-only sext i1 -> i64 failure #2170
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!2170
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2170/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?
@alexdeliu on GitHub · 2026-11-25 07:01 UTC · original
alexdeliu:tests/rdna2-sext-i1-i64→main· +18 −3 · 1 files · 1 commits · merged 2026-11-25 11:03 UTCfuzz_validate_and_gpu_1fails on an RDNA2 iGPU (gfx1036) at seed 540:res[833] = 0x7, CPU 0x6. Reduced, the cause is one cast.sext i1 (trunc in[lane]) to i64gives0x00000000_fffffffffor a set bit on AMD's RDNA2 driver: the high dword is 0, so only the low dword gets the sign. The RX 9070 (RDNA4) and WARP give0xffffffff_ffffffff.sext i1 -> i32is right on all three. Seed 540 itself then computesashr(s, 63) - (-7), which reads 7 instead of 6.This adds seed 540's shape to
amd_reduced_seeds, next to 722 and 1599 (which fail only on RDNA4). It stays#[ignore]like the rest of that test. As far as I can see, no lowering emitssext i1 -> i64today:sext64's callers indxil/lower*.rspass i32 values. So this documents a driver bug for anyone who adds such a cast; it fixes nothing at run time.What is in it
crates/xcl/src/gpu/dxil/fuzz_tests.rs: ans540shape with two variants inamd_reduced_seeds, the full seed 540 in its full-seed loop, and the doc comment naming which seeds fail on which GPU.Tested
cargo test -p xcl --lib gpu::dxil::fuzz_tests::amd_reduced_seeds -- --ignored --nocapture:XCL_ADAPTER=1(gfx1036): both 540 variants and full seed 540 FAIL (res[64] = 0x0, CPU 0xffffffff); every 722 / 1599 variant and both full seeds PASS.-> shift / Bfrevvariants and both full seeds FAIL, as onmain.cargo test --workspace -- --test-threads=4on this branch, RX 9070: 1152 passed, 2 failed, 46 ignored, 90 SKIPPED (81 of them because validator 1.7 < 1.8), the same asmain. The 2 failures arefuzz_validate_and_gpu_1/_3(seeds 722 / 1599, RDNA4), as onmain.Not tested
cargo test --workspace -- --test-threads=4at this head onmain568e7db, RX 9070: 1152 passed, 2 failed (seeds 722 / 1599, as onmain), 46 ignored, 90 SKIPPED.)AI use
🤖 Generated with Claude Code
@luckyteagirl on GitHub · 2026-11-25 07:25 UTC · original
Independent RX 6800M run of the ignored reduced-seed test on exact PR head
2fe270de82b9bef9d883eb1a196b91bb82b601d5, plus a separate diagnostic control with the existing #1974 fix applied.Tested
30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5.XCL_ADAPTER=6800M,XCL_DIRECT_DXIL=1.cargo test --locked -p xcl --lib -j 2 amd_reduced_seeds -- --ignored --test-threads=1 --show-outputexited 101 (0 passed, 1 failed). Both new reduced 540 variants failed: baresext i1 -> i64atres[64] = 0x0vs CPU0xffffffff, and the shift/subtract form atres[0] = 0x7vs CPU0x6. All five 722/1599 reduced variants passed. The subsequent full seed 540 did not yield a value comparison:CreateComputePipelineStatereturned device suspension0x887A0005.848ac65b9a2061c01f4fc7574ab3a156fce5abc6without committing. It changes onlydxil/module.rsand adds itsops_tests.rstest. The same ignored command then reported PASS for both reduced 540 variants and the same five 722/1599 variants. The aggregate still exited 101 because full seed 540 again hit device suspension0x887A0005; it is not a full-seed pass.This extends the reported reduced 540 behavior from a gfx1036 iGPU to an RX 6800M dGPU on this older driver and directly checks that the existing i1 sign-extension fix in #1974 clears the reduced cases. I did not run a full workspace suite or retail title for this test-only PR. The full seed's device-suspension cause remains unresolved by this comparison.
AI-assisted checkout, testing, result comparison, and report drafting with OpenAI Codex (GPT-6). No game data was used.
@DavidM1911 on GitHub · 2026-11-25 07:28 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@alexdeliu on GitHub · 2026-11-25 10:44 UTC · original
Related: #1974 (
Direct DXIL: sign-extend i1 to i64 through i32) is the fix for this case. With #1974 applied, both 540 variants and full seed 540 pass on the gfx1036, as they did on @luckyteagirl's RX 6800M. So this PR is the GPU regression test for #1974; results are on that PR. If #1974 lands first,amd_reduced_seedsstays green on RDNA2 for seed 540.