D3D12.X: track exact command-list write intervals #3033
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3033"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T15:14:19Z.
First of three stacked PRs for item 3 of #2787 (W1–W5 from #2778, by bmjask): a
Wait32/64BitValueXthat depends on a deferred CPU write recorded earlier in the same command list. This part changes no
behaviour. The capped, approximate per-list write ranges become exact intervals in a tree, so later
parts can tell which producer wrote a range and gaps between writes are kept. Part of #2787, #1833.
What is in it
8bdfcd84D3D12.X: track exact command-list write intervals (hle/d3d12x/list_x.rs). A cleancherry-pick -xof62de4d55, authored by bmjask.Tested
26300.9974, Rust 1.100.0, debug for tests, release for smoke.
cargo test --workspace -- --test-threads=4on8bdfcd84: 1453 passed, 0 failed, 47 ignored.gpu::recomp::lower*/lower_dxilGPU agreement tests,dispatch_chain_native_wave64_builds_whole,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,heap_window_out_of_memory_falls_back_to_the_switch_form.Regression run
Both runs started from copies of the same warm shader cache, with a scripted A press at 25 s (
XCL_PRESS_AT=25:A).Not tested
intervals for wait placement.
AI use
did the cherry-pick, ran the tests and smoke runs, and drafted this description.
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-28T09:00:50Z.
Ran the command-list write-interval tests at
8bdfcd84on an NVIDIA Blackwell desktop part:Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build.
All 47 tests in
list_xpass at this head. The PR changes no behavior; it replaces capped approximate write ranges with exact intervals for later stacked work. These are CPU-side tests. The PR has no comments yet, so this is the first datapoint in the thread and the first from an RTX 5070 Ti.Not tested: the later stacked parts that consume the intervals, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-28T09:24:06Z.
Tested
Exact
8bdfcd840d0e9f0ed09c5928a6a584848a38b5b9on Windows 11 x64 build 26200.9974, Ryzen 7 3800X, and Rust 1.100.1 MSVC. I reran a pinned standalone test binary after verifying that itsRecordedWritesimplementation and stock bridging test matched their source ranges byte-for-byte. The original build wrapper returned 1 and did not retain the compiler exit. Both native test exits below were captured independently.interval.exe --exact bitmap_oracle::mixed_writes_match_byte_bitmap --nocapture --test-threads=1matched a 4,096-byte bitmap oracle across 3,072 inserts, 12,313 overlap queries, six clears, and 3,079 canonical span comparisons. The counters were verified directly from fresh stdout.interval.exe --exact stock::recorded_writes_preserve_gaps_when_bridging_neighbors --nocapture --test-threads=1passed as the stock control.2 passed, 0 failed, 0 ignored, 0 runtime skips. Both processes exited 0, with one test filtered out per invocation.
Not tested
Full Cargo build or suite, command-list integration, stacked wait ordering, GPU or device behavior, and retail smoke.
AI use
T3 Code through the Codex harness (
gpt-6.2-sol) verified source and executable provenance, reran the tests, and wrote this report.Pull request closed