D3D12.X: preserve the NVIDIA world-streaming integration #2696

Open
ZekkJJ wants to merge 21 commits from upstream-pr/2706 into main
ZekkJJ commented 2026-11-26 07:37:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ZekkJJ on 2026-11-26T07:37:24Z.


Summary

This draft preserves the historical local integration that accepted an offline Series X profile on an RTX 4060 Laptop GPU and sustained world asset streaming without a device reset in the longest on-demand run. It captures the interaction among sparse mappings, texture lifetime, DirectStorage, and driver pipeline caching. The laptop used 16 GiB system RAM and an 8 GiB GPU.

The branch starts from historical upstream ancestor cbc296a. The two tip commits reproduce the archived source deltas from the tested executables. The diff also contains the earlier commits needed to reconstruct the experiment. Paired current-main smoke runs and review of standalone changes remain open. The visual evidence ends at loading artwork, black frames, and the account picker.

Changes

  • Order sparse mapping, title use, readback, and retirement across queues and expose bounded trace evidence at the submit and fence boundaries.
  • Keep deferred title-memory backing through the upload and protect overlapping render-target pages from stale unmaps. Related work includes #1514, #594, #1182, and #2177.
  • Integrate the two-pass mesh and geometry driver PSO cache and canonical identities. Related work includes #827, #1942, and the separately scoped #2448.
  • Refresh DirectStorage destination page lists and preserve snapshots for stack-backed requests. The second snapshot isolates the stack follow-up. Related work includes #819 and #1405.

Guarded retail evidence

The RTX 4060 runs used Series X and offline input. The principal local run used a 4,800 MiB coherent window, two DXC workers, and on-demand PSOs. Present counts include repeated loading frames.

Run Presents Stop reason Observed milestone
Historical clean upstream 0829441 2,791 0x887a0007 after 177.87 s Loading artwork
Reference #2057 at 4df1e6e, 4,800 MiB coherent 3,843 0x887a0007 after 208.94 s Loading artwork
Local DD109428, on-demand PSOs, source snapshot 01b6a34 6,699 Hard timeout after 703.29 s Player1 accepted. BCPack unpacked BC1, BC5, BC6H, and BC7. At least 16,384 page lists refreshed. Indirect mesh work recorded.
Local E33D3AE2, stack-page follow-up, source snapshot f614add 3,329 sampled Host-memory guard after 761.61 s At least 16,384 page lists refreshed. Last saved frame was artwork. A black window at 0 FPS followed in the live run.

In the 6,699-present run, the last present-bearing sample ended at 400.225 s and the last captured title execute was at 438.202485 s. All 24 sampled fence identities with issued signals in the retained checkpoint completed and none reported removal. One active native compute PSO finished after 54.299 s at 605.963 s, with another still active at cutoff. Peak private commit was 25,682 MiB, with 7,951 MiB dedicated and 5,683 MiB shared GPU memory. These are separate historical runs with different workload depth, cache warmth, and input timing. A rendered world frame and a causal memory or performance improvement remain unverified.

#2371 is a related independent compiler experiment. A later RTX 4060 run we captured showed a 42.007 s cold compute PSO and a 235 ms cached build on the same executable. That run recorded zero split compute programs. Eligibility for #2371 and its retail effect here remain unverified.

Tests and open issues

  • The original local integration passed 16 focused tests and the two-pass GPU integration fixture covering cache-off, cold, warm, and corrupt-cache paths. One heap-window case passed in its required layout after a default-layout skip.
  • The stack follow-up passed 33 focused DirectStorage tests and a real RTX 4060 fixture with byte-exact multi-mip readback.
  • The new f614add workspace attempt reported 1,135 passing library tests, six failures, and 26 ignored. One texture-retirement test reproduced a 64 KiB accounting assertion after the queue signal returned E_INVALIDARG. The other five library failures followed from the poisoned fixture lock. Two executable tests also lacked prebuilt workspace fixtures. The host-memory guard ended the full attempt before completion. Baseline attribution of the retirement assertion remains open.
  • The ordered sparse fixture previously passed its gates and readback with validation ID 1047 still logged. Validation-clean sparse mapping and equivalent current-main retail runs are pending.

AI assistance was used for implementation, test analysis, and preparing this draft.

Standalone follow-up

The compute driver disk cache fix is available on ZekkJJ:codex/compute-driver-cache-ram-budget at 9ecae592, based on main b49be183. It preserves the original author of ee0183fd and keeps disk persistence available when the compute blob RAM store is full. The disk and RAM key formats stay compatible with current main.

The extraction passed three compute blob unit tests on RTX 4060 Laptop (616.56). The seven-test GPU integration run reported zero failures and one heap-window skip. That case passed separately on the same commit with XCL_HEAP_WINDOWS=1 and no runtime skip. The standalone branch still needs its own full GPU suite and retail smoke before submission.

DirectStorage parallel decode and stack page retention are already in main via #819 and #1405. The compute-window coherence change is in main via #2346. The reference remains an integration archive.

<!-- greyfinch-sync:ivall/xcl:issue:5505943430 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2706). Originally posted by [ZekkJJ](https://github.com/ZekkJJ) on 2026-11-26T07:37:24Z. --- ## Summary This draft preserves the historical local integration that accepted an offline Series X profile on an RTX 4060 Laptop GPU and sustained world asset streaming without a device reset in the longest on-demand run. It captures the interaction among sparse mappings, texture lifetime, DirectStorage, and driver pipeline caching. The laptop used 16 GiB system RAM and an 8 GiB GPU. The branch starts from historical upstream ancestor `cbc296a`. The two tip commits reproduce the archived source deltas from the tested executables. The diff also contains the earlier commits needed to reconstruct the experiment. Paired current-main smoke runs and review of standalone changes remain open. The visual evidence ends at loading artwork, black frames, and the account picker. ## Changes - Order sparse mapping, title use, readback, and retirement across queues and expose bounded trace evidence at the submit and fence boundaries. - Keep deferred title-memory backing through the upload and protect overlapping render-target pages from stale unmaps. Related work includes [#1514](https://github.com/xcl-dev/xcl/pull/1514), [#594](https://github.com/xcl-dev/xcl/pull/594), [#1182](https://github.com/xcl-dev/xcl/pull/1182), and [#2177](https://github.com/xcl-dev/xcl/pull/2177). - Integrate the two-pass mesh and geometry driver PSO cache and canonical identities. Related work includes [#827](https://github.com/xcl-dev/xcl/pull/827), [#1942](https://github.com/xcl-dev/xcl/pull/1942), and the separately scoped [#2448](https://github.com/xcl-dev/xcl/pull/2448). - Refresh DirectStorage destination page lists and preserve snapshots for stack-backed requests. The second snapshot isolates the stack follow-up. Related work includes [#819](https://github.com/xcl-dev/xcl/pull/819) and [#1405](https://github.com/xcl-dev/xcl/pull/1405). ## Guarded retail evidence The RTX 4060 runs used Series X and offline input. The principal local run used a 4,800 MiB coherent window, two DXC workers, and on-demand PSOs. Present counts include repeated loading frames. | Run | Presents | Stop reason | Observed milestone | | --- | ---: | --- | --- | | Historical clean upstream `0829441` | 2,791 | `0x887a0007` after 177.87 s | Loading artwork | | Reference [#2057](https://github.com/xcl-dev/xcl/pull/2057) at `4df1e6e`, 4,800 MiB coherent | 3,843 | `0x887a0007` after 208.94 s | Loading artwork | | Local `DD109428`, on-demand PSOs, source snapshot `01b6a34` | 6,699 | Hard timeout after 703.29 s | Player1 accepted. BCPack unpacked BC1, BC5, BC6H, and BC7. At least 16,384 page lists refreshed. Indirect mesh work recorded. | | Local `E33D3AE2`, stack-page follow-up, source snapshot `f614add` | 3,329 sampled | Host-memory guard after 761.61 s | At least 16,384 page lists refreshed. Last saved frame was artwork. A black window at 0 FPS followed in the live run. | In the 6,699-present run, the last present-bearing sample ended at 400.225 s and the last captured title execute was at 438.202485 s. All 24 sampled fence identities with issued signals in the retained checkpoint completed and none reported removal. One active native compute PSO finished after 54.299 s at 605.963 s, with another still active at cutoff. Peak private commit was 25,682 MiB, with 7,951 MiB dedicated and 5,683 MiB shared GPU memory. These are separate historical runs with different workload depth, cache warmth, and input timing. A rendered world frame and a causal memory or performance improvement remain unverified. [#2371](https://github.com/xcl-dev/xcl/pull/2371) is a related independent compiler experiment. A later RTX 4060 run we captured showed a 42.007 s cold compute PSO and a 235 ms cached build on the same executable. That run recorded zero split compute programs. Eligibility for #2371 and its retail effect here remain unverified. ## Tests and open issues - The original local integration passed 16 focused tests and the two-pass GPU integration fixture covering cache-off, cold, warm, and corrupt-cache paths. One heap-window case passed in its required layout after a default-layout skip. - The stack follow-up passed 33 focused DirectStorage tests and a real RTX 4060 fixture with byte-exact multi-mip readback. - The new `f614add` workspace attempt reported 1,135 passing library tests, six failures, and 26 ignored. One texture-retirement test reproduced a 64 KiB accounting assertion after the queue signal returned `E_INVALIDARG`. The other five library failures followed from the poisoned fixture lock. Two executable tests also lacked prebuilt workspace fixtures. The host-memory guard ended the full attempt before completion. Baseline attribution of the retirement assertion remains open. - The ordered sparse fixture previously passed its gates and readback with validation ID 1047 still logged. Validation-clean sparse mapping and equivalent current-main retail runs are pending. AI assistance was used for implementation, test analysis, and preparing this draft. ## Standalone follow-up The compute driver disk cache fix is available on [`ZekkJJ:codex/compute-driver-cache-ram-budget`](https://github.com/ZekkJJ/xcl/tree/codex/compute-driver-cache-ram-budget) at [`9ecae592`](https://github.com/ZekkJJ/xcl/commit/9ecae592ea3a1ba2b41db0167e06da435b271791), based on main `b49be183`. It preserves the original author of `ee0183fd` and keeps disk persistence available when the compute blob RAM store is full. The disk and RAM key formats stay compatible with current main. The extraction passed three compute blob unit tests on RTX 4060 Laptop (616.56). The seven-test GPU integration run reported zero failures and one heap-window skip. That case passed separately on the same commit with `XCL_HEAP_WINDOWS=1` and no runtime skip. The standalone branch still needs its own full GPU suite and retail smoke before submission. DirectStorage parallel decode and stack page retention are already in main via #819 and #1405. The compute-window coherence change is in main via #2346. The reference remains an integration archive.
Foniass commented 2026-12-01 08:45:36 +00:00 (Migrated from github.com)

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


Triage (#1607) – head f614add

This is a 21-commit, 7,379-line integration snapshot from old base cbc296a. The description calls it an archive. It collects other authors' commits and open PRs: all of #2092's added lines, 97% of #799's and 91% of #2177's are in it. Several parts are already on main: the DirectStorage stack safeguard of the tip commit (dstorage.rs:on_callers_stack / dest_on_stack), tests/gpu_two_pass_cache_e2e.rs, and 3 of its commits by patch-id.
It is not a duplicate of any one PR, but it cannot be reviewed or merged in this form. The description reports 6 failing library tests on f614add. The parts that are not on main yet need their own small PRs against current main, as you started with the compute driver-cache branch.
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:7305745932 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2706#issuecomment-7305745932). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:45:36Z. --- **Triage (#1607)** – head f614add This is a 21-commit, 7,379-line integration snapshot from old base cbc296a. The description calls it an archive. It collects other authors' commits and open PRs: all of #2092's added lines, 97% of #799's and 91% of #2177's are in it. Several parts are already on main: the DirectStorage stack safeguard of the tip commit (`dstorage.rs:on_callers_stack` / `dest_on_stack`), `tests/gpu_two_pass_cache_e2e.rs`, and 3 of its commits by patch-id. It is not a duplicate of any one PR, but it cannot be reviewed or merged in this form. The description reports 6 failing library tests on f614add. The parts that are not on main yet need their own small PRs against current main, as you started with the compute driver-cache branch. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2706:upstream-pr/2706'
git switch 'upstream-pr/2706'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2706'
git switch 'upstream-pr/2706'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2706'
git switch 'upstream-pr/2706'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2706'
git switch 'main'
git merge --squash 'upstream-pr/2706'
git switch 'main'
git merge --ff-only 'upstream-pr/2706'
git switch 'main'
git merge 'upstream-pr/2706'
git push origin 'main'
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!2696
No description provided.