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

Merged
ReverendOzmund merged 1 commit from upstream-pr/223 into main 2026-11-26 11:33:22 +00:00
ReverendOzmund commented 2026-11-26 11:19:49 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-26T11:19:49Z.


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

<!-- greyfinch-sync:brcly/TuxBox:issue:6625534895 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/223). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-26T11:19:49Z. --- 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
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
brcly/TuxBox!223
No description provided.