Shaders: defer direct mesh cache probes #1965

Closed
github-bot wants to merge 1 commit from gh-pr/1965/head into gh-pr/1965/base
Owner

@⁠mokkamokacaffe on GitHub · 2026-11-25 00:01 UTC · original
mokkamokacaffe:shaders/defer-direct-mesh-probe → main · +18 −0 · 1 files · 1 commits · closed without merging

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.

**@⁠mokkamokacaffe** on GitHub · 2026-11-25 00:01 UTC · [original](https://github.com/xcl-dev/xcl/pull/1965) `mokkamokacaffe:shaders/defer-direct-mesh-probe` → `main` · +18 −0 · 1 files · 1 commits · closed without merging 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:11:54 +00:00
github-bot closed this pull request 2026-11-26 05:11:54 +00:00
Author
Owner

@⁠mokkamokacaffe on GitHub · 2026-11-25 00:15 UTC · original

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.

**@⁠mokkamokacaffe** on GitHub · 2026-11-25 00:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/1965#issuecomment-7148312327) 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 03:09 UTC · original

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.

**@⁠DavidM1911** on GitHub · 2026-11-25 03:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/1965#issuecomment-7151642550) 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

This discussion has been locked. Commenting is limited to contributors.
No description provided.