dxbc: append the stride table to a root whose parameter headers come last #627

Merged
NickStallman merged 1 commit from upstream-pr/627 into main 2026-12-01 20:32:12 +00:00
NickStallman commented 2026-12-01 16:05:25 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-12-01T16:05:25Z.


The builder that appends a root descriptor to a shader's embedded root assumed parameter headers, then bodies, then samplers. The Direct3D serializer writes the headers last, so such a request was refused with "could not build the stride-table variant of this shader". A root in the old order gives the same bytes as before. Any other order is rebuilt in place, and a root whose parts overlap the header array or leave the chunk is refused.

Refs #533. One of three: the mesh stride-table PR builds on this, since the root a mesh pipeline gets with the index map (#617) has its headers last. Until then only the standalone tool uses the builder.

Measured

  • Twelve mutations, all caught (on the previous base).
  • Survey on 833e1217 of 20,276 mesh-stage and stride-marked requests from one title, plain and with the stride retry: 2 more translate (two plain impostor mesh requests on serializer-order roots), no output changes, nothing newly refused.
  • Full python tuxbox.py check of the pre-rebase head fd8b2df3: RTX 5090 208 pass, AMD iGPU 207 pass.
  • Evidence: TuxBox check of 972d909db0f6, no uncommitted changes, no GPU checks: 13 passed, 0 failed, 0 not run

🤖 Generated with Claude Code

<!-- greyfinch-sync:brcly/TuxBox:issue:5589510896 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/627). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-12-01T16:05:25Z. --- The builder that appends a root descriptor to a shader's embedded root assumed parameter headers, then bodies, then samplers. The Direct3D serializer writes the headers last, so such a request was refused with "could not build the stride-table variant of this shader". A root in the old order gives the same bytes as before. Any other order is rebuilt in place, and a root whose parts overlap the header array or leave the chunk is refused. Refs #533. One of three: the mesh stride-table PR builds on this, since the root a mesh pipeline gets with the index map (#617) has its headers last. Until then only the standalone tool uses the builder. ## Measured - Twelve mutations, all caught (on the previous base). - Survey on 833e1217 of 20,276 mesh-stage and stride-marked requests from one title, plain and with the stride retry: 2 more translate (two plain impostor mesh requests on serializer-order roots), no output changes, nothing newly refused. - Full `python tuxbox.py check` of the pre-rebase head fd8b2df3: RTX 5090 208 pass, AMD iGPU 207 pass. - `Evidence: TuxBox check of 972d909db0f6, no uncommitted changes, no GPU checks: 13 passed, 0 failed, 0 not run` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!627
No description provided.