Description
fuzz_validate_and_gpu_1 (seeds 500..1000) is not ignored and fails on AMD cards on main, so cargo test --workspace is red on them. On #1679, @bmjask wrote that this needs "a translator-side workaround or an explicit AMD skip with a tracking issue before merge". #1679 was merged without either, and I can't find an open issue for it, so this is one to collect the results in.
On main 6987e49 (RX 7600 XT, RDNA3, native wave64), cargo test --workspace --no-fail-fast -- --test-threads=4:
- no variable: 1153 passed, 1 failed, 46 ignored. The failure is
fuzz_validate_and_gpu_1,seed 722: res[30] = 0x1, CPU 0x7fffffff. XCL_DIRECT_DXIL=1: 1151 passed, 3 failed, 46 ignored. The same seed 722 failure, plusgpu_image_get_resinfo_1d_array(fixed by Direct DXIL: image_get_resinfo of a 1D array gives the layers in y #2046) andoffline_compute_pipeline_is_reused_by_a_second_process(Tests: offline compute pipeline test finds the driver blob with XCL_D… #1674).
Reported on #1679 (the test stops at the first mismatching seed, so each run shows one seed unless the panic was changed):
| card | driver | failing seeds | report |
|---|---|---|---|
| RX 9070 (RDNA4) | 32.0.32015.7029 | 722 (_1), 1599 (_3), on merged main 689f2db |
HKEY-Funk-Machine |
| RX 9070 XT (RDNA4) | 32.0.32015.16001 | 722 (_1), 1599 (_3) |
eizispark |
| RX 7800 XT (RDNA3) | 32.0.32029.2010 | 722, 783, 817 (all of _1, with the panic turned into a log line) |
srcamarda |
| RX 7600 XT (RDNA3) | 32.0.31041.1004 | 722 (_1) |
above, and on #1679 |
| RX 6600 (RDNA2) | 32.0.21045.29003 | 540 (_1) |
thiagocalile |
| Radeon iGPU, 9800X3D (RDNA2) | 32.0.21042.62 | 540 (_1), 3 mismatches in 500..1000 |
nnonno91 |
| RX 9070 XT, Linux RADV / Wine | Mesa 26.3.1 | 1003 (_2) |
pablogonz12 |
@thiagocalile's backward slice of seed 540 found the emitted DXIL sound, and on the RX 9070 the reduced 722 form (switch + WaveReadLaneFirst) already fails on its own, which fits @bmjask's guess that the driver moves the read into a divergent case. Both point at the AMD DXIL compiler, but nobody has confirmed that independently. The NVIDIA failures in the same tests are a different problem (CreateComputePipelineState returns 0x8007000E, no wrong values): #1905, and #1919.
Ways to make main green on AMD (I haven't tried any of them):
- skip the seeds known to mismatch on AMD, with a reason that names this issue, or
- a translator-side workaround once a reduced form is understood (
amd_reduced_seedshas the 722 and 1599 shapes).
Setup: AMD Radeon RX 7600 XT 16 GB (RDNA3, Navi 33), driver 32.0.31041.1004 (AMD Software 26.8.1); Ryzen 5 9600X; Windows 11 Home 26200.9974; rustc 1.99.1; DXC 1.8.2502.11 (SDK 10.0.26100); debug build; main at 6987e49, no local changes.
AI use: Claude Code (Claude Opus 5.5) ran the tests, collected the reports from #1679 and wrote this issue.
Activity
luckyteagirl commentedon Nov 25, 2026
RX 6800M data point on current
mainf5c5bdf0e91035f8f1404f46f4f2f7aedc259e7f:Tested: Windows 11 build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (RDNA2), driver
30.0.13002.13003, Rust 1.99.0 MSVC, DXC/DXIL 1.9.2609.5. I rancargo test --locked -p xcl --lib -j 2 gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 -- --test-threads=1 --show-outputwithXCL_ADAPTER=6800M,XCL_REQUIRE_GPU=1, and the stated DXC directory.XCL_DIRECT_DXIL=0: two isolated runs both failed at seed 530 while creating the compute pipeline:The GPU device instance has been suspended ... (0x887A0005). The test reported 0 passed, 1 failed, 1123 filtered out each time.XCL_DIRECT_DXIL=1: one isolated run failed at the same seed with the same device-suspended error and counts.mainand PR Shaders: restore direct DXIL cache ID after source deletion #2047 head had identical failing test names (993 passed, 161 failed, 46 ignored on each); both logs contained0x887A0005after the fuzz tests began. This says nothing about the cause of every downstream failure.This run stops at seed 530, before reaching the seed 540 or 722 value mismatches reported on other AMD cards. It is a pipeline/device error, not an observed result mismatch. I did not reduce seed 530, collect a driver crash dump, test a newer driver, or test another adapter.
AI use: OpenAI Codex (GPT-6, exact variant not exposed in this session) ran the tests, compared the logs, and drafted this report.
SlopTart commentedon Nov 25, 2026
RDNA3 data point under Linux/Wine, and it does not match the Windows seed pattern:
fuzz_validate_and_gpu_1is green here, and the two reduced AMD shapes pass on their own.Rig: RX 7900 XT (RDNA3, RADV NAVI31, Mesa 26.2.5), Proton Experimental (wine-11.0) + the xcl-pinned vkd3d-proton 3.1 build, DXC 1.9.2609.5, release build, main at
cbc296ab, no local changes, pipeline cache removed before each run.XCL_DIRECT_DXILunset (default).Per test on the default suite:
fuzz_validate_and_gpu_1(500..1000): passes.fuzz seeds 500..1000: validated 500, GPU-compared 313. No mismatch at 722, 783, 817 or anywhere in the range. This is the first green_1among the AMD reports here; every Windows entry hits 722 or 540.fuzz_validate_and_gpu_2(1000..1500): fails atseed 1003: res[713] = 0x1, CPU 0x0. This test failed on 4/4 attempts on this stack across two checkouts; the seed line here is from maincbc296ab. Matches the RX 9070 XT Linux/RADV entry (also 1003), so 1003 now reproduces on two AMD generations under Wine/Mesa, and it does not appear in any Windows table entry.fuzz_validate_and_gpu_3(1500..2000): passes. No 1599 mismatch.amd_reduced_seeds(--ignored): both hand-reduced shapes pass on this stack:PASS full seed 722: 0 mismatching dwords,PASS full seed 1599: 0 mismatching dwords. So the reduced forms are not sufficient to reproduce on RDNA3 under Mesa; whatever makes them fail on the RDNA4 reports is absent here.Two variables stand out between this green
_1and the Windows red ones: this rig runs DXC 1.9.2609.5 while several red entries ran 1.8.2502.11, and the driver path is Mesa RADV rather than the amdgpu Windows driver. The seed 1003-only-under-Linux pattern cuts the other way, so the seed set that misbehaves looks stack-dependent in both directions. Not claiming cause, just the counts.Counts only, no game data.
AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
chaseb64 commentedon Nov 25, 2026
@SlopTart, could you run the full seed 1003 and the reduced comparison across four initialization variants on the RX 7900 XT/RADV setup from your 4/4 reproduction? Please keep the same Proton Experimental, vkd3d-proton build and DXC if available. Your full seed returned
1at word 713, where the CPU expected0. Please report whether that still reproduces and whether the reduced baseline independently reproduces at word 9, also expected0. Either result is useful. Your reproductionThe runner and all four fixtures use XCL
6020a33b16ba2de25b3aef5947552f2dc1831f09. The full and reduced baseline DXIL, inputs and expected results match the artifacts regenerated fromcbc296ab65a2661a61e3e2da109134bcd5319f60byte for byte. The candidates are saved synthetic fixtures on the same revision, with no production patch. The four runs pair the unchanged full seed with the reduced baseline, single-writer counters only, initialized scratch only, and both changes together.Synthetic downloads and SHA-256 hashes:
5efd465dc313163e3a3c6e0f445a955a97ca82c7e6bd0dd17525d1a887cce13b1082e18ac4a79c5a1a3bcef6ec9120400c4f65a6385e4fd99c1b4c363b7242efExtract both archives. In the companion directory, set
WINEPREFIX,XCL_ADAPTERandXCL_DXC_DIRas described in the README. Use the existing launcher that selects your reproducing stack.bash ./run-seed1003-linux.sh /absolute/path/to/xcl-shader-kit \ ./seed-replay.exe /absolute/path/to/existing-wine-or-proton-wrapper ./seed1003-resultsPlease return
summary.tsv,environment.txtand the four variant logs, including any mismatching words, the actual RX 7900 XT/RADV/Mesa device and driver, the Proton build, the vkd3d-proton revision or loaded DLL SHA-256, and the DXC version. Each run should compare 4,736 words with zero skips, including 576 for the full seed and 64 for the reduced variant. If an expected mismatch disappears, please report the result for that variant. The controls also change generated code shape, so a pass alone does not isolate a cause.Locally all four reduced forms passed DXIL validation and matched the CPU expectations. The wrapper rejected local runs with zero GPU comparisons. The reduced baseline and three controls await hardware results on your stack.
AI-assisted using OpenAI Codex. GPT-6.2 Astra created and reviewed the original diagnostics. GPT-6.2 Sol prepared the Linux wrapper and this request.
cindertheblue commentedon Nov 25, 2026
Every seed on two AMD GPUs (Windows),
main568e7db.fuzz_validate_and_gpu_*stops at the first mismatch, so for a skip list I ran all 2000 seeds with a local copy ofrun_seedsthat logs a mismatch and goes on (not pushed). 1232 seeds were GPU-run on each, with no pipeline errors. Two runs each, the same seeds both times, and the same withXCL_DIRECT_DXIL=0and1:gfx1036)amd_reduced_seedsshowed for the RX 7600 XT._1), and 1599 (_3, RDNA4 only so far). 1003 (_2) is only on Linux/RADV.res[30]=0x1(CPU0x7fffffff); 540res[833]=0x7(CPU0x6); 783res[64]=0xcon the RX 7600 XT,0xf5ffddbfon the iGPU (CPU0x7fffffff); 817res[320]=0xfe53ffffon both (CPU0x4a43fdeb).The rest of the suite found nothing else AMD-specific on this
main. I rancargo test --workspace --no-fail-fast -- --test-threads=4on the iGPU (XCL_ADAPTER="radeon(tm)", with and withoutXCL_DIRECT_DXIL=1), and on the RX 7600 XT withXCL_DIRECT_DXIL=alland withXCL_SPLIT_WAVE64=1. Apart fromfuzz_validate_and_gpu_1(seed 540 on the iGPU, 722 on the RX 7600 XT), the only failures weregpu_image_get_resinfo_1d_array(#2046) andoffline_compute_pipeline_is_reused_by_a_second_process(#1674) with the direct backend.Setup: Ryzen 5 9600X, Windows 11 Home 26200.9974, rustc 1.99.1, DXC 1.8.2502.11 (SDK 10.0.26100), debug,
main568e7dbwith no changes apart from the local scan test.AI use: Claude Code (Claude Opus 5.5) wrote the scan, ran it and wrote this comment from its output.
Diskuss commentedon Nov 25, 2026
Update: seed 1599 is an AMD driver constant-folding bug:
Bfrev(Countbits(K))with a constantK. RX 9070 XT, driver 32.0.32015.7029,main568e7db.On this card, amdxc64 folds
reversebits(countbits(K))toreversebits(n) | n, wheren = countbits(K). For example,K = 2gives0x80000001instead of0x80000000. Single-op kernels with every word checked:Bfrev(Countbits(K))fails for K = 1, 2, 3, 5, 0xF0, 0x80000000 and 0xFFFFFFFF. In each case the GPU value isbfrev(n) | n, for bothCountbits.i32andCountbits.i64.Bfrev(K),Countbits(K),Countbits(Bfrev(K))andBfrev(Bfrev(K)).Bfrev(FirstbitLo/Hi(K)).Bfrev(Countbits(x))when x comes from a buffer load,WaveReadLaneFirst(load),WaveReadLaneAt(load, 5)or the lane index.Countbits.i64split inops.rsdoes not avoid it.It reproduces without XCL, from DXC output. DXC folds a literal itself, so the constant is routed through
WaveReadLaneFirst. Built with DXC 1.9.2602 (-T cs_6_6), it gives0x80000001on every lane at both-Odand-O3. The control, withk = mem.Load(...)= 2, gives0x80000000.Workaround (local branch, not pushed):
Shader::bit_count(crates/xcl/src/gpu/dxil/ops.rs) foldsCountbitsof an integer constant to an i32 constant, using the new helperModule::int_const. A new test,ops_tests::bfrev_of_countbits_of_a_constant_matches_cpu, covers it. Results on this card:fuzz_validate_and_gpu_3: passes, 306 seeds GPU-compared.cargo test -p xcl --lib -- --test-threads=4: 1098 passed, 1 failed, 26 ignored. The failure is_1at seed 722, which is unchanged.Countbits.i64(zext((in & 0) | 2)). The driver folds that to a constant itself, so it still fails. Only the driver can fix it fully.#2192 on this card: I swapped in its
shader.rs(head1d8341a). With it, the reduced 722 forms and full seed 722 pass. With both changes,_3passes and_1stops at seed 783 (res[64] = 0xffffffff, CPU0x7fffffff). That is the seed @oni-swr is working on.Tested on AMD Radeon RX 9070 XT (RDNA4) at
main568e7db7729c8fa6c8f0f4b32d798faaf11462bbAMD Radeon RX 9070 XT (RDNA4), driver 32.0.32015.7029; Ryzen 7 5700X3D; Windows 11 Pro 26300.9974; Rust 1.100.0 MSVC; DXC 1.9.2602.17; debug build;
XCL_DIRECT_DXILunset.Tested:
cargo test --workspace --no-fail-fast -- --test-threads=4: 1152 passed, 2 failed, 46 ignored. The failures arefuzz_validate_and_gpu_1andfuzz_validate_and_gpu_3; nothing else failed.gpu_direct_msaa_image_loadspasses.cargo test -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu -- --test-threads=1 --nocapture, with a local copy ofrun_seedsthat logs a mismatch and continues (not pushed). 1232 seeds were GPU-compared (299 / 313 / 314 / 306 for_0.._3), no pipeline errors, one run._0(0..500)_1(500..1000)res[30] = 0x1, CPU0x7fffffff; 783:res[64] = 0xffffffff, CPU0x7fffffff_2(1000..1500)_3(1500..2000)res[193] = 0x1, CPU0x0540 and 817 do not mismatch on this card.
Not tested:
XCL_DIRECT_DXILvariants, release build, retail title.AI use: The test report was written by Claude Code (Claude Sonnet 5.5), and the 1599 reduction, workaround and update by Claude Code (Claude Opus 5.5), all from real runs on this machine.
Draft PR with the workaround: #2231.
Shader::bit_countfoldsCountbitsof a constant. Seed 1599 gives 0 mismatches, andfuzz_validate_and_gpu_3passes on this card.oni-swr commentedon Nov 25, 2026
Plan: #2192 (draft) already addresses seed 722, so I am not touching that. I will reproduce and reduce seeds 783 and 817 on an RX 7800 XT (RDNA3), independent of #2192, and open a
Part of #2115PR: a translator-side fix if the emitted DXIL is at fault, otherwise a reduced regression test plus an explicit AMD-Windows skip that names this issue.AI use: Claude Code (Claude Sonnet 5.5).
Toons29 commentedon Nov 25, 2026
Another RDNA4 data point for the table, on a newer driver: RX 9070, driver 32.0.32029.2010,
main6020a33.fuzz_validate_and_gpu_1(seed 722) andfuzz_validate_and_gpu_3(seed 1599) fail in 5 of 5 runs, with the sameseed and values each time.
amd_reduced_seedsgives the same output as the RX 9070 on 32.0.32015.7029 reported on#1679.
Tested
AMD Radeon RX 9070 (RDNA4), Adrenalin 26.11.2 (driver 32.0.32029.2010); Ryzen 7 7800X3D, 32 GB; Windows 11
build 26300; Rust 1.100.0 (stable MSVC); DXC 1.9.2602.17 (Windows SDK 10.0.26100); debug build.
mainat6020a33b16ba2de25b3aef5947552f2dc1831f09, no local changes.cargo test -p xcl --lib fuzz_validate_and_gpu -- --test-threads=1, 5 runs. Each run:test result: FAILED. 2 passed; 2 failed; 0 ignored; 0 measured; 1120 filtered out.fuzz_validate_and_gpu_0: 5 of 5 passedfuzz_validate_and_gpu_1: 0 of 5 passed, every timeseed 722: res[30] = 0x1, CPU 0x7ffffffffuzz_validate_and_gpu_2: 5 of 5 passedfuzz_validate_and_gpu_3: 0 of 5 passed, every timeseed 1599: res[193] = 0x1, CPU 0x0FUZZ_SEED=<seed> cargo test -p xcl --lib fuzz_tests::debug_seed -- --ignored --nocapture, once per seed:GPU run: 1 mismatching results; seed 1599:GPU run: 62 mismatching results.FUZZ_WATCH=30on seed 722, the input word for lane 0 is0x7fffffffand for lane 30 is0x1; lane 30 isthe only one of the 32 lanes with input 1. So the expected
0x7fffffffis lane 0's value, and the GPU wrotelane 30's own value.
cargo test -p xcl --lib gpu::dxil::fuzz_tests::amd_reduced_seeds -- --ignored --nocapture, once(
test result: FAILED. 0 passed; 1 failed):The same two tests are the only failures in this machine's earlier whole-suite run of
maincbc296a(1152 passed, 2 failed, 46 ignored), and a second whole-suite run of
cbc296ashows the same seeds and values.Not tested
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this draft.
SlopTart commentedon Nov 25, 2026
New table row: first NVIDIA-under-Linux run I can find for this tracker.
GTX 1070 (Pascal), driver 550.163.01 (proprietary), Debian 13, Debian wine 10.0,
mainat568e7db, no local changes:gpu::dxil::fuzz_tests5 passed, 0 failed, 2 ignoredAll three seed ranges (
_1500..1000,_21000..1500,_31500..2000) pass, zero mismatching seeds. So on this stack the AMD seed failures do not appear at all, which fits the WaveReadLaneFirst/divergence reading from @thiagocalile and @Diskuss rather than a translator-wide problem. The NVIDIA failures previously noted here (#1905, #1919) wereCreateComputePipelineStatereturning0x8007000Eon Windows; under Linux/wine with the proprietary driver the compute pipelines are created fine and the values match, so that blocker does not apply to this configuration.Contrast from the same day, RDNA3 under Linux (
maincbc296ab, RX 7900 XT, Mesa 26.2.5, Proton Experimental):_1and_3green,_2fails at seed 1003, matching the existing Linux/RADV row.Counts only, no game data.
AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
pablogonz12 commentedon Nov 25, 2026
Linux/RADV seed 1003 is a Mesa NIR bug, not XCL or vkd3d-proton. With Mesa MR 46698 ("nir/range_analysis: fix ishr uub of possibly negative sources"; open, not merged when I checked) applied,
fuzz_validate_and_gpu_2passes here. This says nothing about the Windows seeds (540, 722, 783, 817, 1599).Reduced. With
x = 0xffffffffloaded from a buffer,y = int(x << 26) >> 26is correctly-1, but on stock Mesa:uint(y) <= 0xfffffffe(shifts of 26, 24 and 16)uint(y) < 0xffffffff(shift 26)uint(y) != 0xffffffff(shift 26)uint(y) <= 100(shift 26)x <= 0xfffffffe, no sign extensionspirv-val(checked on the full seed) and, for the 26-bit<=case, keepsOpShiftRightArithmetic→OpULessThanEqual.RADV_DEBUG=nir), the compare result is already the constant 1, while theishris still computed and stored. The MR attributes this fold tonir_opt_uub.v62, on a value that comes from theGsAtomicthroughGsExchange. In cut-down versions, the atomic result alone and the exchanged value are correct, and the compare is wrong with or without the exchange. The version with atomic,ashr, exchange and compare gives the same 8 wrong lanes as the full seed.Tested
main568e7db7729c8fa6c8f0f4b32d798faaf11462bb; RX 9070 XT (RADV GFX1201), Ryzen 9 9900X, Arch (kernel 7.3.6), GE-Proton11-14 Wine, vkd3d-proton v3.1 with the shared-fence patch, DXC 1.9.2609.5,x86_64-pc-windows-msvcrelease cross-build.debug_seedwithFUZZ_SEED=1003gives 8 mismatching words (res[713..=716]andres[721..=724]:0x1, CPU0x0).-Dllvm=disabled, release), without and with the MR's patch (commit723fba05; one hunk applied at an offset), selected withVK_DRIVER_FILES; the loader log shows which library ran.cargo test -p xcl --libsuite, run twice eachThe suite ran with 4 threads, shader caches off and 3 tests skipped that abort the test process on this stack:
integer_ops_match_cpu,uaddc_and_usubb_match_cpu,jumps_to_outer_loop_heads_are_structured. The only difference isfuzz_validate_and_gpu_2; the other 6 failures are the same on both.So for RADV I would not change the translator for this seed. Until a Mesa with the fix is out,
_2can be expected to stay red on affected versions.Not tested: Windows, other GPUs, Mesa versions other than 26.3.1, Mesa's own tests or CTS with the patch, the workspace's other crates, a retail title, and whether any title shader that XCL translates has this pattern.
AI use: Claude Code (Claude Sonnet 5.5) wrote the temporary reduced tests (not committed), built both drivers, ran everything on the machine above and wrote this comment.
oni-swr commentedon Nov 25, 2026
Seeds 783 and 817 on an RX 7800 XT (driver 32.0.31035.1003), reduced:
Bfrev.i32(trunc(mul i64 3, 5))returnsx | bfrev(x)(0xf000000f, expected0xf0000000). Fixed by Shaders: reverse the halves of an i64 Bfrev with shifts and masks on AMD #2237 (draft; the i64 Bfrev halves use shifts and masks).IMax.i64fed by an i64 udiv chain returns garbage in the high word; the same chain with compare + select,IMinorUMaxpasses. With theops.rschange of Direct DXIL: lower i64 min/max as compare/select #1946 applied locally, 783 gives 0 mismatches.So 722 (Shaders: preserve first active lane reads across divergent switches #2192) + 783 (Direct DXIL: lower i64 min/max as compare/select #1946) + 817 (Shaders: reverse the halves of an i64 Bfrev with shifts and masks on AMD #2237) should clear
fuzz_validate_and_gpu_1on this card; I have not run all three together.AI use: Claude Code (Claude Sonnet 5.5).
SlopTart commentedon Nov 25, 2026
Ran the three-PR stack together on both Linux rigs I report from, since nobody has yet:
main+ #2192 + #1946 + #2237 merged (clean merges, no conflict).RX 7900 XT (RDNA3), Mesa 26.2.5, Proton Experimental wine-11.0, release, tree
3077cf70:gpu::dxil::fuzz_tests5 passed, 1 failed, 2 ignored. The one failure is the Mesa-onlyfuzz_validate_and_gpu_2seed 1003, byte-identical to before the stack:seed 1003: res[713] = 0x1, CPU 0x0.GTX 1070 (Pascal), NVIDIA 550.163.01, Debian wine 10, release, tree
98db545: 6 passed, 0 failed, 2 ignored. Still fully green with all three fixes on top.Two honest caveats for oni-swr's summary claim:
_1" on RDNA3 under Linux, because those three seeds never failed on this stack in the first place;_1was already green before the stack. What it does confirm is that the three fixes break nothing on either Linux configuration.Counts only, no game data.
AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
SlopTart commentedon Nov 25, 2026
Seed 1003 (the Linux/Mesa-only one from our rows) is now delta-reduced on our RX 7900 XT / Mesa 26.2.5 rig.
Reduction oracle: the mismatch must stay the exact same triple (word 713: GPU 0x1, CPU 0x0), the module must still pass validation, and the GPU run must complete. Greedy deletion of whole segments, then single instructions, then output-slot trims, and finally all instruction pairs, since coupled instructions often only die together. Converged: what is left is irreducible under both single and pair deletion, and re-confirms 3/3 after convergence.
The kernel that survives (from the harness IR, roughly):
Everything above is load bearing: deleting any single instruction or any pair changes or clears the mismatch.
Still red on: plain origin/main, the 2192 + 1946 + 2237 stack (our comment above), and the 2227/2228/2229/2231/2241/2246/2247/2254 cascade. Still green on NVIDIA (GTX 1070, driver 550) on the same seeds. So none of the current open fixes touch whatever RADV does differently here.
Full minimal program (harness IR) plus the DXIL disassembly of the reduced kernel: https://gist.github.com/SlopTart/a4022bc50994514293d2ff2b12261176
AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
Shaders: reverse the halves of an i64 Bfrev with shifts and masks on AMD
cindertheblue commentedon Nov 25, 2026
Windows run of the whole stack:
main68a284a+ #1974 + #1946 + #2192 + #2237 makes every fuzz seed pass on two AMD GPUs. This is the Windows counterpart of SlopTart's Linux stack run, with #1974 added for 540. The four merge onto68a284awith no conflicts, in that order.Tested
gfx1036), driver 32.0.21045.5002. Windows 11 Home 26200.9974, rustc 1.99.1, DXC 1.8.2502.11 (SDK 10.0.26100), debug. The two trees were built in separate folders withcargo build --workspacefirst. Apart from the merges, the only local change is the logging copy ofrun_seedsfrom my earlier comment, as an ignored test (not pushed).gfx1036main68a284aamd_reduced_seeds -- --ignored: every variant and full seed passes on both GPUs with the stack. Onmainthe full seed 722 fails on the RX 7600 XT, and both 540 variants and the full seed 540 fail on the iGPU. One change from568e7db: on68a284athe two reduced 722 shapes pass on the RX 7600 XT (two runs) while the full seed 722 still fails. On568e7dbboth shapes failed there.cargo test --workspace --no-fail-fast -- --test-threads=4, once each. The 47 ignored include the local scan test:main68a284aXCL_DIRECT_DXIL=1The stack's 6 extra passes are the 5 tests the PRs add plus
fuzz_validate_and_gpu_1. The failure left on both trees isa_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier(left: 3, right: 1), which already fails onmainsince the #2074 merge and is acknowledged there. WithXCL_DIRECT_DXIL=1there is alsooffline_compute_pipeline_is_reused_by_a_second_process(#1674) on both trees. The same 8SKIPPEDlines in all six runs.So on this machine, with those four PRs in,
cargo test --workspacehas no AMD-specific failure left. 1599 doesn't reproduce here, so this says nothing about #2231 or RDNA4.Not tested: a release build, a title or smoke run of the stack, NVIDIA, RDNA4.
AI use: Claude Code (Claude Opus 5.5) merged the PRs, ran the tests and wrote this comment from their output.
SashaTun commentedon Nov 25, 2026
NVIDIA GeForce RTX 5060 (8 GB, 32-wide waves only): the fuzz GPU tests fail with a refused pipeline (
0x8007000E), not with a wrong resultOn
main68a284a— NVIDIA GeForce RTX 5060 (8 GB), driver32.0.16.2101; Windows 11 build 26200 x64; Rust1.100.0(stable-x86_64-pc-windows-msvc); release profile; noXCL_SAMPLE_*:cargo test --release --workspace --no-fail-fast -- --test-threads=4→ 1285 passed, 5 failed, 46 ignored; 29SKIPPEDlines (21 of themno wave64— this card runs 32-wide waves only).Four of the five failures are this issue's test family, and on this card they fail a third way — the driver refuses the pipeline instead of computing a wrong value:
gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0CreateComputePipelineState: 0x8007000E(out of memory)gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_2gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3So on an 8 GB card the panic is at the pipeline creation, not at the comparison with the CPU result — the run never reaches the seeds the AMD cards fail on. This looks like the fixed 13 824 MB budget wall (#333, #345, #1585, #1337) seen from the fuzz tests; a test that skips when the driver refuses the pipeline would keep the default suite green on small cards.
The same four failures also occur on the head of #2352 (
440e802), so they are not from that PR.The fifth failure is not a GPU one:
gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrierfails onmaintoo (1 group barrier expected, 3 in the program). It is not card-specific: the CI run onmain3ceb5507fails on it on the Windows runner without a GPU. Reported separately.AI use: MiniMax Code (MiniMax-M3.1-Flash) ran the suite and wrote this report.
Direct DXIL: fold Countbits of constants (AMD folds Bfrev(Countbits(K…
Direct DXIL: fold Countbits of constants (AMD folds Bfrev(Countbits(K…
thiagocalile commentedon Nov 25, 2026
Independent Windows AMD Radeon RX 6600 (RDNA2, 8 GB VRAM, native wave64) verification of
main2898511+#1946(f906266) +#2192(1d8341a): all 1,364 workspace tests pass with 0 failures (down from 1 failure,gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, on unmodifiedmain2898511).Tested
32.0.21045.29003,XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust1.100.0(stable-x86_64-pc-windows-msvc), DXC1.8.2502.11.main(2898511af1c038a2ef809719e9b6f89e5675c422):XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 1,362 passed, 1 failed, 46 ignored (11skipped; failed:gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1).#1946(f906266) +#2192(1d8341a) ontomain2898511:XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 1,364 passed, 0 failed, 46 ignored (11skipped).Regression run (
scripts/smoke.ps1 -Seconds 60, release builds,XCL_ADAPTER=radeon)main(2898511):main2898511+#1946(f906266) +#2192(1d8341a):Not tested:
#1946and#2192individually in isolation, NVIDIA/Intel GPUs, Linux/RADV, or world load past the 60 s smoke window.AI use: Antigravity (Gemini 4 Neon) ran the merge, workspace tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.
Direct DXIL: fold Countbits of constants (AMD folds Bfrev(Countbits(K…
rgroenewoudt commentedon Nov 26, 2026
Tested on AMD Radeon RX 9070 (RDNA4, non-XT) at
main8b957bec: seed 722 (_1) and seed 1599 (_3) both fail, as on the RX 9070 XT.fuzz_validate_and_gpu_1:seed 722: res[30] = 0x1, CPU 0x7ffffffffuzz_validate_and_gpu_3:seed 1599: res[193] = 0x1, CPU 0x0Tested
cargo test --workspace --no-fail-fast -- --test-threads=4: 1444 passed, 2 failed, 47 ignoredf16_programs_on_the_gpuandf32_programs_on_the_gpu, per-lane form refused (V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32, gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426), wave32 and wave64 eachNot tested
XCL_DIRECT_DXIL=0/1variants, the seeds after the first mismatch,amd_reduced_seeds, Shaders: preserve first active lane reads across divergent switches #2192AI use
Granite900 commentedon Nov 26, 2026
RX 9070 XT (RDNA4) results for the AMD fuzz failures. With #2231 + #2192 + #1946 merged together onto
main, all DXIL fuzz tests pass.Tested
cargo test -p xcl --lib gpu::dxil::fuzz_testsmainres[30] = 0x1, CPU 0x7fffffff) and seed 1599 (res[193] = 0x1, CPU 0x0) fail64eef49e1d8341abfirst_active_lane_value_survives_a_divergent_switchpasses);fuzz_validate_and_gpu_1then fails on seed 783 (hidden behind 722 until now); 1599 fails (not in this PR)main+ #2231 + #2192 + #1946 (71acf1f)fuzz_validate_and_gpu_0..3,first_active_lane_value_survives_a_divergent_switch,shader_flags_follow_plain_instruction_typesSeed 783:
res[64] = 0xffffffff, CPU 0x7fffffff. It's the high dword ofdx.op.binary.i64IMax (op 37) over constants: IMax(-5, 0x7FFFFFFFFFFFFFFB). Signed max is0x7FFFFFFFFFFFFFFB(high0x7fffffff). The GPU returns the unsigned max0xFFFFFFFFFFFFFFFB(high0xffffffff). So amdxc64 on RDNA4 appears to fold i64 IMax as unsigned, and #1946's compare/select lowering avoids it.The merges were clean, with no conflicts.
Not tested
AI use: analysis and report drafted with Claude (Claude Opus 5.5) from my test runs.
oni-swr commentedon Nov 26, 2026
RX 7800 XT (RDNA3) data point on
main8b957bec6f82495aec940944c6bf47faa02db590, driver 32.0.31035.1003 (older than the 32.0.32029.2010 row in the table):cargo test -p xcl --lib -j 4 gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(debug,XCL_ADAPTERunset) fails:Same seed and values on
nvidia-devaf2cecc4in a full workspace run (Windows 11 25H2 26200, Ryzen 7 5700X3D, Rust 1.100.0). This is a failure onmain, not a regression of a PR: on #2794 it fails the same way on the PR head and on itsnvidia-devbase.AI use: Claude Code (Claude Sonnet 5.5) ran the test and drafted this comment.
Luislariosss commentedon Nov 26, 2026
Data point: RX 9060 XT 16 GB (RDNA4, gfx1200), driver
32.0.32029.2010, Ryzen 5 9600X, Windows 11 26200, Rust 1.99.0 MSVC, debug build.On
main8b957be(same as the comment above):Full workspace (
cargo test --workspace --no-fail-fast -- --test-threads=4): 1316 passed, 2 failed, 27 ignored, the same two seeds and values._0and_2pass.Luislariosss commentedon Nov 26, 2026
Second RDNA4 card on the fix stack: RX 9060 XT 16 GB, driver
32.0.32029.2010, Ryzen 5 9600X, Windows 11 26200, Rust 1.99.0 MSVC, debug.main8b957bewith #2192 + #2231 + #1946 merged on top (all three merged cleanly).Default suite goes green here:
cargo test --workspace --no-fail-fast -- --test-threads=4: all green — the lib gives 1320 passed, 0 failed, 27 ignored (same machine,mainalone: 1316 passed, 2 failed = this issue), and every integration target passes.cargo test -p xcl --lib gpu::dxil::fuzz_tests: 6 passed, 0 failed, 2 ignored (_0.._3all pass).amd_reduced_seeds --ignoredis not fully green yet: 6 of the 7 variants pass; the one that fails is deterministic across two runs:PASS full seed 1599: 0 mismatching dwordswith the stack, so this is the reduced form only. Thedynamicvariant builds the same operand value (2) at runtime (in[lane] & 0 | 2, opaque to the driver) instead ofC(T::I64, 2), so #2231's constant fold does not see it.Luislariosss commentedon Nov 26, 2026
Seed 1599's dynamic form is the same driver bug as seed 817, one step further:
Bfrev.i32also comes back asx | bfrev(x)when its operand is a dynamic i32 whose def chain goes through 64-bit ops, not only forBfrev.i32(trunc(mul i64)).Confirmed on an RX 9060 XT (RDNA4, driver 32.0.32029.2010) by dumping the outputs of the
amd_reduced_seedsvariant1599 Countbits.i64(dynamic 2) -> shift / Bfrev(main8b957be+ #2192 + #2231 + #1946):Countbitsand the shift are right; onlyBfrevis off, by exactly the| nthat #2231 describes. The CPU model is right: for value 2,bfrev(1) = 0x80000000.Proposed fix (7 lines,
crates/xcl/src/gpu/dxil/ops.rs,Shader::bfrev): the i64 branch already avoids the dx.op; do the same for a non-constant i32 and keep the single dx.op for a literal:Measured here, on
main8b957be+ this change:ops_tests::bfrev_of_a_dynamic_countbits_matches_cpu(k.s.bit_count(Countbits, zext(and(in,0)|2))thenbfrev): fails without the change, passes with it;fuzz_validate_and_gpu_3(seed 1599): failed -> passed;amd_reduced_seeds --ignored: all 7 variants pass, including1599 Countbits.i64(dynamic 2) -> shift / Bfrev;full seed 1599: 0 mismatching dwords;cargo test -p xcl --lib: 1318 passed, 1 failed, 27 ignored (main alone: 1316 passed, 2 failed). The one failure left isfuzz_validate_and_gpu_1, seed 722, which is Shaders: preserve first active lane reads across divergent switches #2192's (first active lane across divergent switches).It is compatible with #2231 (that one folds
Countbitsof a constant; this one keeps the driver from seeing theBfrevof a dynamic operand), and it also covers seed 1599's full form on its own.Why this is not a PR yet: it changes the runtime, and CONTRIBUTING.md needs a
scripts/smoke.ps1regression run on a real title from the author; I do not have a title I can run here (the synthetictests/data/testgametitle is not a game loop, so its block has noframes shown). If a maintainer or someone with a title wants it, the patch above is the whole change, or I can push it as a PR with their regression run.cindertheblue commentedon Nov 26, 2026
RDNA3 and RDNA2 (APU) on the new stack:
main8b957bec+ #2231 + #2192 + #1946 makes the whole default suite pass on both GPUs.mainalone failsfuzz_validate_and_gpu_1on each.Tested
gfx1036), driver 32.0.21045.5002, on the same machine, chosen withXCL_ADAPTER. The logs showbackend 'real' – AMD Radeon RX 7600 XT/AMD Radeon(TM) Graphicsin every run.main8b957bec, andmain8b957becwith Direct DXIL: fold Countbits of constants (AMD folds Bfrev(Countbits(K)) wrong) #223164eef49e, Shaders: preserve first active lane reads across divergent switches #21921d8341aband Direct DXIL: lower i64 min/max as compare/select #194671acf1f0merged in that order. All three merged without conflicts.cargo build --workspaceran before the suites.cargo test --workspace --no-fail-fast -- --test-threads=4, once each:mainmain+ #2231 + #2192 + #1946main, the one failure isfuzz_validate_and_gpu_1:seed 722: res[30] = 0x1, CPU 0x7fffffff;seed 783: res[64] = 0x9afdffff, CPU 0x7fffffff.cargo test -p xcl --lib gpu::dxil::fuzz_testsrun of the same binary gaveres[64] = 0xffffeeff. So in two runs on this GPU, the high dword was not the fixed0xffffffffGranite900 reported on RDNA4.SKIPPEDlines appear in all four runs: the six per-lane f16/f32 refusals (gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows) andpso_measurement_compiles_an_exact_synthetic_record(no Developer Mode).cargo test -p xcl --lib gpu::dxil::fuzz_tests -- --test-threads=1, andamd_reduced_seeds -- --ignored:mainfuzzmainamd_reduced_seedsamd_reduced_seeds_1, seed 722)FAIL full seed 722: 1 mismatching dwords; full seeds 540 and 1599 PASS_1, seed 783)fuzz_validate_and_gpu_3(seed 1599) passes on both GPUs onmaintoo. So in the reports here, 1599 fails only on RDNA4.1599 Countbits.i64(dynamic 2) -> shift / Bfrev, which Luislariosss still sees failing with the stack on RDNA4, passes on both GPUs, onmainand with the stack. That fits their reading above that the dynamicBfrev.i32result is a driver fault, and these two drivers do not show it. Their proposedShader::bfrevchange is not tested here.Not tested
XCL_DIRECT_DXIL=0/1variants and a release build.AI use
upipibi commentedon Nov 27, 2026
Windows NVIDIA Ampere row for the table: RTX 3070 8 GB, driver 616.56, Windows 11,
main8b957bec: no mismatching seeds.cargo test -p xcl --lib --locked gpu::dxil::fuzz_tests::fuzz_validate_and_gpu -- --test-threads=1(debug, rustc 1.100.0, DXC 1.8.2502.11 from the Windows SDK,XCL_REQUIRE_GPU=1), twice withXCL_DIRECT_DXILunset and twice withXCL_DIRECT_DXIL=1: 4 passed, 0 failed in all four runs.With
--nocapture, each range validated all 500 seeds and GPU-compared the generator'sgpu_safeones (fuzz_tests.rs:1164): 313 for_1, 314 for_2and 306 for_3, with the same counts in both modes. The AMD seeds in the table (540, 722, 783, 817 in_1, 1003 in_2, 1599 in_3) fail as GPU mismatches, so they are among the GPU-compared seeds, and all of them match the CPU here. Unlike the RTX 5060 row, no pipeline was refused (0x8007000E).AI-assisted (Claude Code, Claude Opus 5.5 ran the tests).
MeMako commentedon Nov 27, 2026
Windows 11 RX 9070 XT (RDNA 4) data point on driver
32.0.32029.2010(amd-devbf7c82ee, clean tree, release build, defaultXCL_DIRECT_DXILunset):32.0.32029.2010; Ryzen 9 7950X, 32 GB RAM; Windows 11 Pro10.0.26200rustc 1.97.1, DXC1.8.2502.11(Windows Kits\10\bin\10.0.26100.0\x64)Commands & results (
--test-threads=1,0skipped):fuzz_validate_and_gpu_0cargo test --release -p xcl --lib -- --exact --test-threads=1 gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_01 passed; 0 failed; 0 ignored,1.32 s)fuzz_validate_and_gpu_1cargo test --release -p xcl --lib -- --exact --test-threads=1 gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_10 passed; 1 failed; 0 ignored,0.58 s)crates\xcl\src\gpu\dxil\fuzz_tests.rs:1171:21:seed 722: res[30] = 0x1, CPU 0x7ffffffffuzz_validate_and_gpu_2cargo test --release -p xcl --lib -- --exact --test-threads=1 gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_21 passed; 0 failed; 0 ignored,1.33 s)fuzz_validate_and_gpu_3cargo test --release -p xcl --lib -- --exact --test-threads=1 gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_31 passed; 0 failed; 0 ignored,1.40 s)seed 1599passes hereamd_reduced_seedscargo test --release -p xcl --lib -- --ignored --test-threads=1 amd_reduced_seeds0 passed; 1 failed; 0 ignored,0.11 s)PASS full seed 540: 0 mismatching dwords;FAIL full seed 722: 1 mismatching dwords;PASS full seed 1599: 0 mismatching dwordsNot tested:
XCL_DIRECT_DXIL=1,mainbranch, and debug builds were not run.AI use: Antigravity (Gemini 4 Neon) ran the tests and drafted this report.
Direct DXIL: fold Countbits of constants (AMD folds Bfrev(Countbits(K…