d3d12: list memory (slot 148) and flagged dispatch (slot 80) for Xbox… #156

Merged
ReverendOzmund merged 1 commit from upstream-pr/156 into main 2026-11-25 09:52:03 +00:00
ReverendOzmund commented 2026-11-25 09:39:31 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-25T09:39:31Z.


Summary

Implements two command-list slots used by the packaged XboxBvhBuilder.dll:

  • Slot 148: (byte count, alignment) → memory the builder fills with build descriptors and post-build records, then reads on the GPU. Served from a per-allocator bump arena of committed pages; on allocator reset the pages return to a shared pool and are reused, so GPU imports of those addresses stay valid. All four call sites in the DLL pass (list, size, 8 or 16).
  • Slot 80: the out-of-space fallback for the builder's inline 0x4003cc00 packet, carrying (groups X, Y, Z, flags). Recorded as an ordinary dispatch; the flags (0x20 / 0x8020) are logged once.

Tested on ProjectScarlett, RTX 3080 Ti / Bazzite / Proton Experimental: without these the title stops on slot 148 and then slot 80; with them both are used and the title's crash report shows a current mission set at frame 2,351.

Checks

  • python build.py d3d12 builds cleanly (clang-cl + xwin, Rust 1.100).
  • list_memory.rs includes a unit test for alignment, chunk growth and pool reuse.
  • No evidence JSON changed in this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KP1nQKEc17PvmrwfPtLi8Z

<!-- greyfinch-sync:brcly/TuxBox:issue:6601534219 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/156). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-25T09:39:31Z. --- ## Summary Implements two command-list slots used by the packaged XboxBvhBuilder.dll: - Slot 148: (byte count, alignment) → memory the builder fills with build descriptors and post-build records, then reads on the GPU. Served from a per-allocator bump arena of committed pages; on allocator reset the pages return to a shared pool and are reused, so GPU imports of those addresses stay valid. All four call sites in the DLL pass (list, size, 8 or 16). - Slot 80: the out-of-space fallback for the builder's inline 0x4003cc00 packet, carrying (groups X, Y, Z, flags). Recorded as an ordinary dispatch; the flags (0x20 / 0x8020) are logged once. Tested on ProjectScarlett, RTX 3080 Ti / Bazzite / Proton Experimental: without these the title stops on slot 148 and then slot 80; with them both are used and the title's crash report shows a current mission set at frame 2,351. ## Checks - `python build.py d3d12` builds cleanly (clang-cl + xwin, Rust 1.100). - `list_memory.rs` includes a unit test for alignment, chunk growth and pool reuse. - No evidence JSON changed in this PR. 🤖 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!156
No description provided.