Skip to content

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

Merged
brcly merged 1 commit into
brcly:mainfrom
ReverendOzmund:d3d12-slot148-list-memory
Nov 25, 2026
Merged

brcly merged 1 commit into
brcly:mainfrom
ReverendOzmund:d3d12-slot148-list-memory

Conversation

@ReverendOzmund

Copy link
Copy Markdown
Contributor

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

…BvhBuilder

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KP1nQKEc17PvmrwfPtLi8Z
@ReverendOzmund ReverendOzmund mentioned this pull request Nov 25, 2026
@brcly
brcly merged commit 8ce988d into brcly:main Nov 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants