Repository navigation
Conversation
Split the integer and carry/borrow kernels into single dx.op probes so a GPU-side failure names the exact op. On an AMD wave64 card (RX 7900 XT, Mesa, vkd3d-proton) 10 probes pass; uaddc, usubb, and udiv_rem abort the GPU run with a driver-side fault and no validation error. See the xcl-dev#1426 thread for the full counts.
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Update for head Native Windows run on an AMD GPU and on NVIDIA, which this PR lists as not tested: none of the probes aborts on either. Tested: pass, head
So on native Windows (AMD's own D3D12 driver), these ops match the CPU on RDNA4. Whatever aborts on your machine does not reproduce here, which points at the Wine / vkd3d-proton / RADV path rather than the DXIL these probes emit. Not tested: RDNA2/RDNA3; Linux / Wine; the whole workspace suite. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
Independent native Windows / NVIDIA run on the PR head
This supports the failure being specific to the AMD/RADV/vkd3d-proton stack, but this Windows run cannot distinguish the AMD driver from the Linux translation layer. The latest PR-description check also fails: the |
|
Tested — RDNA4 / RADV / Wine: your three aborts reproduce, and
Same three ops as your RX 7900 XT run, on the next chip and a newer Mesa, so it is not RDNA3- or driver-version-specific. The abort is not specific to the one-op shape.
So the abort arrived on Suggestion. The probes only pay off when the binary survives them: Not tested
AI use — the comment was written by DeepSeek V4.1 Flash (opencode) from my own run logs; I ran every command above and checked the logs it quotes. |
# Conflicts: # crates/xcl/src/gpu/dxil/ops_tests.rs
|
Synthesis across the reports on this thread (mine + the four above): the abort is now localized to the Linux/Wine graphics stack, not to the DXIL, not to xcl, and not to AMD hardware.
Two independent reproductions on the same software stack, two different AMD generations; clean on both vendors' native Windows drivers. So the fault is in the translation chain that only that stack uses: vkd3d-proton's DXIL->SPIR-V lowering for these three ops, or Mesa/RADV's handling of the SPIR-V it emits. One concrete hypothesis for where to look: Suggested next step I can run on my rig: dump the SPIR-V ( Update on the PR itself: branch merged with current AI use: Hermes agent (local Qwen-class) ran the suites and drafted this; I checked it before posting. |
|
Bisected: all three aborts are fixed by newer dxil-spirv, no Mesa involvement Re-ran the identical probe binaries (head
That pins the root cause to two dxil-spirv fixes between the two pins:
The Takeaway for xcl: bumping the vendored vkd3d-proton/dxil-spirv past these two commits clears the entire AI use: Hermes agent (local Qwen-class) ran the A/B builds, bisect and this measurement; I checked it before posting. |
|
Closing this PR under CONTRIBUTING.md's AI-assisted contribution rules: the probe code here was drafted by a local small open-weight model (Qwen class), and PRs disclosing such tools are closed without review, rightly so for this codebase. Rather than leave a red PR, here is the suite in adoptable form:
Anyone is free to take the patch as-is, adapt it, and land it as their own PR; it would guard the pin from silently regressing these three opcodes again. Happy to re-run it on this rig after the vkd3d-proton/dxil-spirv pin bump, or any other GPU validation you want measured. AI use: Hermes agent (local Qwen-class) wrote the probes and drafted this comment; a human reviewed it before posting. |
What this adds
A one-op-per-kernel probe section at the end of
crates/xcl/src/gpu/dxil/ops_tests.rs: the same ops asinteger_ops_match_cpuanduaddc_and_usubb_match_cpu, but each kernel contains exactly onedx.ophelper (plus its address arithmetic). If a GPU run dies, the test name names the op.Why
On an AMD wave64 card (RX 7900 XT, Mesa, Proton/wine, patched vkd3d-proton) the two big kernels above abort the GPU run silently (wine
exit status: 3, no Rust panic, no DXIL validation error; see my comments on #1426). This PR pinpoints the cause: 13 probes, and exactly three abort, every run:probe_uaddc_match_cpuprobe_usubb_match_cpuprobe_udiv_rem_match_cpuThe other ten (
bfrev, the fourbit_countvariants, min/max, mad, bfe/bfi, both wide multiplies) pass on the same driver stack, so the fault is specific to add-with-carry, sub-with-borrow, and unsigned div/rem lowering, not to wide or bit ops generally. The second input vector has no zeros, so the div/rem probes are unambiguous.Tested
x86_64-pc-windows-gnu, this branch offmainat4178e888. Each probe run solo (--exact --test-threads=1): 10 ok, 3 abort withexit status: 3(uaddc,usubb,udiv_rem). Alsocargo check --target x86_64-pc-windows-gnu --testsclean.Not tested
AI use
(Lint reformat only: same content, markers now on their own lines.)