Skip to content

main e429936 on NVIDIA: 3 e2e title tests and 6 split-wave64 GPU tests fail since #2959 #3093

Done

Description

@fromthemoonx

On NVIDIA, current main (e429936) fails 9 tests that pass on 753e8b1: the 3 e2e title tests and 6 split-wave64 GPU tests. A first-parent bisect points to the merge of #2959 (b0b041f, the 325-commit stack). Its testing ran on the Basic Render Driver, which skipped the GPU tests.

Tested: RTX 3060 12 GB (driver 610.88, wave32), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug.

result
cargo test --workspace --no-fail-fast -- --test-threads=4, e429936 2125 passed, 10 failed, 48 ignored; 25 SKIPPED lines. Of the 10, write_buffer_immediate_on_open_existing_heap_visible_to_cpu passes 3 of 3 alone. The 9 below fail 3 of 3 alone.
first-parent bisect 753e8b1..e429936, on the e2e test and on 2 of the split tests 4577f09 (#3085) good, b0b041f (#2959) bad, for both groups

1. The 3 e2e title tests (test_title_draws_with_a_root_signature_under_the_debug_layer, test_title_runs_and_game_folder_is_untouched, test_title_runs_under_the_debug_layer_with_dred):

[FAIL] D3D12.X: console command list memory methods (writes, timestamp, fill, copy, KickoffX, Wait32/64): post-Wait32/64 write failed (0x0)

This is the failure @KOLESNiii found on #2787 for 054270ca ("sparse copy-back keeps newer CPU writes"). The title's CPU thread writes the wait cells at +0x300/+0x308, then the GPU writes +0x310 in the same 64-byte chunk. land_page (sparse.rs:2052, from 04de3234 "D3D12.X: preserve CPU writes during sparse copy-back") then keeps the CPU's bytes for the whole chunk. Checked here:

  • With scratch logging, both waits are observed satisfied on the CPU, and the list after them is submitted.
  • With a scratch if true || before land_page's hash check, all 5 e2e tests pass on e429936.

2. 6 split-wave64 GPU tests (here on a wave32 GPU):

test message
gpu::dxil::module::split::tests::dispatch_chain_oversized_loop_matches_whole, …dispatch_chain_wave64_live_loops_and_exchange, …dispatch_chain_wave32_live_loops split.rs:879: assertion failed: has_memory_binding.iter().any(|&present| present)
gpu::recomp::tests::gpu_compute_mode_dispatch_abi tests.rs:5317: direct DXIL: split wave64 LDS access needs the HLSL path
gpu::recomp::tests::gpu_float_cas_uses_ieee_equality tests.rs:6097: Err("split wave64 LDS access needs the HLSL path")
gpu::recomp::heap_window_tests::gpu_heap_flat_reads_match_guarded_and_root_output split wave64, 1 windows, lane 39: null/outside global load, left: 1039, right: 0

The error string comes from dbe6b30b ("Recompiler: route split wave64 LDS through HLSL"), and has_memory_binding from 2b395256 ("Recompiler: prune unused split-piece resource bindings"). I did not bisect inside the stack: its intermediate commits do not build alone (e.g. dd84e0a: Claim defined twice, driver_cache::name_for not found). Edit: group 2 is not wave32-only, as I had guessed here: DarkPanda69 sees 5 of the 6 fail on an RX 9070 XT (native wave64) too, see below.

Not tested: which of the stack's commits break group 2 (only the error strings are traced); AMD; a release build; a title.

AI use: Claude Code (Claude Opus 5.5) ran the suite, the bisects and the scratch checks, and wrote this issue.

Activity

  1. DarkPanda69 commented on Nov 28, 2026

    @DarkPanda69

    AMD data point, with an RTX 3060 in the same PC: on main e429936 the e2e failure shows on the RX 9070 XT too, and so do 5 of the 6 split/GPU tests. So group 2 isn't wave32-only.

    Tested: main e429936 and 753e8b1, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, card picked with XCL_ADAPTER (log: backend 'real' – AMD Radeon RX 9070 XT / – NVIDIA GeForce RTX 3060). RX 9070 XT (RDNA4, native wave64) driver 32.0.32029.2010; RTX 3060 driver 32.0.16.1088.

    1. e2e (cargo test -p xcl --test e2e -- --test-threads=1):

    • e429936: 4 passed, 1 failed on both cards. The failure is test_title_runs_and_game_folder_is_untouched, with the same [FAIL] … post-Wait32/64 write failed (0x0).
    • I can't confirm the two debug-layer tests: this PC has no d3d12SDKLayers.dll, so they print SKIPPED the title under the debug layer (dred: false/true): no d3d12SDKLayers.dll and pass.
    • 753e8b1 on the RX 9070 XT: 5 passed, 0 failed.

    2. The 6 lib tests (cargo test -p xcl --lib -- <the six names> --test-threads=1) on e429936:

    test RX 9070 XT RTX 3060
    dispatch_chain_oversized_loop_matches_whole, dispatch_chain_wave64_live_loops_and_exchange, dispatch_chain_wave32_live_loops FAILED, split.rs:879 has_memory_binding assertion FAILED, same
    gpu_heap_flat_reads_match_guarded_and_root_output FAILED, heap_window_tests.rs:332: native wave64, 1 windows, lane 39: null/outside global load, left: 1039 FAILED
    gpu_compute_mode_dispatch_abi FAILED, tests.rs:5317 with a different message: direct DXIL: s_barrier: s_barrier in a group of several hardware waves FAILED
    gpu_float_cas_uses_ieee_equality ok FAILED

    On 753e8b1, the RX 9070 XT passes the 5 of these that exist there; gpu_heap_flat_reads_match_guarded_and_root_output isn't in that tree.

    So on a native-wave64 card, the three split.rs:879 tests fail the same way, and the heap-window test fails on its native wave64 case. gpu_compute_mode_dispatch_abi fails at the same line with another reason, and only gpu_float_cas_uses_ieee_equality passes. I didn't bisect on AMD.

    Not tested: the debug-layer e2e tests (no SDK layers here), bisecting inside #2959, a release build, a title.

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

  2. Aniseto commented on Nov 28, 2026

    @Aniseto

    Second NVIDIA datapoint for the nine main failures reported here, from a desktop RTX 5070 Ti:

    Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. Exact tree: main e429936c.

    XCL_ADAPTER=nvidia cargo test -p xcl --lib -- dispatch_chain_oversized_loop_matches_whole dispatch_chain_wave64_live_loops_and_exchange dispatch_chain_wave32_live_loops gpu_compute_mode_dispatch_abi gpu_float_cas_uses_ieee_equality gpu_heap_flat_reads_match_guarded_and_root_output --test-threads=1
    0 passed; 6 failed; 0 ignored; 0 measured; 2023 filtered out      (exit 101)
    
    XCL_ADAPTER=nvidia cargo test --test e2e -- test_title_draws_with_a_root_signature_under_the_debug_layer test_title_runs_and_game_folder_is_untouched test_title_runs_under_the_debug_layer_with_dred --test-threads=1
    0 passed; 3 failed; 0 ignored; 0 measured; 2 filtered out      (exit 101)
    

    All nine fail here too. The six unit tests fail with the same messages listed in the issue (has_memory_binding.iter().any(|&present| present) at split.rs:879; direct DXIL: split wave64 LDS access needs the HLSL path; left: 1039, right: 0 on the flat heap-read case). The three e2e title tests fail as well. This adds a Blackwell desktop GPU to the RTX 3060 and RX 9070 XT reports; I did not bisect or change source. Only the measured counts are reported, not a review verdict.

    Not tested: a retail title, a release build, the full workspace suite, AMD cards here, a paired good-commit comparison, game data.

    AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - ran the exact commands on this machine at the reported commit and wrote this report; no source was changed and no game data was used.

  3. tiagonleal commented on Nov 28, 2026

    @tiagonleal
    Contributor

    Edit, 28 Nov 17:40 UTC: both groups are fixed on main by KOLESNiii's #3149 and #3150, which were merged while my two PRs for the same fixes (#3162, #3163) were still running their suite and smoke pair. I closed mine as duplicates. Nothing from me is pending on this issue.

    AI use: Claude Code wrote this comment (Claude Fable 5.2).

  4. throny commented on Nov 28, 2026

    @throny
    Collaborator

    A tenth failing test on main since the merges of this afternoon (e13d6250), from the same machine as my bisect on #3041 (RTX 4080, 621.40, cargo test --workspace --no-fail-fast -- --test-threads=4, debug): 2130 passed, 10 failed, 48 ignored. Nine are the ones this issue is about; the new one is

    • gpu::dxil::msaa_tests::direct_msaa_loads_precede_get_dimensions, which panics at msaa_tests.rs:299 with "dx.op.getDimensions preceded dx.op.textureLoad in the same basic block".

    It did not exist at e429936c; the four merges in between are #1809, #3102, #1873 and #1908, and the test file's history ends in the MSAA commits (425b8692, then 71d94e71 and 4070ae1d on image_get_resinfo). It reads like an assertion on the generated IR rather than on a GPU result, so it may fail without a GPU too; the Build and test (Windows, no GPU) check on e13d6250 is red.

    AI use: Claude Code (Claude Fable 5.2) ran the suite and wrote this.

  5. fromthemoonx commented on Nov 28, 2026

    @fromthemoonx
    Author

    The tenth failure comes from #1908 (e13d625): direct_msaa_loads_precede_get_dimensions passes on 773046d (#1873, just before) and fails 3 of 3 on e13d625. Same RTX 3060 (driver 610.88), debug. It also passes on e582b32.

    #1908 moves getDimensions into a block of its own and then branches with br(loads_block). In the DXIL the test disassembles, that branch is not there. getDimensions, the clamp and the textureLoad all sit in one block:

    ; <label>:191                                     ; preds = %0
      %194 = call %dx.types.Dimensions @dx.op.getDimensions(i32 72, %dx.types.Handle %193, i32 undef)
      %195 = extractvalue %dx.types.Dimensions %194, 3
      %196 = icmp ult i32 %33, %195
      %197 = select i1 %196, i32 %33, i32 0
      %198 = call %dx.types.ResRet.i32 @dx.op.textureLoad.i32(i32 66, %dx.types.Handle %193, i32 %197, …)
    

    This is the order #1900 guarded against (the amdxc64.dll null dereference on a heap Texture2DMS when getDimensions comes first in a block). So the test seems to catch a real change in the output, not a wrong test. Not tested: whether AMD's compiler crashes on this output (no AMD card here).

    AI use: Claude Code (Claude Opus 5.5) ran the checks and wrote this comment.

  6. throny commented on Nov 28, 2026

    @throny
    Collaborator

    Update from the same machine (RTX 4080, 621.40): at b937fbab the nine failures this issue is about are gone. Five trees built on that commit today (each main plus one small unrelated PR; cargo test --workspace --no-fail-fast -- --test-threads=4, debug) give 2140–2141 passed, 1 failed, 48 ignored. The three merges since e13d6250 are #3150, #3157 and #3149.

    The one test that still fails in every tree is the one from my comment above: gpu::dxil::msaa_tests::direct_msaa_loads_precede_get_dimensions. The Build and test (Windows, no GPU) check on b937fbab is still red.

    AI use: Claude Code (Claude Fable 5.2) ran the suites and wrote this.

  7. fromthemoonx commented on Nov 28, 2026

    @fromthemoonx
    Author

    Fixed on main 309c3ec here as well: the whole suite passes on the RTX 3060. #3149, #3150 and #3159 fixed the 10 failures.

    cargo test --workspace --no-fail-fast -- --test-threads=4, 309c3ec, RTX 3060 12 GB (driver 610.88), Rust 1.100.0, debug: 2142 passed, 0 failed, 48 ignored; 25 SKIPPED lines. The 3 e2e title tests pass, and both debug-layer runs give the same messages as before #2959 (3× error id 93, 1× error id 1046, 1× warning id 820, 2× warning id 926, 8× id 0). Closing.

    AI use: Claude Code (Claude Opus 5.5) ran the suite and wrote this comment.

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