Repository navigation
Tests: reduce fuzz seed 540, an RDNA2-only sext i1 -> i64 failure - #2170
Conversation
On a gfx1036 iGPU (driver 32.0.21045.29003), sext i1 -> i64 gives 0x00000000_ffffffff for a set bit (the high dword stays 0); an RX 9070 and WARP give 0xffffffff_ffffffff. Seed 540 then reads 7 for ashr(s, 63) - (-7). Adds that shape to amd_reduced_seeds next to 722 and 1599 (which fail only on RDNA4), and seed 540 to its full-seed loop. Assisted-by: Claude Code (Claude Opus 5.5)
|
Independent RX 6800M run of the ignored reduced-seed test on exact PR head Tested
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. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Related: #1974 ( |
fuzz_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