d3d12: start a paged descriptor heap's title memory cleared #301
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/301"
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-11-27T06:48:54Z.
Refs #232. A paged descriptor heap's title-visible memory comes from the title's own allocator, which need not clear it. A slot the title never writes then holds leftover bytes that are neither an authored descriptor record nor an empty one. Binding a table that spans such a slot fails with
E_INVALIDARG, and the draw or dispatch is skipped (… with a reflected table).Found in ProjectScarlett on an RTX 5090 while narrowing #215's write sets: tables with legally unwritten slots were refused.
Change (
device/descriptor_paging.rs): clear the heap's title memory when the arena is created, so an unwritten slot reads as the empty record.Test: a new Lanes scenario,
unwritten-descriptors(inalland the verify suite). It installs XMem allocation hooks that fill what they hand out with0xA5, creates a CBV_SRV_UAV heap while they are in place, and dispatches through a table whose t1..t3 are never written.8b1f6ac, AMD):FAIL unwritten-descriptors: output kept its sentinel: the table was refused and the dispatch skipped.Checks
python -m unittest discover -s tests -q: OK.python tuxbox.py checkpassed oncc66885, 136 gates, includinglanes-selftest-unwritten-descriptors.python tuxbox.py checkpassed on the fix alone (f7ec7a9, same runtime change), 135 gates;tuxbox.py verify --only lanes-selftestoncc66885passed all 16, including the new scenario.🤖 Generated with Claude Code