Skip to content

Shaders: defer direct mesh cache probes - #1965

Closed
mokkamokacaffe wants to merge 1 commit into
xcl-dev:mainfrom
mokkamokacaffe:shaders/defer-direct-mesh-probe
Closed

mokkamokacaffe wants to merge 1 commit into
xcl-dev:mainfrom
mokkamokacaffe:shaders/defer-direct-mesh-probe

Conversation

@mokkamokacaffe

@mokkamokacaffe mokkamokacaffe commented Nov 25, 2026 •

Copy link
Copy Markdown

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
mokkamokacaffe deleted the shaders/defer-direct-mesh-probe branch November 25, 2026 00:15
@mokkamokacaffe

Copy link
Copy Markdown
Author

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

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants