Shaders: defer direct mesh cache probes #1955

Closed
mokkamokacaffe wants to merge 1 commit from upstream-pr/1965 into main
mokkamokacaffe commented 2026-11-25 00:01:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-25T00:01:08Z.


Addresses #1896 item 2 without overlapping #1788's compute path or the timeout-worker redesign.

What is in it

  • Make the Direct-DXIL mesh path call dxc::defer() before cold translation during a cached-only pipeline probe.
  • Return a deferred miss immediately so asynchronous PSO creation can schedule the real translation away from the title thread.
  • Leave normal mesh creation, Direct-DXIL fallback and pass-through mesh compilation unchanged outside cached-only probes.
  • Add a focused test proving the translation is deferred inside a probe, marks the probe missed, and runs normally before and afterwards.

Tested

  • git diff --check: passed.
  • Source-level audit of attempt, dxc::cached_only, console_mesh and the asynchronous pipeline retry path.

The current Linux workspace does not contain Cargo/Rust, so the Rust test was not run here.

Regression run

Not run: this shader-pipeline runtime change needs paired Windows/GPU smoke runs on the exact head and a commit of main. Please apply test-only until matching xcl-smoke v1 blocks are available.

main:

Pending for 62265d3 or a newer commit of main.

PR:

Pending for 0d70ec3edd9c2c3748b5a97e4b978a6471f41b38.

Not tested

  • Windows workspace suite.
  • A cold Direct-DXIL mesh PSO probe through the live D3D12 pipeline-stream hook.
  • Retail-title smoke or world-load run.

AI use

OpenAI Codex refreshed current main, #1269, #1896 and newly opened shader PRs; isolated the unclaimed Direct-mesh probe path; implemented the deferral and focused state-transition test; and performed source-level/diff validation. No hardware or generated test results are claimed.

<!-- greyfinch-sync:ivall/xcl:issue:6593952857 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1965). Originally posted by [mokkamokacaffe](https://github.com/mokkamokacaffe) on 2026-11-25T00:01:08Z. --- Addresses #1896 item 2 without overlapping #1788's compute path or the timeout-worker redesign. **What is in it** - Make the Direct-DXIL mesh path call `dxc::defer()` before cold translation during a cached-only pipeline probe. - Return a deferred miss immediately so asynchronous PSO creation can schedule the real translation away from the title thread. - Leave normal mesh creation, Direct-DXIL fallback and pass-through mesh compilation unchanged outside cached-only probes. - Add a focused test proving the translation is deferred inside a probe, marks the probe missed, and runs normally before and afterwards. **Tested** - `git diff --check`: passed. - Source-level audit of `attempt`, `dxc::cached_only`, `console_mesh` and the asynchronous pipeline retry path. The current Linux workspace does not contain Cargo/Rust, so the Rust test was not run here. **Regression run** Not run: this shader-pipeline runtime change needs paired Windows/GPU smoke runs on the exact head and a commit of `main`. Please apply `test-only` until matching `xcl-smoke v1` blocks are available. main: Pending for `62265d3` or a newer commit of `main`. PR: Pending for `0d70ec3edd9c2c3748b5a97e4b978a6471f41b38`. **Not tested** - Windows workspace suite. - A cold Direct-DXIL mesh PSO probe through the live D3D12 pipeline-stream hook. - Retail-title smoke or world-load run. **AI use** OpenAI Codex refreshed current `main`, #1269, #1896 and newly opened shader PRs; isolated the unclaimed Direct-mesh probe path; implemented the deferral and focused state-transition test; and performed source-level/diff validation. No hardware or generated test results are claimed.
upstream-sync closed this pull request 2026-11-25 01:10:06 +00:00
mokkamokacaffe commented 2026-11-25 01:10:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-25T00:15:07Z.


Superseded by #1836, merged in 80f4819. Its Direct-DXIL mesh translation closure already calls dxc::defer() during cached-only probes and additionally provides RAM/disk caching and in-flight coalescing. No remaining change from this PR is needed.

<!-- greyfinch-sync:ivall/xcl:comment:7148312327 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1965#issuecomment-7148312327). Originally posted by [mokkamokacaffe](https://github.com/mokkamokacaffe) on 2026-11-25T00:15:07Z. --- Superseded by #1836, merged in 80f4819. Its Direct-DXIL mesh translation closure already calls dxc::defer() during cached-only probes and additionally provides RAM/disk caching and in-flight coalescing. No remaining change from this PR is needed.
DavidM1911 commented 2026-11-25 04:10:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T03:09:17Z.


Verification on RTX 3060 Ti (Windows 11): merge conflict with current main (crates/xcl/src/gpu/recomp/pso.rs) — needs a rebase before it can be tested.

<!-- greyfinch-sync:ivall/xcl:comment:7151642550 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1965#issuecomment-7151642550). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T03:09:17Z. --- Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** (`crates/xcl/src/gpu/recomp/pso.rs`) — needs a rebase before it can be tested.

Pull request closed

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!1955
No description provided.