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

Manually merged
github merged 1 commit from gh-pr/156/head into gh-pr/156/base 2026-11-26 06:34:57 +00:00
Owner

@⁠ReverendOzmund on GitHub · 2026-11-25 09:39 UTC · original
ReverendOzmund:d3d12-slot148-list-memory → main · +133 −0 · 3 files · 1 commits · merged 2026-11-25 09:52 UTC

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

**@⁠ReverendOzmund** on GitHub · 2026-11-25 09:39 UTC · [original](https://github.com/brcly/TuxBox/pull/156) `ReverendOzmund:d3d12-slot148-list-memory` → `main` · +133 −0 · 3 files · 1 commits · merged 2026-11-25 09:52 UTC ## 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
XboxBvhBuilder's batched build and rehydrate paths call two command-list slots TuxBox did not implement. Slot 148 takes (byte count, alignment) and returns memory the builder fills with descriptors and reads on the GPU; it now comes from a per-allocator arena that returns to a shared pool when the allocator resets, so addresses stay valid for GPU imports. Slot 80 receives the same words the builder otherwise writes as an inline 0x4003cc00 packet (groups X, Y, Z and a flags word) and is recorded as an ordinary dispatch.

Before: ProjectScarlett stopped on 'unsupported D3D12.x vtable slot 148', then slot 80. After: both are used and the title reaches a current mission (frame 2,351) on an RTX 3080 Ti.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KP1nQKEc17PvmrwfPtLi8Z
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:34:55 +00:00
github manually merged commit 18e4e0863c into gh-pr/156/base 2026-11-26 06:34:57 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.