Repository navigation
Conversation
Since efdebc8 the driver blob name carries the pipeline's NodeMask when it is nonzero, so linked-adapter nodes keep their blobs apart. A title creates its compute pipelines with NodeMask 1, while the offline precompile and the startup-preparation workers create them with 0. Both masks name the first node (D3D12 takes 0 as node 0), but the names differed ("-n1"), so in play every precompiled compute blob was absent and the driver compiled each one cold. On title: ea3b5e4d after a full precompile, a load into the world logged "driver blob absent" for programs whose blob the precompile had saved under the name without the node part. 323 compute pipelines were built cold in play, 65 of them of 256 KB or more DXIL (71 such compiles were started). They held the huge-pipeline slots, graphics queued behind them, and presents stopped at 231 s. The cache held 15,376 blobs without a node part and 378 with "-n1", all written by title runs. persisted_node_mask() maps mask 1 to 0 for the blob name (plain, chain and indirect-chain roots) and for the in-memory blob key. Masks 2 and up keep their own names. The desc passed to the driver is unchanged; a GPU test checks that the driver accepts a blob made with NodeMask 0 for a pipeline created with NodeMask 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The 4 failures in |
Prime1997
left a comment
There was a problem hiding this comment.
Approving on a merge-check run on an RTX 3060 Ti 8 GB (driver 32.0.16.1714, i5-10400, Windows 11 Pro 26200, Rust 1.100.0).
- Head
30a39948bc7a8e7dbe93bf6dd59e3fd9b2a08f2bmerged cleanly ontomain7db2f391, and the workspace builds. cargo test --workspace --no-fail-fast -- --test-threads=4on the merge: 2,596 passed, 0 failed, 49 ignored, 29 SKIPPED (21 of them no wave64). Both new tests pass, including the driver check: this card accepts a NodeMask 0 blob for a NodeMask 1 pipeline.- 60 s
scripts/smoke.ps1withXCL_PREPARE=0: 1,460 frames against 1,385 onmain, peak commit 15,280 MB against 15,626 MB, no device removal, no crash. - Whole diff read, no blocking finding. Not tested here: a precompile followed by a play run that counts
driver blob absent. - The red
Build and testrun on this head failed in the four pipeline-library tests that #3221 fixes (builder_deduplicates_names_and_atomically_replaces_outputand the three behind its poisoned lock). The same four fail intermittently on plainmainhere, so it is not this change.
AI use: Claude Code ran the builds, tests and smoke on Prime's PC and wrote this text. Approving is Prime's decision.
I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord
|
Following up on the RTX 3060 Ti explicit CachedPSO result, we tested the named pipeline-library path on a physical RTX 5070 Ti with NVIDIA driver 621.40, using A fresh process loaded the pipeline by name with NodeMask 1 after a writer stored it with NodeMask 0. Named 0→0 and 1→1 also passed. Explicit CachedPSO 0→0, 1→1 and 0→1 succeeded on their first creation calls. The deliberately missing-name control returned All three writers and seven readers passed in fresh processes, with zero failures, skips or timeouts. An independent review verified all 448 output words. This covers one synthetic whole-compute shader on one single-node adapter and driver. The D3D12 information queue was unavailable. No performance timings or retail preparation/play comparison were performed, and this is not a full merge-check. AI assistance: ChatGPT Work/Codex coordinated execution, and a separate Codex reviewer checked the evidence. The session exposed the GPT-6 family but not the exact model variant. |
|
merge-check |
|
Review (head 30a3994, diff read, not a merge-check; it conflicts with main, so not built or run):
Fine: the change and its tests were right for their base, and the before/after measurement is what motivated main's fix. Recommendation: close as superseded by 52f0288. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
Closing as superseded: this change is already on Two independent checks found this: Foniass's close list on #1607 and ours against current AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents. |
Since efdebc8 a compute pipeline's driver blob name carries its NodeMask when it is nonzero (
-n<mask>), so the nodes of a linked adapter keep their blobs apart. A title creates its compute pipelines with NodeMask 1.xcl shaders --precompileand the startup-preparation workers create them with 0. D3D12 reads both masks as the first node, but the names differ, so in play none of the precompiled compute blobs are found and the driver compiles each one cold.On title: ea3b5e4d, after a full precompile, a 600 s run from a save past the prologue logged
driver blob absentfor programs whose blob the precompile had saved under the name without the node part. 323 compute pipelines were built cold in play. 71 of the compiles were of 256 KB or more of DXIL; 65 finished, most of them 0.7-1 MB at 30-131 s each. They held the huge-pipeline slots, graphics queued behind them, and presents stopped at 231 s. Afterwards the cache held 15,376 blobs without a node part and 378 with-n1, all written by title runs.This change maps mask 1 to 0 wherever the blob is named. Masks 2 and up keep their own names. The desc passed to the driver is not changed.
What is in it
crates/xcl/src/hle/d3d12x/real.rs:driver_cache::persisted_node_mask();name_for_root_node_with_ext(plain, chain and indirect-chain names, also used as the compute pipeline-library name) andcompute_blob_key_for(the in-memory blob key) use it;Graphics pipelines need no change. Their recipes record the title's own NodeMask and preparation replays it, so both sides use the same name; in the run above, every graphics and mesh compile in play had
driver blob supplied. Two-pass compute takes its node from the recorded stream in the same way.Tested
cargo test -p xcl --lib -- node_masks_zero_and_one_share_a_blob_name a_node_zero_compute_blob_is_accepted_for_node_mask_one linked_adapter_nodes_have_distinct_compatible_names direct_and_indirect_chain_roots --test-threads=1: 4 passed, 0 failed, 0 skipped.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4(DXC 1.9.2609 viaXCL_DXC_DIR), at 30a3994: 2595 passed, 1 failed, 49 ignored.gpu_compute_e2e::a_preparation_worker_also_builds_a_split_programs_whole_form. It fails the same way on main 765b2c5 with the same command, where the counts are 2590 passed, 1 failed, 49 ignored; that run skipped three uma_driver tests, and this change adds two tests.-n1blobs moved out. The exe was built from 309c44f7, which has the same tree as the head 30a3994; the exe built at 30a3994 is byte-identical. Before → after:driver blob absent: 71 → 0;-n1blobs;Regression run
Main (daae033, whose tree is main 765b2c5; main has since gained #3213, a test-only change):
This PR (30a3994):
Both runs use the same 150 s recipe on the same warm cache, and the blocks are pasted from the runner. Their timelines match. Main: startup preparation 40 s, first button press at 125.0 s, window end 191.5 s. This PR: 35 s, 125.0 s, 189.7 s. In the 60 s after the press, main presented 1300 frames and this PR 1332. Main started 10 compute driver compiles of 256 KB or more with
driver blob absent, and its presents stopped about 6 s before the end of the window (last eight 2 s windows: 17 34 34 45 7 0 0 0). This PR had 0 compute compiles withdriver blob absent. The 150 s window ends close to where main stops, so the 600 s pair under Tested is the proof of the fix.Not tested
XCL_PSO_MANIFEST) were read, not run: they are graphics-only and hash the title's own serialized recipe, so this change does not touch them.-n1blobs. They are no longer looked up, and they are not deleted.AI use
🤖 Generated with Claude Code