Skip to content

D3D12.X: anchor XCL_LOOK_SKIP per frame and clear CLOSED on list reset/release - #2768

Open
Decodere wants to merge 1 commit into
xcl-dev:nvidia-devfrom
Decodere:ws8-part3-look-skip-per-frame-and-lifecycle
Open

Decodere wants to merge 1 commit into
xcl-dev:nvidia-devfrom
Decodere:ws8-part3-look-skip-per-frame-and-lifecycle

Conversation

@Decodere

@Decodere Decodere commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Targets nvidia-dev (eae01502). Anchor XCL_LOOK_SKIP per presented frame and clear stale CLOSED timestamps on command-list reset, KickoffX reopen, and final release so XCL_LOOK_SKIP=1 stays sound across frames and pointer reuse. XCL_LOOK_SKIP remains opt-in (off by default, zero behavior change when unset), and lists closed at or after the last look began (or with pending WALK_FOUND) still force a full look.

Part of #2688

What is in it

  • crates/xcl/src/hle/d3d12x/title_textures.rs: replace LOOK_BEGAN: AtomicU64 with LAST_LOOK: Mutex<(u64, u64)> storing (began_us, frame) sampled atomically together (present::activity().0 before now_us() in take_round and refresh_parts, updated monotonically in (frame, began) via advance_look so a late XCL_LOOK_AHEAD round cannot rewind a newer frame); require look_frame == current_frame inside closed_before_last_look_in so every new frame guarantees at least one fresh write-watch look while same-frame pre-closed lists still skip under XCL_LOOK_SKIP=1; add forget_list_closed(list) (also invoked from list_reset), pure should_look, and #[cfg(test)] is_list_closed_for_test(list).
  • crates/xcl/src/hle/d3d12x/title_list.rs: record note_list_closed(this) in close only on hr >= 0 (preserving capture::list_end), and clear forget_list_closed(this) in reset on hr >= 0 and in release on n == 0 alongside capture::forget before wrapper deallocation.
  • crates/xcl/src/hle/d3d12x/console_list.rs: add is_backing(pc) (fast-path !enabled()), move note_list_closed(obj) from the start of close to after list.Close()? succeeds (so UMA writes during translation/close cannot be missed by a concurrent look), and clear forget_list_closed(obj) in cl_reset and cl_release before freeing the wrapper.
  • crates/xcl/src/hle/d3d12x/list_x.rs: save kickoff_wrapper = title_list::wrapper_of(this) before reclaim_for_kickoff and clear forget_list_closed(w) on kickoff_x reset; record note_list_closed(this) in dma_close_x when hr >= 0 && !is_own_work() && !presenting() && title_list::wrapper_of(this).is_none() && !console_list::is_backing(this).
  • crates/xcl/src/hle/d3d12x/real.rs: record note_list_closed(this) in cl_close under the same five guards (hr >= 0 && !is_own_work() && !presenting() && title_list::wrapper_of(this).is_none() && !console_list::is_backing(this)), and clear forget_list_closed(this) in cl_reset when hr >= 0 && !is_own_work() && !presenting().
  • Unit tests: updated a_block_the_walk_found_since_ends_the_skip and added 6 deterministic tests in title_textures::tests (closed_timestamp_cleared_on_list_reset, closed_timestamp_cleared_on_release_and_pointer_reuse, new_frame_forces_look_even_for_pre_closed_list, same_frame_pre_closed_lists_skip_look_when_enabled, list_closed_after_look_began_runs_look, walk_found_at_or_after_look_began_runs_look) plus 1 end-to-end lifecycle test in title_list::tests (title_list_close_reset_and_release_maintain_closed_tracking).

Tested

  • Hardware: Windows 11 Home (build 26200), NVIDIA GeForce RTX 4060 (8 GB, driver 621.14), Intel Core i5-11400F, 32 GB RAM, rustc 1.100.0, DXC 1.9.2609.5, debug (WARP) and release (RTX 4060), rebased cleanly onto origin/nvidia-dev (eae01502).
  • Targeted unit tests (7 in hle::d3d12x::title_textures::tests:: + hle::d3d12x::title_list::tests::title_list_close_reset_and_release_maintain_closed_tracking):
    • Debug (XCL_ADAPTER=warp): 8 passed, 0 failed, 0 ignored (0 skipped, 0.02 s).
    • Release (RTX 4060): 8 passed, 0 failed, 0 ignored (0 skipped, 0.02 s).
  • Affected module suites on release RTX 4060 (--test-threads=4): 197 passed, 0 failed, 0 ignored (0 skipped — title_textures 35 in 1.16 s, title_list 6 in 0.02 s, console_list 9 in 0.19 s, list_x 50 in 0.92 s, real 97).
  • cargo clippy --workspace --all-targets: 0 new errors and 0 new warnings across all added/changed lines in the 5 modified files (pre-existing nvidia-dev clippy errors remain in untouched lower_valu.rs, lower_wide.rs, recomp/lower.rs, and sparse.rs).
  • Live 25 s RTX 4060 smoke with XCL_LOOK_SKIP=1 XCL_LOOK_STATS=2 on 71b7629c (title: 29640639): 506 frames (PresentX 506), 37 60 60 presents/2 s, 0 device removals, 0 crashes, 15268 MB peak commit, exit: 0x0.

Regression run
Default-flags quiet 60 s scripts/smoke.ps1 runs on title: 29640639 (XCL_LOOK_SKIP unset):

main (b49be183, merge-base of main and nvidia-dev):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1571 (PresentX 1571)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13975 MB

nvidia-dev (eae01502, target base):

xcl-smoke v1
commit: eae015021c639866ab061cdff2e9daf8ba9daac5
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1585 (PresentX 1585)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15900 MB

PR HEAD (71b7629c, default flags):

xcl-smoke v1
commit: 71b7629cdf0c33f05cdfbaa29fea1edbb78139dc
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1546 (PresentX 1547)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15999 MB

Not tested

  • Full --workspace test suite on the rebased eae01502 commit (targeted 8/0/0 tests, all 5 affected module suites 197/0/0, clippy, and smokes ran on 71b7629c).
  • Live title runs under XCL_CONSOLE_LISTS=1, XCL_LOOK_AHEAD=1, or titles submitting unwrapped Kind::DmaList / unwrapped Kind::CommandList lists directly (those hooks are covered by code review and module unit tests rather than exercised live by title: 29640639).
  • AMD or Intel GPUs, Linux, and multi-minute soak runs beyond 60 s with XCL_LOOK_SKIP=1.

AI use

  • Google Antigravity (Gemini 4 Neon) audited the XCL_LOOK_SKIP / CLOSED lifecycle and cross-frame behavior across the 5 D3D12.X files, implemented the per-frame LAST_LOOK anchoring and reset/release/close hooks, wrote the 7 new unit tests (and updated 1 existing test), rebased onto origin/nvidia-dev (eae01502), ran the build/test/clippy/smoke verification suites, and updated this PR description.

@itsSio

itsSio commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Independent dual-PC NVIDIA verification at 936bb90e17e702b20ab1c465372317875d30d0b6 (clean detached checkouts, XCL_ADAPTER=NVIDIA):

Tested

  • PC 1: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088, wave32), AMD Ryzen 7 9800X3D, 32 GB RAM, Windows 11 Pro build 26200, rustc 1.97.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5 (dxcompiler.dll + dxil.dll, confirmed in test log).
    • cargo build --workspace (debug): exit 0.
    • cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture (debug): 1754 passed, 7 failed, 48 ignored, 27 SKIPPED (21 no wave64, 3 #1426 wave32 per-lane f16/cvt refusals, 2 no heap windows, 1 pso_measurement driver cache). All 8 new/updated tests in title_textures::tests and title_list::tests pass. The 7 failures are the 6 pre-existing nvidia-dev (af2cecc4) failures (texture_upload::tests x2, d3d12_mesh_stream, gpu_compute_e2e, gpu_two_pass_cache_e2e across 2 test binaries) plus the intermittent RTX 5080 e2e::test_title_runs_and_game_folder_is_untouched failure (NVIDIA Corporation\umdlogs created in the game folder during shader preparation).
    • cargo test --release -p xcl --lib -- --test-threads=4 hle::d3d12x::title_textures:: hle::d3d12x::title_list:: hle::d3d12x::console_list:: hle::d3d12x::list_x:: hle::d3d12x::real::: 193 passed, 0 failed, 0 ignored, 0 SKIPPED (1.74 s).
  • PC 2: NVIDIA GeForce RTX 2080 SUPER (8 GB, driver 32.0.16.1088, wave32), AMD Ryzen 5 5600X, 16 GB RAM, Windows 11 Pro build 26200, rustc 1.99.1 (stable-x86_64-pc-windows-msvc), Windows SDK 10.0.26100 DXC 1.8.2502.11 (dxcompiler.dll + dxil.dll, confirmed in test log).
    • cargo build --workspace (debug): exit 0.
    • cargo test --workspace --no-fail-fast -- --test-threads=4 --nocapture (debug): 1754 passed, 7 failed, 48 ignored, 30 SKIPPED (same 27 + 3 no D3D12 debug layer). All 8 new/updated tests pass. Failures: the same 6 pre-existing nvidia-dev (af2cecc4) failures plus hle::d3d12x::sparse::tests::a_tile_decommitted_and_committed_again_keeps_its_video_memory, which passed 3/3 standalone (cargo test -p xcl --lib hle::d3d12x::sparse::tests::a_tile_decommitted_and_committed_again_keeps_its_video_memory -- --nocapture).
    • Targeted debug run (title_textures::tests, title_list::tests, console_list::tests, list_x::tests, real::tests): 99 passed, 0 failed, 0 ignored.

Not tested

  • Live retail title runs under XCL_LOOK_SKIP=1, AMD/Intel GPUs, Linux, and the 48 #[ignore] / SKIPPED tests.

AI use
Ran via Samaritan:

  • Antigravity CLI, Gemini 4 Neon (High): ran the dual-PC builds and test suites, verified the logs, and wrote this test report.

@GustavoEllwanger

Copy link
Copy Markdown
Contributor

Test report on head 936bb90 against its base nvidia-dev af2cecc (the PR is on the current tip, so as is and merged are the same tree), on NVIDIA Blackwell (32-lane waves) and AMD RDNA2 (native wave64), with and without XCL_LOOK_SKIP=1.

Tested

  • AMD Ryzen 7 7700, Windows 11 build 26200.9974, Rust 1.95.0 MSVC, debug.
    • NVIDIA GeForce RTX 5060 8 GB (driver 32.0.16.1088), XCL_ADAPTER=5060
    • AMD Radeon RDNA2 iGPU (driver 32.0.21042.62), XCL_ADAPTER=Radeon
  • cargo test --workspace --no-fail-fast -- --test-threads=4, base and head in turn on the same machine:
run base af2cecc this PR 936bb90
RDNA2 iGPU 1745 passed, 5 failed, 48 ignored 1752 passed, 5 failed, 48 ignored
RTX 5060 1745 passed, 6 failed, 48 ignored 1749 passed, 10 failed, 48 ignored
RTX 5060, XCL_LOOK_SKIP=1 1742 passed, 10 failed, 48 ignored 1752 passed, 6 failed, 48 ignored
  • Failures on both trees, the same every run: texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays and pieces_hold_the_texels_of_their_levels, console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, async_compute_pso_registers_real_pso_and_not_standin, on the RTX 5060 also two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs, and on the iGPU gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 783, 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). So nvidia-dev itself is not green on these cards.
  • The 4 extra failures in one base run and one head run are the same 4 both times: test_title_runs_and_game_folder_is_untouched, split_compute_prefers_the_offline_whole_pipeline and unreadable_shader_pack_stops_launch_before_host_start (exit code 130088962 instead of 2). They are flaky under the whole suite, not tied to this PR or to XCL_LOOK_SKIP: running e2e, gpu_compute_e2e and launcher_e2e on their own 3 times on each tree gives the same result on both (4/0, 6/1 with only async_compute_pso..., 7/0).
  • Comparing runs with the same failure set, this PR is the base plus its 7 new tests on both GPUs (iGPU 1745 to 1752; RTX 5060 1745 to 1752 with 6 failed), with XCL_LOOK_SKIP unset and set.
  • All 8 tests of the PR pass on both GPUs: the 6 new and the updated a_block_the_walk_found_since_ends_the_skip in title_textures::tests, and title_list::tests::title_list_close_reset_and_release_maintain_closed_tracking.
  • The two changed test modules in parallel, XCL_ADAPTER=5060 cargo test -p xcl --lib -- hle::d3d12x::title_textures::tests hle::d3d12x::title_list::tests --test-threads=8, 30 runs each: this PR (41 tests) 30 passed, 0 failed; base (34 tests) 30 passed, 0 failed. The new LAST_LOOK and CLOSED state does not leak between tests running at the same time.

Not tested

Tests run and this report drafted with Claude Code (Claude Opus 5.5); I checked the numbers against the logs.

@Prime1997 Prime1997 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good within the frame/reset/release tracking scope. The focused tests cover new-frame invalidation, close-after-look, reset/release/pointer reuse and the title-list wrapper. I also checked the suggested Close lock cycle: console_list::close explicitly drops its LISTS guard before calling the underlying Close, so that specific self-deadlock finding is not supported.

Tested clean PR head 936bb90e17e702b20ab1c465372317875d30d0b6, targeting current nvidia-dev af2cecc40886a8682ecf3267f5328c6dc4b66ad7, in its own worktree and build directory. 8 passed, 0 failed, 0 ignored, 0 skipped. Each filter ran in a fresh process:

  • hle::d3d12x::title_textures::tests::a_block_the_walk_found_since_ends_the_skip
  • hle::d3d12x::title_textures::tests::closed_timestamp_cleared_on_list_reset
  • hle::d3d12x::title_textures::tests::closed_timestamp_cleared_on_release_and_pointer_reuse
  • hle::d3d12x::title_textures::tests::new_frame_forces_look_even_for_pre_closed_list
  • hle::d3d12x::title_textures::tests::same_frame_pre_closed_lists_skip_look_when_enabled
  • hle::d3d12x::title_textures::tests::list_closed_after_look_began_runs_look
  • hle::d3d12x::title_textures::tests::walk_found_at_or_after_look_began_runs_look
  • hle::d3d12x::title_list::tests::title_list_close_reset_and_release_maintain_closed_tracking

Build: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>. Execution: <test-exe> <each-exact-name-above> --exact --test-threads=1 --nocapture. Only private executable/target paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB RAM, Rust 1.100.0 MSVC debug tests; no GPU calls in these selected fixtures.

Not tested: No live-title XCL_LOOK_SKIP=1 performance or texture-upload correctness is established by these CPU state tests. This supports retaining the PR; it is not whole-branch or merge certification.

AI use: Codex (GPT-6) reviewed source, ran the exact tests and checked the raw results. Optional temporary Discord for coordinating contributor work, testing and comparing results.

@retrope13

Copy link
Copy Markdown

Independent Ada Lovelace (RTX 4060 Laptop 8 GB, driver 621.40) verification and diff review of #2768 (936bb90e17e7) against base nvidia-dev (af2cecc40886): full workspace suite + release targeted stress, zero new failures. No title was run.

Tested

  • Hardware / Env: NVIDIA GeForce RTX 4060 Laptop GPU (8 GB, Ada Lovelace, driver 32.0.16.2140, wave32), Intel Core i5-14500HX (14C/20T), 24 GB RAM, Windows 11 26H2 (build 26300.9818), rustc 1.100.0 (stable-x86_64-pc-windows-msvc), Windows SDK 10.0.26100.0 DXC 1.9.2602.17, XCL_ADAPTER=NVIDIA.
  • cargo build --workspace --locked, then cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture (debug):
Run Passed Failed Ignored
Base af2cecc40886 (XCL_LOOK_SKIP unset) 1748 6 48
Head 936bb90e17e7 (XCL_LOOK_SKIP unset) 1755 6 48
Head 936bb90e17e7 (XCL_LOOK_SKIP=1) 1755 6 48
  • Both head runs add the exact +7 new tests with zero regressions.
  • All 6 failures are identical across base and both head runs (the known pre-existing nvidia-dev failures: texture_upload::tests ×2, d3d12_mesh_stream::console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, gpu_compute_e2e::async_compute_pso_registers_real_pso_and_not_standin, and gpu_two_pass_cache_e2e::two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs ×2).
  • Release targeted modules (cargo test --release --locked -p xcl --lib -- --test-threads=4 hle::d3d12x::title_textures:: hle::d3d12x::title_list:: hle::d3d12x::console_list:: hle::d3d12x::list_x:: hle::d3d12x::real::): 193 passed, 0 failed, 0 ignored (1.83 s).
  • Release parallel stress (cargo test --release --locked -p xcl --lib -- --test-threads=8 hle::d3d12x::title_textures::tests hle::d3d12x::title_list::tests, 5 runs with XCL_LOOK_SKIP unset + 5 runs with XCL_LOOK_SKIP=1): 10/10 passed (41 tests/run, 0 failures).

Code Review Notes (af2cecc40886..936bb90e17e7)

  • Frame anchoring & monotonicity (title_textures.rs): Sampling present::activity().0 before now_us() in both take_round and refresh_parts, together with advance_look updating (frame, began) monotonically, fails safe across frame transitions (a late XCL_LOOK_AHEAD round cannot rewind a newer frame, and a frame advance mid-look forces a fresh look on the new frame). refresh_for holds REFRESH across refresh_once, and refresh_parts still drains AHEAD when look == false, so skipped submits do not drop look-ahead pages.
  • CLOSED key & lock-ordering check: All four list paths (title_list, console_list, unwrapped PC CommandList, and DmaList) key CLOSED by the same pointer real.rs:8915 passes to refresh_for. In console_list::close, drop(guard) runs before list.Close(), so real::cl_close → console_list::is_backing does not re-enter LISTS.
  • Two minor fail-safe observations (no blockers):
    1. For unwrapped PC/DMA lists, real::cl_release clears CLOSED via list_x::on_release → title_textures::list_reset after native Release returns 0 (unlike title_list::release / console_list::cl_release, which clear before deallocation). Any concurrent pointer reuse in that window still fails safe (at worst clears a fresh entry and forces one extra look, never a false skip); likewise console_list::cl_reset clearing CLOSED before PC Reset is fail-safe.
    2. With XCL_LOOK_SKIP unset, refresh_for still calls closed_before_last_look for the diagnostic counter and now takes LAST_LOOK.lock() instead of an atomic load (under REFRESH, so only contending with xcl-look-ahead's end-of-round note_look_began).

Not Tested

AI disclosure: Antigravity (Gemini 4 Neon, XHigh) ran the builds/tests, reviewed the diff, and drafted this report.

@throny

throny commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Test report: in the world on an RTX 4080 16 GB. No harm seen; nothing changed for the worse.

Tested

tree world runs device removed (0x887a0005, no nvlddmkm event) other ends
with #2768 + #2782 3 3, after 152 s, 140 s and 110 s of world –
the same tree without them (2 runs before, 3 after) 5 2, after 110 s and 126 s 2 title stops (0xc0000005 in title code) after 297 s and 226 s, 1 ended by my guard
  • 3 of 3 against 2 of 5 is too few runs to call a difference in either direction; what it does show is that the removal on this card does not depend on this PR either way.
  • No new crash, hang or assert with the PR in 400 s of world submits; frame rate as before (0.18–0.23 presents/s).

Not tested

AI use: Claude Code (Claude Fable 5.2) ran this on the owner's machine and wrote the report.

…t/release

Under `XCL_LOOK_SKIP=1`, `title_textures::CLOSED` previously retained stale timestamps across list reset, `KickoffX` reopen, and list release/pointer reuse, missed `Close` on unwrapped DMA and raw PC command lists, and could skip all looks in a new frame when every submitted list had been closed before an earlier frame's look.

- Track `(began_us, frame)` atomically together in `title_textures::LAST_LOOK` (sampling `present::activity().0` before `now_us()`, monotonic in `(frame, began)` so late `XCL_LOOK_AHEAD` rounds never rewind a newer frame), and require `look_frame == current_frame` inside `closed_before_last_look` so every new frame guarantees at least one fresh write-watch look while same-frame pre-closed lists still skip under `XCL_LOOK_SKIP=1` and lists closed after `LOOK_BEGAN` or `WALK_FOUND >= LOOK_BEGAN` still run a look.
- Add `title_textures::forget_list_closed(list)` (also invoked from `title_textures::list_reset`) and clear `CLOSED` on list reset (`title_list::reset`, `console_list::cl_reset`, `list_x::reset_pc`, `real::cl_reset`, `list_x::kickoff_x`) and final release before wrapper deallocation (`title_list::release`, `console_list::cl_release`, `list_x::on_release`).
- Record `note_list_closed` only on successful `Close` (`hr >= 0` in `title_list::close`, after `list.Close()?` in `console_list::close`), and wire unwrapped `list_x::dma_close_x` and `real::cl_close` (guarded by `!is_own_work() && !presenting() && title_list::wrapper_of(this).is_none() && !console_list::is_backing(this)` so wrapped backing lists never pollute `CLOSED`).
- Add deterministic unit tests in `title_textures::tests` and `title_list::tests` covering `CLOSED` cleanup on reset/release/reuse, failed Close/Reset handling, per-frame look anchoring and monotonic frame advance, same-frame skip under `XCL_LOOK_SKIP=1`, post-`LOOK_BEGAN` list close, and `WALK_FOUND >= LOOK_BEGAN`.

Part of xcl-dev#2688
Assisted-by: Google Antigravity (Gemini 4 Neon)
@Decodere

Copy link
Copy Markdown
Contributor Author

Rebased cleanly onto origin/nvidia-dev eae01502 in 71b7629c (mergeable, 0 conflicts).

  • Preserved title_list.rs capture::list_end/capture::forget, e44c9ffd, 5506ab14, and eb784bc3 alongside XCL_LOOK_SKIP=1 per-frame LAST_LOOK anchoring and CLOSED clearing on Reset/Release.
  • Re-verified on RTX 4060 (Win11, release): debug WARP & release targeted 8/0/0, all 5 modified modules 197/0/0 (0 skipped), 0 new clippy warnings, paired 60 s default smoke vs eae01502 (1546 vs 1585 frames, 60 60 60, 15999 vs 15900 MB, 0 rem/crash), and 25 s XCL_LOOK_SKIP=1 XCL_LOOK_STATS=2 smoke (506 frames, exit: 0x0).

@thehollowedone

Copy link
Copy Markdown

Independent Windows check of #2768 head 71b7629c against its exact nvidia-dev base eae01502. Setup: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35, 12 GiB), rustc 1.99.1, debug build.

  • The CI-named a_gpu_write_into_a_gpu_view_lands_in_its_cpu_view test passed on both base and head in separate processes with XCL_TEST_WARP=1: cargo test --offline --locked -p xcl --lib a_gpu_write_into_a_gpu_view_lands_in_its_cpu_view -- --test-threads=1 --nocapture, 1 passed, 0 failed, 0 ignored on each. It also passed with the default D3D12 adapter on each; the test's test_device() uses XCL_TEST_WARP, not XCL_ADAPTER, to select WARP.
  • cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 on the head: 1,822 passed, 10 failed, 48 ignored, with 26 explicit GPU skip notices. The CI-named test passed in that full run. The same command on the exact base previously yielded 1,815 passed, 10 failed, 48 ignored, with 26 skip notices, on this machine. The ten failing test names match; the head adds seven passing tests. The skip notices do not count as GPU coverage.

This does not explain the CI process exit 0x887a0005 or establish CI readiness. Not tested: AMD/Intel, a retail run of this PR, and a repeat of CI's environment. AI use: Codex (GPT-6.2 Sol) ran the matched fixture and full head suite, checked the test's adapter selection and the prior base result, and drafted this report. I verified the reported commands, counts, and failure names.

@MatyEjsr

Copy link
Copy Markdown

Independent Windows/NVIDIA verification of PR #2768 (71b7629cdf0c33f05cdfbaa29fea1edbb78139dc) against its origin/nvidia-dev base (eae015021c639866ab061cdff2e9daf8ba9daac5).

Summary & Triage

  • Clean, non-duplicate PR against nvidia-dev (eae01502, mergeable, 5 files changed).
  • Code check confirms LAST_LOOK atomically pairs (began_us, frame) with present::activity().0 sampled before now_us() and advances monotonically in (frame, began) via advance_look, closed_before_last_look_in enforces look_frame == current_frame and walk_found < began, note_list_closed is gated on hr >= 0 (excluding is_own_work(), presenting(), wrapped lists, and console_list::is_backing), and forget_list_closed clears CLOSED on Reset, KickoffX reopen, and final Release.

Tested

  • Hardware & OS: Windows 10 Pro for Workstations 25H2 (Build 26200.7171), AMD Ryzen 7 7800X3D, NVIDIA GeForce RTX 3090 24 GB (driver 617.42), 31.38 GB RAM, rustc 1.100.0 (debug & release), DXC 1.9.2602.17 (Windows SDK 10.0.26100.0).
  • cargo build --workspace -j 8: passed (0 errors).
  • cargo test --workspace --no-fail-fast -j 8 -- --test-threads=8 --show-output: 1820 passed; 7 failed; 48 ignored across all top-level targets (1696/3/28 in xcl --lib, 1/0/0 in xcl bin, 123/4/20 across 36 integration test binaries). One parallel scheduling flake (dispatch_x_with_thread_dimensions_launches_whole_groups) passed solo (1/0/0). All 7 remaining failures (3 lib + 4 across d3d12_mesh_stream, gpu_compute_e2e, gpu_two_pass_cache_e2e) were re-checked on origin/nvidia-dev eae01502 and reproduce identically on base.
  • SKIPPED (29 total, not counted as passing): 21 no wave64, 3 wave32, per-lane form: refused (unsupported), 2 no heap windows, 3 no d3d12SDKLayers.dll / no D3D12 debug layer.
  • cargo test -p xcl --lib -- --test-threads=4 --show-output title_textures::tests title_list::tests: 41 passed; 0 failed; 0 ignored (0 skipped), including all new lifecycle and frame-anchoring tests.
  • cargo build --release --workspace -j 8: passed.

Regression run (default 60s retail smoke, eae01502 vs 71b7629c)

  • Frames: 1590 vs 1599 (99.4%), peak commit 15013 MB vs 14760 MB (101.7%), 0 device removals, 0 crashes.
xcl-smoke v1
commit: eae015021c639866ab061cdff2e9daf8ba9daac5
gpu: NVIDIA GeForce RTX 3090
title: c1cc91a4
seconds: 60
exit: 0x0
frames shown: 1599 (PresentX 1599)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14760 MB
xcl-smoke v1
commit: 71b7629cdf0c33f05cdfbaa29fea1edbb78139dc
gpu: NVIDIA GeForce RTX 3090
title: c1cc91a4
seconds: 60
exit: 0x0
frames shown: 1590 (PresentX 1590)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15013 MB

Opt-in XCL_LOOK_SKIP=1 XCL_LOOK_STATS=2 60s paired comparison (eae01502 vs 71b7629c)

Metric (60s retail c1cc91a4) Base eae01502 PR #2768 71b7629c
Exit / removals / crashes 0x0 / 0 / 0 0x0 / 0 / 0
Frames shown (PresentX) 1599 1608
Presents per 2s (last 3) 60 60 60 60 60 60
Submits / draws / dispatches 6170 / 17959 / 962 6258 / 17825 / 990
Skipped looks at 6144 submits 1534 (24.97%) 1505 (24.50%)
Peak process commit (final) 14922 MB (14789 MB) 14858 MB (14797 MB)
Local / non-local VRAM peak 6128 MB / 4905 MB 6193 MB / 4868 MB

Under XCL_LOOK_STATS=2, steady-state 256-look youngest list closed before the submit buckets shifted from 239–240 <50 ms, 16–17 longer on eae01502 to 256 longer on 71b7629c, consistent with CLOSED clearing on Reset/Release and per-frame fresh-look anchoring.

Not tested

  • AMD RDNA / native wave64 GPUs, extended in-world gameplay beyond 60s, XCL_LOOK_AHEAD stress testing, and Linux/Wine.

AI use

  • Antigravity (agy) with gemini-pro-orchestrator-argon (audited by gemini-pro-orchestrator-argon): inspected the diff, ran the workspace/targeted tests and paired 60s retail smoke + XCL_LOOK_SKIP=1 telemetry runs, verified base failures against origin/nvidia-dev, and wrote/audited this report.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants