Repository navigation
Conversation
…-oom dxil: eliminate giant-shader IR and CFG blowup in FormatLoad and multi-window memory
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 xcl-dev#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 - RX 7900 XT (RADV NAVI31), Mesa 26.2.5, Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, DXC 1.9.2609.5, release profile, target
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 - native Windows (no machine), NVIDIA hardware (unknown whether these three abort there too; if CI runs them, passing there localizes the fault to the AMD path, aborting there means it reproduces without AMD hardware), the non-test build of the tree is untouched (diff is test-only).
AI use - Hermes agent (local Qwen-class) drafted the probes and ran them; I checked the diff and the run logs before opening.
Mirror of xcl-dev#1807 (auto-synced, do not edit).