Tests: cover D3D12.X frame clock events, handles, and statistics #2357

Merged
amazedturnip merged 1 commit from upstream-pr/2367 into main 2026-12-02 17:38:32 +00:00
amazedturnip commented 2026-11-25 16:48:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by amazedturnip on 2026-11-25T16:48:58Z.


Add integration tests in crates/xcl/tests/frame_clock.rs covering xcl::hle::d3d12x::frame public contracts not exercised by the inline unit tests: co-scheduled type-0/type-2 events at offset 0, WaitFrameEventX flags (WAIT_ALL, TOKEN_ON_TIMEOUT), ancillary signaled-index reporting (-2, 1, -1), token_in origin refresh, error paths, and activity() counter deltas.

What is in it

  • crates/xcl/tests/frame_clock.rs: add integration tests covering co-scheduled type-0/type-2 events at offset 0, WaitFrameEventX flags (WAIT_ALL, TOKEN_ON_TIMEOUT), ancillary handle signaled-index reporting (-2, 1, -1), token_in origin refresh, ScheduleFrameEventX/WaitFrameEventX/GetFrameStatisticsX error contracts, and activity() counter deltas.

Tested

  • Hardware / OS / Rust: AMD Ryzen 7 9800X3D 8-Core Processor, Windows 11 Pro 10.0.26100 (Build 26100), rustc 1.94.1 (e408947bf 2026-03-25), stable-x86_64-pc-windows-msvc, debug build
  • AMD (AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64), XCL_ADAPTER=radeon): cargo test --workspace -- --test-threads=4 — 1308 passed, 1 failed, 27 ignored (SKIPPED GPU tests: 1 (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), 1 (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), 1 (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 1 (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 1 (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), 1 (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), 1 (cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)); pre-existing upstream/main failures excluded: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1)
  • Verification / negative control: new test suite — verified 3x deterministic

Not tested

  • retail Xbox Series X|S title (not available on this host)
  • NVIDIA wave32 GPU (not run in this pass; verified on AMD Radeon native wave64)

AI use

  • Antigravity CLI (Gemini 4 Hydrogen (Medium)) assisted with diagnosis, implementation, tests, review, and description; all tests executed locally on AMD Radeon (native wave64).
<!-- greyfinch-sync:ivall/xcl:issue:5495432740 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367). Originally posted by [amazedturnip](https://github.com/amazedturnip) on 2026-11-25T16:48:58Z. --- Add integration tests in `crates/xcl/tests/frame_clock.rs` covering `xcl::hle::d3d12x::frame` public contracts not exercised by the inline unit tests: co-scheduled type-0/type-2 events at offset 0, `WaitFrameEventX` flags (`WAIT_ALL`, `TOKEN_ON_TIMEOUT`), ancillary signaled-index reporting (`-2`, `1`, `-1`), `token_in` origin refresh, error paths, and `activity()` counter deltas. **What is in it** - `crates/xcl/tests/frame_clock.rs`: add integration tests covering co-scheduled type-0/type-2 events at offset 0, `WaitFrameEventX` flags (`WAIT_ALL`, `TOKEN_ON_TIMEOUT`), ancillary handle signaled-index reporting (`-2`, `1`, `-1`), `token_in` origin refresh, `ScheduleFrameEventX`/`WaitFrameEventX`/`GetFrameStatisticsX` error contracts, and `activity()` counter deltas. **Tested** - Hardware / OS / Rust: AMD Ryzen 7 9800X3D 8-Core Processor, Windows 11 Pro 10.0.26100 (Build 26100), rustc 1.94.1 (e408947bf 2026-03-25), stable-x86_64-pc-windows-msvc, debug build - AMD (`AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64)`, `XCL_ADAPTER=radeon`): `cargo test --workspace -- --test-threads=4` — 1308 passed, 1 failed, 27 ignored (SKIPPED GPU tests: 1 (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), 1 (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), 1 (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 1 (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), 1 (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), 1 (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), 1 (cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)); pre-existing upstream/main failures excluded: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1) - Verification / negative control: new test suite — verified 3x deterministic **Not tested** - retail Xbox Series X|S title (not available on this host) - NVIDIA wave32 GPU (not run in this pass; verified on AMD Radeon native wave64) **AI use** - Antigravity CLI (Gemini 4 Hydrogen (Medium)) assisted with diagnosis, implementation, tests, review, and description; all tests executed locally on AMD Radeon (native wave64).
fromthemoonx commented 2026-11-25 18:04:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-25T17:16:49Z.


Rerun on the new head 0a28873 (the same commit rebased onto main b49be18): still passes on NVIDIA.

result
cargo test --workspace --no-fail-fast -- --test-threads=4 at 0a28873 (its base is current main, so also the merged tree) 1439 passed, 0 failed, 47 ignored; 25 SKIPPED lines
ancillary_signaled_indices_and_wait_all alone, 40 runs; the whole frame_clock file (4 tests), --test-threads=8, 30 runs 40 of 40; 30 of 30

Same RTX 3060 (driver 610.88), Rust 1.100.0, debug. AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this rerun.


Rerun on f79a015: fixed on NVIDIA; ancillary_signaled_indices_and_wait_all passed 40 of 40 alone and the file 30 of 30.

result
cargo test --workspace --no-fail-fast -- --test-threads=4, f79a015 merged onto main 2898511 (clean) 1367 passed, 0 failed, 46 ignored; 25 SKIPPED lines
same at the head f79a015 1341 passed, 1 failed, 46 ignored: a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier, from the base bd2ac50; passes on current main, not this PR
cargo test -p xcl --test frame_clock -- --test-threads=4, 30 runs 4 passed, 30 of 30
ancillary_signaled_indices_and_wait_all alone, 40 runs 40 of 40

First run, on 187b863: On NVIDIA / this machine, ancillary_signaled_indices_and_wait_all fails every time (30 of 30): right after drain_origin() the frame event is still pending, so the first ancillary wait returns the frame event (-2) instead of index 1. The other three new tests pass 30 of 30.

Tested: 187b863 (merges cleanly onto main 68a284a). RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug.

result
cargo test -p xcl --test frame_clock -- --test-threads=4, 30 runs ancillary_signaled_indices_and_wait_all FAILED 30 of 30; co_scheduled_origin_and_type2_at_offset_zero_both_fire, schedule_wait_and_statistics_error_contracts_and_activity_counters, token_on_timeout_and_token_in_origin_refresh ok 30 of 30
the failing test alone, 10 runs FAILED 10 of 10, frame_clock.rs:195: assert_eq!(sig, 1), left -2, right 1
cargo test --workspace --no-fail-fast -- --test-threads=4 1291 passed, 2 failed, 46 ignored: this test, and a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier, which fails on main 68a284a too (3 of 3, reported on #2074, not this PR)

Why: with a scratch probe inserted between drain_origin() and the // Ancillary handle at index 1 is already signaled wait (wait_frame_event_x(…, 0, 0 ms, block, 0, &mut tk)), the probe returned hr 0x0, sig -2, tok 0x1, and that zero-timeout call took 19.8 / 23.7 / 23.8 ms in 3 runs. The test's own wait then returned sig 1 after about 5 µs, and the test passed 3 of 3. So when drain_origin() returns, the next frame event is already due (or becomes signaled inside the next wait). wait_frame_event_x puts the frame event at index 0 of WaitForMultipleObjects, so it wins over the already-signaled ancillary handle. On a machine where no tick lands in that window the test passes, as on your Radeon. Here it never does.

A way to make it independent of timing: give this test a frame interval long enough that no tick can fall between drain_origin() and the wait (for example set_frame_interval_x with a period of several seconds, if it accepts one). The wait needs type 0 to be scheduled (E_INVALIDARG otherwise), so leaving the frame event unscheduled is not an option.

Not tested: a release build, AMD, a title.

AI use: Claude Code (Claude Opus 5.5) ran the tests and the scratch probe, and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7169270210 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367#issuecomment-7169270210). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-25T17:16:49Z. --- **Rerun on the new head `0a28873` (the same commit rebased onto `main` `b49be18`): still passes on NVIDIA.** | | result | |---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4` at `0a28873` (its base is current `main`, so also the merged tree) | 1439 passed, 0 failed, 47 ignored; 25 `SKIPPED` lines | | `ancillary_signaled_indices_and_wait_all` alone, 40 runs; the whole `frame_clock` file (4 tests), `--test-threads=8`, 30 runs | 40 of 40; 30 of 30 | Same RTX 3060 (driver 610.88), Rust 1.100.0, debug. AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this rerun. --- *Rerun on `f79a015`:* fixed on NVIDIA; `ancillary_signaled_indices_and_wait_all` passed 40 of 40 alone and the file 30 of 30. | | result | |---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4`, `f79a015` merged onto `main` `2898511` (clean) | 1367 passed, 0 failed, 46 ignored; 25 `SKIPPED` lines | | same at the head `f79a015` | 1341 passed, 1 failed, 46 ignored: `a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier`, from the base `bd2ac50`; passes on current `main`, not this PR | | `cargo test -p xcl --test frame_clock -- --test-threads=4`, 30 runs | 4 passed, 30 of 30 | | `ancillary_signaled_indices_and_wait_all` alone, 40 runs | 40 of 40 | --- *First run, on `187b863`:* On NVIDIA / this machine, `ancillary_signaled_indices_and_wait_all` fails every time (30 of 30): right after `drain_origin()` the frame event is still pending, so the first ancillary wait returns the frame event (`-2`) instead of index `1`. The other three new tests pass 30 of 30. **Tested:** `187b863` (merges cleanly onto `main` `68a284a`). RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug. | | result | |---|---| | `cargo test -p xcl --test frame_clock -- --test-threads=4`, 30 runs | `ancillary_signaled_indices_and_wait_all` FAILED 30 of 30; `co_scheduled_origin_and_type2_at_offset_zero_both_fire`, `schedule_wait_and_statistics_error_contracts_and_activity_counters`, `token_on_timeout_and_token_in_origin_refresh` ok 30 of 30 | | the failing test alone, 10 runs | FAILED 10 of 10, `frame_clock.rs:195`: `assert_eq!(sig, 1)`, left `-2`, right `1` | | `cargo test --workspace --no-fail-fast -- --test-threads=4` | 1291 passed, 2 failed, 46 ignored: this test, and `a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier`, which fails on `main` `68a284a` too (3 of 3, reported on #2074, not this PR) | **Why:** with a scratch probe inserted between `drain_origin()` and the `// Ancillary handle at index 1 is already signaled` wait (`wait_frame_event_x(…, 0, 0 ms, block, 0, &mut tk)`), the probe returned `hr 0x0, sig -2, tok 0x1`, and that zero-timeout call took 19.8 / 23.7 / 23.8 ms in 3 runs. The test's own wait then returned `sig 1` after about 5 µs, and the test passed 3 of 3. So when `drain_origin()` returns, the next frame event is already due (or becomes signaled inside the next wait). `wait_frame_event_x` puts the frame event at index 0 of `WaitForMultipleObjects`, so it wins over the already-signaled ancillary handle. On a machine where no tick lands in that window the test passes, as on your Radeon. Here it never does. A way to make it independent of timing: give this test a frame interval long enough that no tick can fall between `drain_origin()` and the wait (for example `set_frame_interval_x` with a period of several seconds, if it accepts one). The wait needs type 0 to be scheduled (`E_INVALIDARG` otherwise), so leaving the frame event unscheduled is not an option. **Not tested:** a release build, AMD, a title. **AI use:** Claude Code (Claude Opus 5.5) ran the tests and the scratch probe, and wrote this report.
amazedturnip commented 2026-11-25 19:09:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by amazedturnip on 2026-11-25T18:27:59Z.


Acknowledged — the flake was real (reproduced on Radeon, ~1 in 20 runs, and the reviewer confirmed 30/30 on NVIDIA). Fixed by giving ancillary_signaled_indices_and_wait_all the longest accepted interval (66 667 µs) instead of 16 667 µs, so no tick can land between drain_origin() and the first ancillary wait; the frame event can no longer win the WaitForMultipleObjects over the already-signaled ancillary handle at index 1. Verified 40/40 clean runs of the full frame_clock suite plus 30/30 on the failing test.

<!-- greyfinch-sync:ivall/xcl:comment:7170945088 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367#issuecomment-7170945088). Originally posted by [amazedturnip](https://github.com/amazedturnip) on 2026-11-25T18:27:59Z. --- Acknowledged — the flake was real (reproduced on Radeon, ~1 in 20 runs, and the reviewer confirmed 30/30 on NVIDIA). Fixed by giving `ancillary_signaled_indices_and_wait_all` the longest accepted interval (66 667 µs) instead of 16 667 µs, so no tick can land between `drain_origin()` and the first ancillary wait; the frame event can no longer win the WaitForMultipleObjects over the already-signaled ancillary handle at index 1. Verified 40/40 clean runs of the full frame_clock suite plus 30/30 on the failing test.
raylitebull commented 2026-11-25 19:09:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T18:28:46Z.


Diff review on 187b863 (crates/xcl/tests/frame_clock.rs): clean integration test coverage, and note @fromthemoonx's 30/30 NVIDIA reproduction on ancillary_signaled_indices_and_wait_all (sig == -2 due to immediate tick race after drain_origin()). Making the test frame interval timing-independent will unblock CI/verification.

<!-- greyfinch-sync:ivall/xcl:comment:7170963206 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367#issuecomment-7170963206). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T18:28:46Z. --- Diff review on `187b863` (`crates/xcl/tests/frame_clock.rs`): clean integration test coverage, and note `@fromthemoonx`'s 30/30 NVIDIA reproduction on `ancillary_signaled_indices_and_wait_all` (`sig == -2` due to immediate tick race after `drain_origin()`). Making the test frame interval timing-independent will unblock CI/verification.
DavidM1911 commented 2026-11-25 19:09:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T18:56:16Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7171604798 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367#issuecomment-7171604798). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T18:56:16Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun. Thanks!
SlopTart commented 2026-11-25 19:09:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T19:06:07Z.


Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).
suite: 148/3 = the three known baseline failures on this lane (fuzz_validate_and_gpu_2 seed 1003, gpu_nonfused_mad_and_mac_prevent_fma_contraction, gpu_depth_buffer_created_for_unordered_access_is_placed). Targeted run of the new table-limit/UAV-clear/schedule tests: 2 passed.

Not tested: retail titles (no title data on this lane, counts only).

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

<!-- greyfinch-sync:ivall/xcl:comment:7171820428 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367#issuecomment-7171820428). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-25T19:06:07Z. --- **Tested**: current PR head merged onto current `origin/main` (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). suite: 148/3 = the three known baseline failures on this lane (`fuzz_validate_and_gpu_2` seed 1003, `gpu_nonfused_mad_and_mac_prevent_fma_contraction`, `gpu_depth_buffer_created_for_unordered_access_is_placed`). Targeted run of the new table-limit/UAV-clear/schedule tests: 2 passed. **Not tested**: retail titles (no title data on this lane, counts only). **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
Decodere commented 2026-11-27 04:15:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T04:15:30Z.


Independent desktop NVIDIA verification of PR #2367 at head 0a28873460ad39cdd4bac45683e7f4aef5fff55a (1 commit; exact parent & merge-base: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, pre-#2555 ancestor of main).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (0a288734)

Command Result
cargo test --release -p xcl --test frame_clock -- --nocapture (3 consecutive runs) 4 passed; 0 failed; 0 ignored; 0 filtered out × 3 (0.18s × 3, 0 skipped: ancillary_signaled_indices_and_wait_all, co_scheduled_origin_and_type2_at_offset_zero_both_fire, schedule_wait_and_statistics_error_contracts_and_activity_counters, token_on_timeout_and_token_in_origin_refresh)
cargo build --release -p xcl Clean build (0.08s incremental after --test build, exit 0, 0 new warnings)

Paired quiet 60 s retail smoke (title: 29640639)

Exact parent & merge-base (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):

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

PR #2367 (0a28873460ad39cdd4bac45683e7f4aef5fff55a):

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

Runtime log observations (xcl.log)

  • 9223 log lines, 0 [ERROR] / device-removal / panic lines (dxil_cache: 460 hits, 0 misses, 0 compilation failures; 228 background pipelines, 0 failures).
  • Final draw/memory telemetry in log: 19549 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 13973 MB committed by the process; video memory 6115 MB local, 4651 MB non-local.

Limits of coverage

  • This PR is test-only (crates/xcl/tests/frame_clock.rs, +320/-0, 0 production-code changes); all 4 new integration tests passed deterministically (3/3, 0.18s each, 0 skips) in --release on Windows 11.
  • The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR).

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7209651353 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367#issuecomment-7209651353). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T04:15:30Z. --- Independent desktop NVIDIA verification of **PR #2367** at head `0a28873460ad39cdd4bac45683e7f4aef5fff55a` (`1` commit; exact parent & merge-base: `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, pre-`#2555` ancestor of `main`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`0a288734`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --test frame_clock -- --nocapture` (3 consecutive runs) | `4 passed; 0 failed; 0 ignored; 0 filtered out` × 3 (`0.18s` × 3, `0` skipped: `ancillary_signaled_indices_and_wait_all`, `co_scheduled_origin_and_type2_at_offset_zero_both_fire`, `schedule_wait_and_statistics_error_contracts_and_activity_counters`, `token_on_timeout_and_token_in_origin_refresh`) | | `cargo build --release -p xcl` | Clean build (`0.08s` incremental after `--test` build, exit `0`, `0` new warnings) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Exact parent & merge-base (`b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, cached baseline on the same machine): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1518 (PresentX 1518) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14018 MB ``` PR #2367 (`0a28873460ad39cdd4bac45683e7f4aef5fff55a`): ``` xcl-smoke v1 commit: 0a28873460ad39cdd4bac45683e7f4aef5fff55a gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1604 (PresentX 1604) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13974 MB ``` ### Runtime log observations (`xcl.log`) - `9223` log lines, `0` `[ERROR]` / device-removal / panic lines (`dxil_cache`: `460` hits, `0` misses, `0` compilation failures; `228` background pipelines, `0` failures). - Final draw/memory telemetry in log: `19549 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `13973 MB committed by the process; video memory 6115 MB local, 4651 MB non-local`. ### Limits of coverage - This PR is test-only (`crates/xcl/tests/frame_clock.rs`, `+320/-0`, `0` production-code changes); all 4 new integration tests passed deterministically (`3/3`, `0.18s` each, `0` skips) in `--release` on Windows 11. - The 60 s retail smoke confirms non-regression of the unchanged runtime binary at this commit (single-run frame/commit delta vs. cached parent reflects normal startup variance, not this PR). *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
throny commented 2026-11-28 13:55:24 +00:00 (Migrated from github.com)

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


merge-check claim
head: 0a28873460

<!-- greyfinch-sync:ivall/xcl:comment:7240281776 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367#issuecomment-7240281776). Originally posted by [throny](https://github.com/throny) on 2026-11-28T13:55:24Z. --- merge-check claim head: 0a28873460ad39cdd4bac45683e7f4aef5fff55a
throny commented 2026-11-28 14:12:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T14:12:20Z.


merge-check
base: e13d6250
head: 0a28873460
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2134 passed, 10 failed, 48 ignored (26 SKIPPED lines). The 10 failures are the ones main itself has at e13d6250 on this GPU (#3093: the nine since #2959 and, since today, gpu::dxil::msaa_tests::direct_msaa_loads_precede_get_dimensions), the same set with and without this PR; base alone: 2130 passed, 10 failed, 48 ignored. Its four new tests ran and passed here.
review: none blocking; test-only, one new file. Two timing assertions can still fail on a loaded machine: both use a 16,667 us interval and assume no clock tick lands between two calls (the zero-millisecond wait right after the drain in token_on_timeout_and_token_in_origin_refresh, and the zero-millisecond wait whose result the activity deltas in the schedule test depend on); the longer interval already used for the ancillary test would widen both windows. The tests also depend on the environment: with XCL_FRAME_INTERVAL_US=0 the wait takes the uncapped path and the timeout assertions fail.
performance: none.
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).

<!-- greyfinch-sync:ivall/xcl:comment:7240496005 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367#issuecomment-7240496005). Originally posted by [throny](https://github.com/throny) on 2026-11-28T14:12:20Z. --- merge-check base: e13d6250 head: 0a28873460ad39cdd4bac45683e7f4aef5fff55a merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2134 passed, 10 failed, 48 ignored (26 SKIPPED lines). The 10 failures are the ones main itself has at e13d6250 on this GPU (#3093: the nine since #2959 and, since today, gpu::dxil::msaa_tests::direct_msaa_loads_precede_get_dimensions), the same set with and without this PR; base alone: 2130 passed, 10 failed, 48 ignored. Its four new tests ran and passed here. review: none blocking; test-only, one new file. Two timing assertions can still fail on a loaded machine: both use a 16,667 us interval and assume no clock tick lands between two calls (the zero-millisecond wait right after the drain in token_on_timeout_and_token_in_origin_refresh, and the zero-millisecond wait whose result the activity deltas in the schedule test depend on); the longer interval already used for the ancillary test would widen both windows. The tests also depend on the environment: with XCL_FRAME_INTERVAL_US=0 the wait takes the uncapped path and the timeout assertions fail. performance: none. 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).
saintwolf commented 2026-11-30 01:35:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T01:35:15Z.


merge-check claim
head: 0a28873460

<!-- greyfinch-sync:ivall/xcl:comment:7266264508 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367#issuecomment-7266264508). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T01:35:15Z. --- merge-check claim head: 0a28873460ad39cdd4bac45683e7f4aef5fff55a
saintwolf commented 2026-11-30 01:41:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T01:41:08Z.


merge-check
base: 53e85fb124
head: 0a28873460
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2796 passed, 1 failed, 49 ignored; SKIPPED: 30 (22 no wave64, 3 per-lane #1426 refused, 2 no heap windows, 2 no xgameruntime.dll, 1 cannot disable the driver cache 0x887A002D); failing: hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline (also fails on base 53e85fb1 alone)
review: none (read the full +320/-0 diff in crates/xcl/tests/frame_clock.rs: test-only integration suite serialized with ClockGuard and RAII EventHandle, covering co-scheduled type 0/2 events, TOKEN_ON_TIMEOUT, token_in origin refresh, ancillary signaled indices and WAIT_ALL, error contracts, and activity() deltas; all 4 new tests passed in 0.18s; no duplicates found)
performance: none (test-only PR, no runtime changes)
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)

<!-- greyfinch-sync:ivall/xcl:comment:7266352768 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367#issuecomment-7266352768). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T01:41:08Z. --- merge-check base: 53e85fb124eae624641e9884517e4f3c4a7d8794 head: 0a28873460ad39cdd4bac45683e7f4aef5fff55a merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2796 passed, 1 failed, 49 ignored; SKIPPED: 30 (22 no wave64, 3 per-lane #1426 refused, 2 no heap windows, 2 no xgameruntime.dll, 1 cannot disable the driver cache 0x887A002D); failing: hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline (also fails on base 53e85fb1 alone) review: none (read the full +320/-0 diff in crates/xcl/tests/frame_clock.rs: test-only integration suite serialized with ClockGuard and RAII EventHandle, covering co-scheduled type 0/2 events, TOKEN_ON_TIMEOUT, token_in origin refresh, ancillary signaled indices and WAIT_ALL, error contracts, and activity() deltas; all 4 new tests passed in 0.18s; no duplicates found) performance: none (test-only PR, no runtime changes) verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)
Foniass commented 2026-12-01 07:56:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:56:36Z.


Triage (#1607) – head 0a28873

No open or merged PR adds integration tests for the frame clock's public entry points; frame.rs on main has unit tests for origins/tokens/statistics but not the ancillary-handle, WAIT_ALL, TOKEN_ON_TIMEOUT and error-contract paths covered here.
Two things to watch in crates/xcl/tests/frame_clock.rs: the tests depend on real 16.7 ms / 66.7 ms ticks and short timeouts (30-250 ms), so a loaded CI runner could make them flaky; and co_scheduled_origin_and_type2_at_offset_zero_both_fire accepts sig_check == 0 || -2, which does not pin down which handle woke the wait.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304675444 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2367#issuecomment-7304675444). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:56:36Z. --- **Triage (#1607)** – head 0a28873 No open or merged PR adds integration tests for the frame clock's public entry points; `frame.rs` on main has unit tests for origins/tokens/statistics but not the ancillary-handle, WAIT_ALL, TOKEN_ON_TIMEOUT and error-contract paths covered here. Two things to watch in `crates/xcl/tests/frame_clock.rs`: the tests depend on real 16.7 ms / 66.7 ms ticks and short timeouts (30-250 ms), so a loaded CI runner could make them flaky; and `co_scheduled_origin_and_type2_at_offset_zero_both_fire` accepts `sig_check == 0 || -2`, which does not pin down which handle woke the wait. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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!2357
No description provided.