Repository navigation
Shaders: replay compatible two-pass mesh pipelines at startup - #2828
CryingLaughing wants to merge 1 commit into
Conversation
Record supported console mesh streams with their fixed-function state and source shader keys. Replay through the existing graphics worker and two-pass translator to populate the runtime driver caches. Keep legacy graphics history compatible and leave unsupported streams to the existing runtime path.
|
Regression run of Setup: RTX 3060 12 GB (NVIDIA 581.80), i9-14900KF, Windows 11 26200, release builds of this PR's base base: this PR: 116 % of the base's frames, 80 % of its peak commit. One run each. Peak commit on this title has varied between 17.4 and 25 GB over the day on this machine, so one run cannot say whether the lower commit and the higher frame count come from this PR. Update, second run of each (this PR first, then the base): this PR 1444 frames, peak commit 30,739 MB; base 1467 frames, 24,513 MB. That is 98 % of the frames and 125.4 % of the peak commit, just over the limit. This PR's two runs differ by 11.6 GB of peak commit (19,118 and 30,739 MB) against 23.9 and 24.5 GB for the base, so I cannot tell from these runs whether this PR lowers commit, raises it, or makes it vary more. The replay at startup may change how much the first 60 s build, which would explain a wider spread; more runs (or a peak-commit line from the replay itself) would settle it. Update, third run of each (the base first this time): base 1416 frames, peak commit 24,064 MB; this PR 1494 frames, 31,550 MB, 131 % of the base.
The base stays within 0.7 GB across its three runs; this PR is about 7 GB higher in two of three. That looks like a real increase, perhaps from what the replay keeps alive at startup, with run 1 a case where it did not run or did less. Frames are 98–116 % of the base. Not tested: the suite on this head; whether the title reaches the code this PR changes in its first 60 s; AMD. AI use: Claude Code (Claude Opus 5.5) ran these runs on this machine and wrote this report. |
|
Two of the reported retail pairs cross 125% peak commit. Their I isolated one recorded two-pass mesh stream on RTX 4080 driver 621.01, Core i5-13600K and Windows 11 25H2 build 26200.9974, Rust 1.100.0 x64 MSVC, DXC 1.8.2502.11, debug. Across three alternating Could you repeat the 60-second retail smoke on the exact NVIDIA parent |
|
Independent Windows / NVIDIA verification of PR #2828 at exact head Tested
Regression run
Not tested
AI use
|
|
Linux (Wine) dual-lane run at head Same two hosts and suite as our earlier rows on this stack (#2815/#2816/#2817), run against today's
Suite: Results at
Startup-replay note: this PR replays compatible two-pass mesh pipelines from Not tested: actual startup replay against a recorded title cache — needs AI use: Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting. |
|
Test report: into the world on an RTX 4080 16 GB, together with #2831. Starts fine, replays 477 pipelines in 1 s, no growth in commit here; the world behaves as before. Tested
Not tested
AI use: Claude Code (Claude Fable 5.2) ran this on the owner's machine and wrote the report. |
Part of #2760. Targets
nvidia-dev, where graphics startup history and its worker are available.Graphics startup can replay legacy descriptor records. This adds a typed record for compatible two-pass console mesh streams so first use can save the shader keys and fixed-function state, and startup can replay the stream with the runtime’s pipeline cache keys.
What is in it
Tested
Head
b04438c7533111277ab2b5b532335682c1989a82onnvidia-devaf2cecc40886a8682ecf3267f5328c6dc4b66ad7. RTX 4080 driver 621.01, i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 x64 MSVC and DXC 1.8.2502.11, debug.Four normal
xcl runlaunches exited 0 with no capability skips and unchanged synthetic title folders. The base saved no mesh history. The head’s first bind saved one record. On a fresh launch, the ordinary startup worker resolved its loose shader, made one pipeline, and saved two blobs before the bind. The guest reused 2/2 with zero rejections or cold retries. With the loose source missing, the guest built both passes cold. Normal launcher comparisonA separate direct worker check saved two blobs with one window, then verified both were accepted on a fresh launch. Moving the same console shader to the AS slot also produced the same cache paths and two accepted blobs.
On the unmodified head,
cargo build --workspace --locked -j 4passed. The locked four-thread workspace suite reported 1,748 passed, 5 failed, 48 ignored. The clean parent had the same five failing tests.The same full build and four-thread suites with identical test-only overlays from Tests: wait for late release before checking released pipelines are gone #2770, Tests: some_ranges in texture_upload wraps its generator instead of overflowing #2771 and Tests: a console MS in the AS slot is refused by its MS translation #2788 reported 1,750 passed, 0 failed, 48 ignored on the base and 1,753 passed, 0 failed, 48 ignored on the head. Each included 30 capability skips across 40 harnesses. An earlier overlay run had one shared synthetic game-folder assertion failure. It did not recur in the final paired run.
The automatic merge of this head with
nvidia-devea0698d428f38f63fcc7638e50a86d186eb7e264built at tree69310a57126efe88afab2a3e3c204220387a577b. On the same RTX 4080 host, three syntheticxcl runlaunches exited 0 with Series X selected. The first launch wrote one type-3 mesh record. On a fresh launch the startup worker made one pipeline and saved two blobs. The guest accepted 2/2 with zero rejections or cold retries. With the loose shader absent, startup left the record out and the guest built both passes cold. The focused mesh and record selection passed 15 tests with 0 failures and 0 ignores, with no capability skips.Regression run
Independent retail smoke by MatyEjsr compared the exact original
nvidia-devparentaf2cecc40886a8682ecf3267f5328c6dc4b66ad7and headb04438c7533111277ab2b5b532335682c1989a82for 60 seconds each on an RTX 3090 with driver 617.42. Both exited 0 with zero crashes or device removals. The head showed 1,601 frames versus 1,590 on the parent and used 14,927 MB peak commit versus 15,591 MB (95.7%). Mesh history stayed at zero type-3 records, so the retail run covered startup stability and the synthetic launches covered mesh replay. The independent workspace suite found the same six failures on both revisions, and its focused graphics-record and shader-ownership checks passed 10/10.Not tested