Skip to content

DXIL fuzz tests: fuzz_validate_and_gpu_1 fails on AMD (seed 722 and others, RDNA2-4), so the default suite is red there #2115

Backlog

Description

@cindertheblue

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:

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_seeds has 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

  1. luckyteagirl commented on Nov 25, 2026

    @luckyteagirl
    Contributor

    RX 6800M data point on current main f5c5bdf0e91035f8f1404f46f4f2f7aedc259e7f:

    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 ran cargo test --locked -p xcl --lib -j 2 gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 -- --test-threads=1 --show-output with XCL_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.
    • A paired full workspace run on this main and 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 contained 0x887A0005 after 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.

  2. SlopTart commented on Nov 25, 2026

    @SlopTart

    RDNA3 data point under Linux/Wine, and it does not match the Windows seed pattern: fuzz_validate_and_gpu_1 is 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_DXIL unset (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 _1 among the AMD reports here; every Windows entry hits 722 or 540.
    • fuzz_validate_and_gpu_2 (1000..1500): fails at seed 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 main cbc296ab. 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 _1 and 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.

  3. chaseb64 commented on Nov 25, 2026

    @chaseb64

    @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 1 at word 713, where the CPU expected 0. Please report whether that still reproduces and whether the reduced baseline independently reproduces at word 9, also expected 0. Either result is useful. Your reproduction

    The runner and all four fixtures use XCL 6020a33b16ba2de25b3aef5947552f2dc1831f09. The full and reduced baseline DXIL, inputs and expected results match the artifacts regenerated from cbc296ab65a2661a61e3e2da109134bcd5319f60 byte 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:

    Extract both archives. In the companion directory, set WINEPREFIX, XCL_ADAPTER and XCL_DXC_DIR as 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-results

    Please return summary.tsv, environment.txt and 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.

  4. cindertheblue commented on Nov 25, 2026

    @cindertheblue
    ContributorAuthor

    Every seed on two AMD GPUs (Windows), main 568e7db. fuzz_validate_and_gpu_* stops at the first mismatch, so for a skip list I ran all 2000 seeds with a local copy of run_seeds that 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 with XCL_DIRECT_DXIL=0 and 1:

    GPU driver mismatching seeds
    RX 7600 XT (RDNA3, Navi 33) 32.0.31041.1004 722 (1 dword), 783 (32), 817 (64)
    Ryzen 5 9600X iGPU (RDNA2, gfx1036) 32.0.21045.5002 540 (21 dwords), 783 (32), 817 (64)
    • 722, 783 and 817 are the seeds @srcamarda listed for the RX 7800 XT, and 540 is the one on the RX 6600 and the 9800X3D iGPU. 1599 passes on both GPUs here, as amd_reduced_seeds showed for the RX 7600 XT.
    • So the Windows AMD reports in this issue come to five seeds: 540, 722, 783 and 817 (_1), and 1599 (_3, RDNA4 only so far). 1003 (_2) is only on Linux/RADV.
    • First mismatching words: 722 res[30] = 0x1 (CPU 0x7fffffff); 540 res[833] = 0x7 (CPU 0x6); 783 res[64] = 0xc on the RX 7600 XT, 0xf5ffddbf on the iGPU (CPU 0x7fffffff); 817 res[320] = 0xfe53ffff on both (CPU 0x4a43fdeb).

    The rest of the suite found nothing else AMD-specific on this main. I ran cargo test --workspace --no-fail-fast -- --test-threads=4 on the iGPU (XCL_ADAPTER="radeon(tm)", with and without XCL_DIRECT_DXIL=1), and on the RX 7600 XT with XCL_DIRECT_DXIL=all and with XCL_SPLIT_WAVE64=1. Apart from fuzz_validate_and_gpu_1 (seed 540 on the iGPU, 722 on the RX 7600 XT), the only failures were gpu_image_get_resinfo_1d_array (#2046) and offline_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, main 568e7db with 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.

  5. Diskuss commented on Nov 25, 2026

    @Diskuss

    Update: seed 1599 is an AMD driver constant-folding bug: Bfrev(Countbits(K)) with a constant K. RX 9070 XT, driver 32.0.32015.7029, main 568e7db.

    On this card, amdxc64 folds reversebits(countbits(K)) to reversebits(n) | n, where n = countbits(K). For example, K = 2 gives 0x80000001 instead of 0x80000000. 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 is bfrev(n) | n, for both Countbits.i32 and Countbits.i64.
    • These forms pass:
      • Bfrev(K), Countbits(K), Countbits(Bfrev(K)) and Bfrev(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.
    • So it only happens when the driver can prove the operand is constant. The Countbits.i64 split in ops.rs does 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 gives 0x80000001 on every lane at both -Od and -O3. The control, with k = mem.Load(...) = 2, gives 0x80000000.

    RWByteAddressBuffer res : register(u1);
    [WaveSize(32)] [numthreads(32, 1, 1)]
    void main(uint t : SV_GroupIndex) {
        uint k = WaveReadLaneFirst(2u);              // expected res[t] = 0x80000000
        res.Store(t * 4, reversebits(countbits(k))); // RX 9070 XT: 0x80000001
    }

    Workaround (local branch, not pushed): Shader::bit_count (crates/xcl/src/gpu/dxil/ops.rs) folds Countbits of an integer constant to an i32 constant, using the new helper Module::int_const. A new test, ops_tests::bfrev_of_countbits_of_a_constant_matches_cpu, covers it. Results on this card:

    • Full seed 1599: 0 mismatching dwords (was 62).
    • 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 _1 at seed 722, which is unchanged.
    • One case is not covered: the reduced 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 (head 1d8341a). With it, the reduced 722 forms and full seed 722 pass. With both changes, _3 passes and _1 stops at seed 783 (res[64] = 0xffffffff, CPU 0x7fffffff). That is the seed @oni-swr is working on.


    Tested on AMD Radeon RX 9070 XT (RDNA4) at main 568e7db7729c8fa6c8f0f4b32d798faaf11462bb

    AMD 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_DXIL unset.

    Tested:

    • cargo test --workspace --no-fail-fast -- --test-threads=4: 1152 passed, 2 failed, 46 ignored. The failures are fuzz_validate_and_gpu_1 and fuzz_validate_and_gpu_3; nothing else failed. gpu_direct_msaa_image_loads passes.
    • Full sweep: cargo test -p xcl --lib gpu::dxil::fuzz_tests::fuzz_validate_and_gpu -- --test-threads=1 --nocapture, with a local copy of run_seeds that logs a mismatch and continues (not pushed). 1232 seeds were GPU-compared (299 / 313 / 314 / 306 for _0 .. _3), no pipeline errors, one run.
    test failing seeds first mismatching word
    _0 (0..500) none
    _1 (500..1000) 722 (1 dword), 783 (32 dwords) 722: res[30] = 0x1, CPU 0x7fffffff; 783: res[64] = 0xffffffff, CPU 0x7fffffff
    _2 (1000..1500) none
    _3 (1500..2000) 1599 (62 dwords) res[193] = 0x1, CPU 0x0

    540 and 817 do not mismatch on this card.

    Not tested: XCL_DIRECT_DXIL variants, 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_count folds Countbits of a constant. Seed 1599 gives 0 mismatches, and fuzz_validate_and_gpu_3 passes on this card.

  6. oni-swr commented on Nov 25, 2026

    @oni-swr
    Contributor

    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 #2115 PR: 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).

  7. Toons29 commented on Nov 25, 2026

    @Toons29

    Another RDNA4 data point for the table, on a newer driver: RX 9070, driver 32.0.32029.2010, main
    6020a33.
    fuzz_validate_and_gpu_1 (seed 722) and fuzz_validate_and_gpu_3 (seed 1599) fail in 5 of 5 runs, with the same
    seed and values each time. amd_reduced_seeds gives 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.

    • main at 6020a33b16ba2de25b3aef5947552f2dc1831f09, 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 passed
      • fuzz_validate_and_gpu_1: 0 of 5 passed, every time seed 722: res[30] = 0x1, CPU 0x7fffffff
      • fuzz_validate_and_gpu_2: 5 of 5 passed
      • fuzz_validate_and_gpu_3: 0 of 5 passed, every time seed 1599: res[193] = 0x1, CPU 0x0
      thread 'gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1' panicked at crates\xcl\src\gpu\dxil\fuzz_tests.rs:1171:21:
      seed 722: res[30] = 0x1, CPU 0x7fffffff
      thread 'gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3' panicked at crates\xcl\src\gpu\dxil\fuzz_tests.rs:1171:21:
      seed 1599: res[193] = 0x1, CPU 0x0
      
    • FUZZ_SEED=<seed> cargo test -p xcl --lib fuzz_tests::debug_seed -- --ignored --nocapture, once per seed:

      • seed 722: GPU run: 1 mismatching results; seed 1599: GPU run: 62 mismatching results.
      • With FUZZ_WATCH=30 on seed 722, the input word for lane 0 is 0x7fffffff and for lane 30 is 0x1; lane 30 is
        the only one of the 32 lanes with input 1. So the expected 0x7fffffff is lane 0's value, and the GPU wrote
        lane 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):

      FAIL 722 switch + WaveReadLaneFirst: res[30] = 0x1, CPU 0x7fffffff
      FAIL 722 switch + WaveReadLaneFirst + Countbits.i64 case: res[30] = 0x1, CPU 0x7fffffff
      PASS 1599 Countbits.i64(const 2)
      FAIL 1599 Countbits.i64(const 2) -> shift / Bfrev: res[1] = 0x1, CPU 0x0
      FAIL 1599 Countbits.i64(dynamic 2) -> shift / Bfrev: res[1] = 0x1, CPU 0x0
      FAIL full seed 722: 1 mismatching dwords
      FAIL full seed 1599: 62 mismatching dwords
      
    • The same two tests are the only failures in this machine's earlier whole-suite run of main cbc296a
      (1152 passed, 2 failed, 46 ignored), and a second whole-suite run of cbc296a shows the same seeds and values.

    Not tested

    • Seeds after the first mismatch in each test (the test stops there; I did not change it to log every seed).
    • Any other driver version on this card, and whether a workaround or skip fixes it.
    • Which part of the driver or the generated DXIL causes the difference.

    AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this draft.

  8. SlopTart commented on Nov 25, 2026

    @SlopTart

    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, main at 568e7db, no local changes:

    • debug: gpu::dxil::fuzz_tests 5 passed, 0 failed, 2 ignored
    • release: same, 5 passed, 0 failed, 2 ignored

    All three seed ranges (_1 500..1000, _2 1000..1500, _3 1500..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) were CreateComputePipelineState returning 0x8007000E on 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 (main cbc296ab, RX 7900 XT, Mesa 26.2.5, Proton Experimental): _1 and _3 green, _2 fails 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.

  9. pablogonz12 commented on Nov 25, 2026

    @pablogonz12
    Contributor

    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_2 passes here. This says nothing about the Windows seeds (540, 722, 783, 817, 1599).

    Reduced. With x = 0xffffffff loaded from a buffer, y = int(x << 26) >> 26 is correctly -1, but on stock Mesa:

    compare GPU expected
    uint(y) <= 0xfffffffe (shifts of 26, 24 and 16) 1 0
    uint(y) < 0xffffffff (shift 26) 1 0
    uint(y) != 0xffffffff (shift 26) 0 0
    uint(y) <= 100 (shift 26) 0 0
    x <= 0xfffffffe, no sign extension 0 0
    • The SPIR-V from vkd3d-proton passes spirv-val (checked on the full seed) and, for the 26-bit <= case, keeps OpShiftRightArithmetic → OpULessThanEqual.
    • In the final NIR for that case (RADV_DEBUG=nir), the compare result is already the constant 1, while the ishr is still computed and stored. The MR attributes this fold to nir_opt_uub.
    • In seed 1003 the compare is v62, on a value that comes from the GsAtomic through GsExchange. 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

    • XCL main 568e7db7729c8fa6c8f0f4b32d798faaf11462bb; 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-msvc release cross-build.
    • Distro Mesa 26.3.1: debug_seed with FUZZ_SEED=1003 gives 8 mismatching words (res[713..=716] and res[721..=724]: 0x1, CPU 0x0).
    • A/B: RADV built from the Mesa 26.3.1 tarball with the same options (-Dllvm=disabled, release), without and with the MR's patch (commit 723fba05; one hunk applied at an offset), selected with VK_DRIVER_FILES; the loader log shows which library ran.
    stock patched
    seed 1003, mismatching words 8 0
    reduced compares above, wrong rows first two none
    cargo test -p xcl --lib suite, run twice each 1088 passed, 7 failed, 26 ignored 1089 passed, 6 failed, 26 ignored

    The 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 is fuzz_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, _2 can 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.

  10. oni-swr commented on Nov 25, 2026

    @oni-swr
    Contributor

    Seeds 783 and 817 on an RX 7800 XT (driver 32.0.31035.1003), reduced:

    AI use: Claude Code (Claude Sonnet 5.5).

  11. SlopTart commented on Nov 25, 2026

    @SlopTart

    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_tests 5 passed, 1 failed, 2 ignored. The one failure is the Mesa-only fuzz_validate_and_gpu_2 seed 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:

    Counts only, no game data.

    AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

  12. SlopTart commented on Nov 25, 2026

    @SlopTart

    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):

    • one input load (V1, V2)
    • a group-shared atomic or with constant 0x76f77f5f, old value kept as V3
    • V5 = V1 or 1, then V6 = udiv V3 / V5
    • a constant-folded fadd nnan ninf double (-16.0 + -3.0) feeding an fptrunc to f32
    • V11 = V3 - 1, V12 = V3 and 31, then V13 = ashr V11 by variable V12
    • a group-shared exchange of V13 at slot 7, old value kept as V23
    • two shl 26 / ashr 26 sign-extension pairs (over V1 and V23), a multiply, compare and cast chain, then the raw stores

    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.

  13. cindertheblue commented on Nov 25, 2026

    @cindertheblue
    ContributorAuthor

    Windows run of the whole stack: main 68a284a + #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 onto 68a284a with no conflicts, in that order.

    Tested

    • AMD Radeon RX 7600 XT 16 GB (RDNA3, Navi 33), driver 32.0.31041.1004, and the Ryzen 5 9600X iGPU (RDNA2, 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 with cargo build --workspace first. Apart from the merges, the only local change is the logging copy of run_seeds from my earlier comment, as an ignored test (not pushed).
    • All 2000 seeds (1232 GPU-compared), twice per GPU, with the same seeds and dword counts both times:
    RX 7600 XT iGPU gfx1036
    main 68a284a 722 (1 dword), 783 (32), 817 (64) 540 (21), 783 (32), 817 (64)
    stack none none
    • amd_reduced_seeds -- --ignored: every variant and full seed passes on both GPUs with the stack. On main the full seed 722 fails on the RX 7600 XT, and both 540 variants and the full seed 540 fail on the iGPU. One change from 568e7db: on 68a284a the two reduced 722 shapes pass on the RX 7600 XT (two runs) while the full seed 722 still fails. On 568e7db both shapes failed there.
    • cargo test --workspace --no-fail-fast -- --test-threads=4, once each. The 47 ignored include the local scan test:
    main 68a284a stack
    RX 7600 XT 1288 passed, 2 failed, 47 ignored 1294 passed, 1 failed, 47 ignored
    RX 7600 XT, XCL_DIRECT_DXIL=1 1287 passed, 3 failed, 47 ignored 1293 passed, 2 failed, 47 ignored
    iGPU 1288 passed, 2 failed, 47 ignored 1294 passed, 1 failed, 47 ignored

    The stack's 6 extra passes are the 5 tests the PRs add plus fuzz_validate_and_gpu_1. The failure left on both trees is a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier (left: 3, right: 1), which already fails on main since the #2074 merge and is acknowledged there. With XCL_DIRECT_DXIL=1 there is also offline_compute_pipeline_is_reused_by_a_second_process (#1674) on both trees. The same 8 SKIPPED lines in all six runs.

    So on this machine, with those four PRs in, cargo test --workspace has 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.

  14. SashaTun commented on Nov 25, 2026

    @SashaTun

    NVIDIA GeForce RTX 5060 (8 GB, 32-wide waves only): the fuzz GPU tests fail with a refused pipeline (0x8007000E), not with a wrong result

    On main 68a284a — NVIDIA GeForce RTX 5060 (8 GB), driver 32.0.16.2101; Windows 11 build 26200 x64; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); release profile; no XCL_SAMPLE_*:

    cargo test --release --workspace --no-fail-fast -- --test-threads=4 → 1285 passed, 5 failed, 46 ignored; 29 SKIPPED lines (21 of them no 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:

    test seed error
    gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0 70 CreateComputePipelineState: 0x8007000E (out of memory)
    gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 545 same
    gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_2 1019 same
    gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3 1507 same

    So 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_barrier fails on main too (1 group barrier expected, 3 in the program). It is not card-specific: the CI run on main 3ceb5507 fails 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.

  15. thiagocalile commented on Nov 25, 2026

    @thiagocalile

    Independent Windows AMD Radeon RX 6600 (RDNA2, 8 GB VRAM, native wave64) verification of main 2898511 + #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 unmodified main 2898511).

    Tested

    • Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64 + mesh shaders, driver 32.0.21045.29003, XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.8.2502.11.
    • Unmodified main (2898511af1c038a2ef809719e9b6f89e5675c422):
      • XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 1,362 passed, 1 failed, 46 ignored (11 skipped; failed: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1).
    • Clean local merge of #1946 (f906266) + #2192 (1d8341a) onto main 2898511:
      • XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 1,364 passed, 0 failed, 46 ignored (11 skipped).

    Regression run (scripts/smoke.ps1 -Seconds 60, release builds, XCL_ADAPTER=radeon)

    main (2898511):

    xcl-smoke v1
    commit: 2898511af1c038a2ef809719e9b6f89e5675c422
    gpu: AMD Radeon RX 6600
    title: 3c290c16
    seconds: 60
    exit: 0x0
    frames shown: 1488 (PresentX 1489)
    presents per 2 s (last 3): 60 60 60
    device removals: 0
    crashes: 0
    peak commit: 11934 MB
    

    main 2898511 + #1946 (f906266) + #2192 (1d8341a):

    xcl-smoke v1
    commit: 48282949dc959da8eb78351b8f61a6bd80457500
    gpu: AMD Radeon RX 6600
    title: 3c290c16
    seconds: 60
    exit: 0x0
    frames shown: 1453 (PresentX 1453)
    presents per 2 s (last 3): 49 0 59
    device removals: 0
    crashes: 0
    peak commit: 18345 MB
    

    Not tested: #1946 and #2192 individually 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions