dxbc: append the stride table to a root whose parameter headers come last #627
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/627"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
833e1217of 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.python tuxbox.py checkof 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