Repository navigation
Tests: cover D3D12.X frame clock events, handles, and statistics - #2367
amazedturnip wants to merge 1 commit into
Conversation
|
Rerun on the new head
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
First run, on Tested:
Why: with a scratch probe inserted between A way to make it independent of timing: give this test a frame interval long enough that no tick can fall between 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. |
187b863 to
f79a015
Compare
|
Acknowledged — the flake was real (reproduced on Radeon, ~1 in 20 runs, and the reviewer confirmed 30/30 on NVIDIA). Fixed by giving |
|
Diff review on |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Tested: current PR head merged onto current 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. |
Add integration tests in crates/xcl/tests/frame_clock.rs pinning co-scheduled type-0/type-2 events, WaitFrameEventX flags (WAIT_ALL, TOKEN_ON_TIMEOUT), ancillary signaled indices (-2, 1, -1), token_in origin refresh, error contracts, and activity() counters.
f79a015 to
0a28873
Compare
|
Independent desktop NVIDIA verification of PR #2367 at head Environment
Targeted release tests & build (
|
| 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)
9223log lines,0[ERROR]/ device-removal / panic lines (dxil_cache:460hits,0misses,0compilation failures;228background pipelines,0failures).- Final draw/memory telemetry in log:
19549 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample13973 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,0production-code changes); all 4 new integration tests passed deterministically (3/3,0.18seach,0skips) in--releaseon 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).
Add integration tests in
crates/xcl/tests/frame_clock.rscoveringxcl::hle::d3d12x::framepublic contracts not exercised by the inline unit tests: co-scheduled type-0/type-2 events at offset 0,WaitFrameEventXflags (WAIT_ALL,TOKEN_ON_TIMEOUT), ancillary signaled-index reporting (-2,1,-1),token_inorigin refresh, error paths, andactivity()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,WaitFrameEventXflags (WAIT_ALL,TOKEN_ON_TIMEOUT), ancillary handle signaled-index reporting (-2,1,-1),token_inorigin refresh,ScheduleFrameEventX/WaitFrameEventX/GetFrameStatisticsXerror contracts, andactivity()counter deltas.Tested
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 gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), 1 (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), 1 (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), 1 (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), 1 (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), 1 (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #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)Not tested
AI use