d3d12: say why a pipeline has no paged descriptor layout #223

Manually merged
github merged 1 commit from github-bot/gh-223 into main 2026-11-26 11:36:20 +00:00 AGit
Owner

@⁠ReverendOzmund on GitHub · 2026-11-26 11:19 UTC · original
ReverendOzmund:d3d12-paged-layout-reason → main · +55 −10 · 4 files · 1 commits · merged 2026-11-26 11:33 UTC

NickStallman's #215 runs skip about 1,000 draws and dispatches per world frame with "pipeline has no paged descriptor layout" (guest callers 0x2951ba and 0x248cbc1). That one message currently covers three different problems, each needing its own fix, so nobody can tell from a log which one to work on.

Summary

The skip line now ends with the reason:

  • no root signature was recorded for the pipeline
  • its root indexes the resource heap directly: a CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED root without a reflected table, which the paged path refuses outright
  • its root signature could not be parsed

Nothing behaves differently, only the log text changes. The old wording is still the start of the line, so existing greps keep matching. The check moves into paged_layout_gap() so it can be unit tested, and RootSource::new becomes pub(crate) so the test can build roots.

If the world-frame skips turn out to be direct-indexed roots, the follow-up is a paged path for them. Translated shaders already carry tb_heap_map, so most of the plumbing exists.

Verified on Lanes

  • python tuxbox.py check passed on this branch: not run. This only changes a log line, so the Lanes and fixtures results can't differ. I can run it if you'd like.
  • Changed or new behaviour is covered by a Lanes scenario, or the reason it cannot be is stated below

No Lanes scenario binds a pipeline without a paged layout, and the change is log-only. paged_layout_gap_names_why_a_root_is_not_paged covers all three reasons and a normal paged root. Its RTS0 bytes also parse correctly with tuxbox_dxbc::rootsig::parse_rts0. cargo check --target x86_64-pc-windows-msvc --tests on tuxbox-d3d12 is clean.

GPU, driver and backend: RTX 3080 Ti, 620.70.06, GE-Proton11-14 (build only).

  • This changes code both vendors run, and the check passed on an AMD and an NVIDIA card. Otherwise, say which vendor still needs to run it: log text only, with nothing vendor-specific.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KP1nQKEc17PvmrwfPtLi8Z

**@⁠ReverendOzmund** on GitHub · 2026-11-26 11:19 UTC · [original](https://github.com/brcly/TuxBox/pull/223) `ReverendOzmund:d3d12-paged-layout-reason` → `main` · +55 −10 · 4 files · 1 commits · merged 2026-11-26 11:33 UTC NickStallman's #215 runs skip about 1,000 draws and dispatches per world frame with "pipeline has no paged descriptor layout" (guest callers 0x2951ba and 0x248cbc1). That one message currently covers three different problems, each needing its own fix, so nobody can tell from a log which one to work on. ## Summary The skip line now ends with the reason: - `no root signature was recorded for the pipeline` - `its root indexes the resource heap directly`: a `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED` root without a reflected table, which the paged path refuses outright - `its root signature could not be parsed` Nothing behaves differently, only the log text changes. The old wording is still the start of the line, so existing greps keep matching. The check moves into `paged_layout_gap()` so it can be unit tested, and `RootSource::new` becomes `pub(crate)` so the test can build roots. If the world-frame skips turn out to be direct-indexed roots, the follow-up is a paged path for them. Translated shaders already carry `tb_heap_map`, so most of the plumbing exists. ## Verified on Lanes - [ ] `python tuxbox.py check` passed on this branch: not run. This only changes a log line, so the Lanes and fixtures results can't differ. I can run it if you'd like. - [x] Changed or new behaviour is covered by a Lanes scenario, or the reason it cannot be is stated below No Lanes scenario binds a pipeline without a paged layout, and the change is log-only. `paged_layout_gap_names_why_a_root_is_not_paged` covers all three reasons and a normal paged root. Its RTS0 bytes also parse correctly with `tuxbox_dxbc::rootsig::parse_rts0`. `cargo check --target x86_64-pc-windows-msvc --tests` on `tuxbox-d3d12` is clean. GPU, driver and backend: RTX 3080 Ti, 620.70.06, GE-Proton11-14 (build only). - [ ] This changes code both vendors run, and the check passed on an AMD and an NVIDIA card. Otherwise, say which vendor still needs to run it: log text only, with nothing vendor-specific. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01KP1nQKEc17PvmrwfPtLi8Z
The skip covers three cases that need different fixes: no recorded root, a root that indexes the heap directly, and a root that did not parse. Name the case in the log line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Claude-Session: https://claude.ai/code/session_01KP1nQKEc17PvmrwfPtLi8Z
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:23:34 +00:00
github manually merged commit 00ba85ff58 into main 2026-11-26 11:36:20 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.