Repository navigation
Direct DXIL: sign-extend i1 to i64 through i32 - #1974
Conversation
f131a53 to
848ac65
Compare
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Confirmed on AMD RX 6750 XT, driver
Base Not tested: full suite or retail title. AI use: OpenAI Codex (GPT-5) ran and analyzed the test; I reviewed the result. Thank you! |
|
Two narrow Windows checks on
Eight-input WARP control. The raw AI use — OpenAI Codex (GPT-6) wrote the local checks and ran them. |
|
Test report for Tested
This matches @luckyteagirl's RX 6800M result on #2170, so the cast is wrong on RDNA2 in general, not only on one part or driver. Not tested: NVIDIA and Intel, the whole suite with this PR, a retail title. AI use: Claude Code (Claude Opus 5.5) ran these tests and wrote this report. |
|
Diff review on Two quick items before merge:
|
|
NVIDIA confirmation for item 2 in the merge checklist. On exact, clean head Windows 11
Only the focused test ran on this head. AI use — OpenAI Codex (GPT-6.2 Sol) ran the test and wrote this report. |
|
For item 1 in the merge checklist, bd22b54 is a cherry-pickable follow-up on Windows CPU-only A/B: NVIDIA follow-up on clean AI use: OpenAI Codex (GPT-6.2 Sol) assisted with the follow-up and verification. |
Read the existing i1 and destination type instead of creating unrelated integer types. Retain the i32 intermediate for the affected i1-to-i64 sign extension and cover both behaviors with CPU unit tests. Assisted-by: OpenAI Codex (GPT-6.2 Sol)
848ac65 to
248c1ce
Compare
|
Independent NVIDIA check on 248c1ce. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, debug.
With
Zero skips in both focused runs. This is NVIDIA regression coverage. AI-assisted. Codex (GPT-6, exact variant unavailable) ran the tests and drafted this report. |
|
NVIDIA run on the rebased head (listed under Not tested). Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head 248c1ce. Result: cargo test --workspace -- --test-threads=4: 1246 passed, 0 failed, 46 ignored. SKIPPED: 18 GPU tests for no wave64 (expected on this card); the per-lane refused cases; heap windows; driver cache; 2 debug-layer tests (no d3d12SDKLayers.dll). AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
1 similar comment
|
NVIDIA run on the rebased head (listed under Not tested). Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head 248c1ce. Result: cargo test --workspace -- --test-threads=4: 1246 passed, 0 failed, 46 ignored. SKIPPED: 18 GPU tests for no wave64 (expected on this card); the per-lane refused cases; heap windows; driver cache; 2 debug-layer tests (no d3d12SDKLayers.dll). AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
On the Radeon RX 6800M with Windows driver
30.0.13002.13003, directsext i1toi64produces0x00000000fffffffffor a true bit; the expected result is0xffffffffffffffff. This routes that cast throughi32. A review follow-up checks existing type IDs so unrelated sign extensions do not intern unusedi1ori64types. The direct-DXIL source hash from #1947 keys the translation cache, so no manual translator-version bump is needed. The fault was exposed by direct-DXIL fuzz seed 540 after the separate i64 min/max fix in #1946.What is in it
crates/xcl/src/gpu/dxil/module.rs: sign-extend onlyi1toi64throughi32, and avoid creating type IDs merely to check the cast. The follow-up commit was supplied by @ettehn and retains their Git authorship.crates/xcl/src/gpu/dxil/module.rstests: verify unrelated casts do not intern extra integer types and the affected cast still emits two extensions.crates/xcl/src/gpu/dxil/ops_tests.rs: compare both result words and an arithmetic shift on the GPU.Tested
Exact clean head
248c1cecc27dbcfd0dbc225a8eab9915c755fccbrebased on current main426a5a745db4d5e4b037449ede0b70cb342f5192. Windows 11 build 26200, Ryzen 9 5980HX, Radeon RX 6800M driver30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5.XCL_ADAPTER=6800M,XCL_REQUIRE_GPU=wave64,XCL_DIRECT_DXIL=1:cargo test --locked -p xcl --lib -j 2 sign_extension -- --test-threads=1 --show-output3 passed, 0 failed, 0 ignored, no SKIPPED lines. This includes the GPU fixture.cargo build --locked --workspace -j 2,cargo build --release --locked -p xcl -j 2, andgit diff --check upstream/main...HEADpassed. Cargo targets were separate for main and the PR.Paired
cargo test --locked --workspace --no-fail-fast -- --test-threads=4on the same RX 6800M:XCL_DIRECT_DXIL=0XCL_DIRECT_DXIL=1All existing failure names are identical on base and PR. The only added failure name is the new GPU fixture when run in the broad suite after the RX 6800M device was suspended (
CreateComputePipelineState,0x887A0005); that fixture passes in isolation. The broad suite is not green on this driver.An earlier isolated seed-540 diagnostic combining Direct DXIL: lower i64 min/max as compare/select #1946 and this fix had zero mismatching GPU results, versus 21 mismatches before the fix. That evidence belongs to the earlier tree, not this head.
Regression run
Same locally owned title, release builds, fresh separate XCL data and DXIL caches, networking off, 12 seconds each. Neither run hit the external memory guard.
Main:
PR head:
Not tested
AI use
OpenAI Codex (GPT-6; exact variant not exposed) implemented the original fix, reviewed and cherry-picked @ettehn's authored follow-up, rebased the branch, ran the paired checks and smoke comparison, and drafted this description.