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

Merged
Decodere merged 1 commit from upstream-pr/2768 into nvidia-dev 2026-11-28 00:36:19 +00:00
Decodere commented 2026-11-26 11:26:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T11:26:43Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5509175884 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T11:26:43Z. --- 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.
Prime1997 commented 2026-11-26 12:46:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T12:46:37Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ivall/xcl:review:6074362352 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768#pullrequestreview-6074362352). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T12:46:37Z. **Review:** COMMENTED --- **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](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing and comparing results.
itsSio commented 2026-11-26 13:05:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by itsSio on 2026-11-26T12:37:29Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7192244268 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768#issuecomment-7192244268). Originally posted by [itsSio](https://github.com/itsSio) on 2026-11-26T12:37:29Z. --- 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 commented 2026-11-26 13:05:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by GustavoEllwanger on 2026-11-26T12:40:09Z.


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, #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

  • A retail title, so nothing about what XCL_LOOK_SKIP=1 saves per frame (#2688 workstream 8 numbers).
  • A release build.

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

<!-- greyfinch-sync:ivall/xcl:comment:7192303081 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768#issuecomment-7192303081). Originally posted by [GustavoEllwanger](https://github.com/GustavoEllwanger) on 2026-11-26T12:40:09Z. --- 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, #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** - A retail title, so nothing about what `XCL_LOOK_SKIP=1` saves per frame (#2688 workstream 8 numbers). - A release build. Tests run and this report drafted with Claude Code (Claude Opus 5.5); I checked the numbers against the logs.
retrope13 commented 2026-11-26 13:05:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by retrope13 on 2026-11-26T13:02:27Z.


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

  • Live retail title runs (so no per-frame XCL_LOOK_SKIP=1 timing or stability data for #2688 WS8).
  • AMD / Intel GPUs, Linux, and the 48 #[ignore] / SKIPPED tests.

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

<!-- greyfinch-sync:ivall/xcl:comment:7192792846 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768#issuecomment-7192792846). Originally posted by [retrope13](https://github.com/retrope13) on 2026-11-26T13:02:27Z. --- **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 - Live retail title runs (so no per-frame `XCL_LOOK_SKIP=1` timing or stability data for #2688 WS8). - AMD / Intel GPUs, Linux, and the 48 `#[ignore]` / `SKIPPED` tests. *AI disclosure: Antigravity (Gemini 4 Neon, XHigh) ran the builds/tests, reviewed the diff, and drafted this report.*
throny commented 2026-11-26 16:06:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-26T15:35:05Z.


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

Tested

  • RTX 4080 16 GB (driver 621.40, 1 GiB shader-heap profile of #2590), i9-12900K, 64 GB RAM, Windows 11 26300, release.
  • This PR together with #2782 (git apply, both as they are) on nvidia-dev af2cecc4 + #684 + #2697 + #2749 + #2729 + #2794 + the two-pass stack #2817. The retail title of #505, Series X profile, world from about 170 s; the card is 2.5 GB over its video memory budget there.
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

  • This PR without #2782, XCL_LOOK_SKIP set (default settings only), its tests and the suite, AMD, a card under its budget.

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

<!-- greyfinch-sync:ivall/xcl:comment:7196470646 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768#issuecomment-7196470646). Originally posted by [throny](https://github.com/throny) on 2026-11-26T15:35:05Z. --- **Test report: in the world on an RTX 4080 16 GB. No harm seen; nothing changed for the worse.** **Tested** - RTX 4080 16 GB (driver 621.40, 1 GiB shader-heap profile of #2590), i9-12900K, 64 GB RAM, Windows 11 26300, release. - This PR together with #2782 (`git apply`, both as they are) on `nvidia-dev` `af2cecc4` + #684 + #2697 + #2749 + #2729 + #2794 + the two-pass stack #2817. The retail title of #505, Series X profile, world from about 170 s; the card is 2.5 GB over its video memory budget there. | 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** - This PR without #2782, `XCL_LOOK_SKIP` set (default settings only), its tests and the suite, AMD, a card under its budget. AI use: Claude Code (Claude Fable 5.2) ran this on the owner's machine and wrote the report.
nnonno91 commented 2026-11-26 16:06:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-26T15:40:21Z.


RTX 5090 retail smoke with XCL_LOOK_SKIP=1 on both revisions. This isolates #2768 with the opt-in enabled. I ran clean nvidia-dev af2cecc40886a8682ecf3267f5328c6dc4b66ad7 and clean PR head 936bb90e17e702b20ab1c465372317875d30d0b6 on Windows 11 26200, RTX 5090 32 GB (617.42), Ryzen 7 9800X3D, and 32 GB RAM.

Cumulative ExecuteCommandLists Base checks skipped PR checks skipped
1,024 254 231
3,072 758 726
4,096 948 747
5,120 1,152 (22.5%) 784 (15.3%)

In the last matched block (submits 4,097–5,120), the average time in the look rose from 0.78 to 1.04 ms/submit, and total submit time from 2.49 to 3.55 ms/submit. That block ended at 52.3 s on base and 54.6 s on the PR, during loading. The counters show fewer skips in this pair. Timing is descriptive because streaming work varies within a single pair.

One 85 s release run per revision, base first, workload 9cc6a39e, matching copies of the offline profile and seeded XCL shader and pipeline caches. Base showed 1,459 frames and the PR 1,428. Both last presented in the 64 s activity sample, stalled before gameplay, and exited 0x0 with no crash or device removal. Peak process commit was 36,493 MB on base and 37,034 MB on the PR.

Ran scripts/smoke.ps1 -Game <workload> -Xcl <release exe> -Seconds 85 with XCL_ADAPTER=RTX 5090, XCL_NETWORK=0, XCL_ACTIVITY=1, XCL_PREPARE=0, XCL_DIRECT_DXIL=1, XCL_HEAP_WINDOWS=1, XCL_UMA_SHADOW=1, XCL_COHERENT_HEAPS=sparse:16, XCL_LOOK_SKIP=1, XCL_LOOK_STATS=2, XCL_GFX_PSO_WAIT_MS=150, and XCL_PRESS_AT=16:A,23:A,30:A.

AI use — Codex built the exact PR head, ran both builds, and checked the counters in the saved logs.

<!-- greyfinch-sync:ivall/xcl:comment:7196591758 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768#issuecomment-7196591758). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-26T15:40:21Z. --- **RTX 5090 retail smoke with `XCL_LOOK_SKIP=1` on both revisions.** This isolates #2768 with the opt-in enabled. I ran clean `nvidia-dev` `af2cecc40886a8682ecf3267f5328c6dc4b66ad7` and clean PR head `936bb90e17e702b20ab1c465372317875d30d0b6` on Windows 11 26200, RTX 5090 32 GB (617.42), Ryzen 7 9800X3D, and 32 GB RAM. | Cumulative `ExecuteCommandLists` | Base checks skipped | PR checks skipped | | ---: | ---: | ---: | | 1,024 | 254 | 231 | | 3,072 | 758 | 726 | | 4,096 | 948 | 747 | | 5,120 | 1,152 (22.5%) | 784 (15.3%) | In the last matched block (submits 4,097–5,120), the average time in the look rose from 0.78 to 1.04 ms/submit, and total submit time from 2.49 to 3.55 ms/submit. That block ended at 52.3 s on base and 54.6 s on the PR, during loading. The counters show fewer skips in this pair. Timing is descriptive because streaming work varies within a single pair. One 85 s release run per revision, base first, workload `9cc6a39e`, matching copies of the offline profile and seeded XCL shader and pipeline caches. Base showed 1,459 frames and the PR 1,428. Both last presented in the 64 s activity sample, stalled before gameplay, and exited `0x0` with no crash or device removal. Peak process commit was 36,493 MB on base and 37,034 MB on the PR. Ran `scripts/smoke.ps1 -Game <workload> -Xcl <release exe> -Seconds 85` with `XCL_ADAPTER=RTX 5090`, `XCL_NETWORK=0`, `XCL_ACTIVITY=1`, `XCL_PREPARE=0`, `XCL_DIRECT_DXIL=1`, `XCL_HEAP_WINDOWS=1`, `XCL_UMA_SHADOW=1`, `XCL_COHERENT_HEAPS=sparse:16`, `XCL_LOOK_SKIP=1`, `XCL_LOOK_STATS=2`, `XCL_GFX_PSO_WAIT_MS=150`, and `XCL_PRESS_AT=16:A,23:A,30:A`. AI use — Codex built the exact PR head, ran both builds, and checked the counters in the saved logs.
Decodere commented 2026-11-26 18:02:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T18:02:59Z.


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).
<!-- greyfinch-sync:ivall/xcl:comment:7199994245 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768#issuecomment-7199994245). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T18:02:59Z. --- Rebased cleanly onto `origin/nvidia-dev` [`eae01502`](https://github.com/xcl-dev/xcl/commit/eae015021c639866ab061cdff2e9daf8ba9daac5) in [`71b7629c`](https://github.com/xcl-dev/xcl/pull/2768/commits/71b7629cdf0c33f05cdfbaa29fea1edbb78139dc) (`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 commented 2026-11-26 18:33:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T18:33:43Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7200601527 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768#issuecomment-7200601527). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-26T18:33:43Z. --- Independent Windows check of [#2768 head `71b7629c`](https://github.com/xcl-dev/xcl/commit/71b7629cdf0c33f05cdfbaa29fea1edbb78139dc) against its exact [`nvidia-dev` base `eae01502`](https://github.com/xcl-dev/xcl/commit/eae015021c639866ab061cdff2e9daf8ba9daac5). 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](https://github.com/xcl-dev/xcl/actions/runs/45872723982/job/140091985440) 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](https://github.com/xcl-dev/xcl/pull/2749#issuecomment-7200362890) **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 commented 2026-11-26 18:45:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MatyEjsr on 2026-11-26T18:45:37Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7200820171 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768#issuecomment-7200820171). Originally posted by [MatyEjsr](https://github.com/MatyEjsr) on 2026-11-26T18:45:37Z. --- 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.
throny commented 2026-11-28 00:06:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T00:06:15Z.


merge-check claim
head: 71b7629cdf

<!-- greyfinch-sync:ivall/xcl:comment:7230649816 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768#issuecomment-7230649816). Originally posted by [throny](https://github.com/throny) on 2026-11-28T00:06:15Z. --- merge-check claim head: 71b7629cdf0c33f05cdfbaa29fea1edbb78139dc
throny commented 2026-11-28 00:30:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T00:30:24Z.


merge-check
base: d1be8103 (nvidia-dev)
head: 71b7629cdf
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1831 passed, 8 failed, 48 ignored (27 SKIPPED lines). The 8 failures are the base's own on this GPU, the same six names with and without the PR (#2771 and #2788 fix three of them). Base alone: 1824 passed, 8 failed, 48 ignored.
review: no correctness bug found. It is two changes in one PR: the per-frame anchor for XCL_LOOK_SKIP, and the lifecycle of the CLOSED table, which adds note_list_closed calls at list Close in three places. Those calls run on the default path, but CLOSED only changes behaviour under XCL_LOOK_SKIP (plus an info counter). No deadlock: console_list::close drops its guard before the list's Close. The removed LOOK_BEGAN has all its users updated.
performance: on every title list Close: two TLS reads, one lock on the wrapper table and one on CLOSED with a map insert; on Reset one lock. Small; not measured.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite unless said).

<!-- greyfinch-sync:ivall/xcl:comment:7230966696 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2768#issuecomment-7230966696). Originally posted by [throny](https://github.com/throny) on 2026-11-28T00:30:24Z. --- merge-check base: d1be8103 (nvidia-dev) head: 71b7629cdf0c33f05cdfbaa29fea1edbb78139dc merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1831 passed, 8 failed, 48 ignored (27 SKIPPED lines). The 8 failures are the base's own on this GPU, the same six names with and without the PR (#2771 and #2788 fix three of them). Base alone: 1824 passed, 8 failed, 48 ignored. review: no correctness bug found. It is two changes in one PR: the per-frame anchor for XCL_LOOK_SKIP, and the lifecycle of the CLOSED table, which adds note_list_closed calls at list Close in three places. Those calls run on the default path, but CLOSED only changes behaviour under XCL_LOOK_SKIP (plus an info counter). No deadlock: console_list::close drops its guard before the list's Close. The removed LOOK_BEGAN has all its users updated. performance: on every title list Close: two TLS reads, one lock on the wrapper table and one on CLOSED with a map insert; on Reset one lock. Small; not measured. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite unless said).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2758
No description provided.