Repository navigation
docs: builder command-list slots in console order; +0x490 is Barrier (slot 146) - #1469
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Merged
Conversation
…(slot 146) Re-read the BVH builder's command-list call sites in the console order of section 3.5a: +0x108 is SetComputeRootSignature, +0x138 SetComputeRoot32BitConstants and +0x168 SetComputeRootUnorderedAccessView (the PC-order readings SetComputeRoot32BitConstant, SetComputeRootShaderResourceView and SOSetTargets do not fit the argument registers or the inline writes). RDX at the +0xc8 call is the pipeline. +0x490 (console slot 146) is the public enhanced Barrier with one global compute-to-compute UAV barrier. New section 3.3a: slots 37/39/43/45 at other sites, 148 (upload allocator whose pointer is used as the GPU address), 80 (dispatch with an extra word), 71/73 (label write/wait, unreachable in the shipping DLL) and the second Barrier site.
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: new D3D item, #1380 (comment)
What and why
Docs only:
docs/d3d12_command_objects.mdand one row ofdocs/d3d12_vulkan.md. No code, no tests, no game data (RVAs, offsets, constants and short register excerpts only).Section 3.3 read the BVH builder's command-list calls in PC order. Section 3.5a has since shown the console list is not in PC order past slot 26. Re-read in console order, with the argument registers at each call and the inline write each call falls back from, three of the section 3.3 readings were wrong and the unknown
+0x490is identified.Corrections to section 3.3 (each now marked Measured, with the registers that decide it):
0x1d7f4+0x108SetComputeRoot32BitConstantSetComputeRootSignature(one argument, the pointer stored next to the pipeline)0x1d8b9,0x1d956+0x138SetComputeRootShaderResourceViewSetComputeRoot32BitConstants(four arguments: index, count, source pointer, offset)0x1d8f9+0x168SOSetTargetsSetComputeRootUnorderedAccessView(root index and a 64-bit address)0x1d85e+0xc8SetPipelineState, argument not provenRDX=[rdi+8], the object the inline branch copies 28 bytes from0x1da02+0x490Barrier: one global group,SyncBefore=SyncAfter=COMPUTE_SHADING (0x80),AccessBefore=AccessAfter=UNORDERED_ACCESS (0x10); the constant is 16 bytes at RVA0xcdf60New section 3.3a, other call sites through the list pointer in
.text:(size, alignment). Its returned CPU pointer is passed unchanged as a root SRV address (0x20f99), so console upload memory has one address for CPU and GPU. A replacement must return memory that is valid as both..bssbool at RVA0xd773cis set, and nothing in.textwrites it, so in the shipping DLL theBarrierpath runs.Barriersite at0xd7b4.Follow-ups in the same file: §3.4 (the write at
[rbx+0x544]is 32 bytes, not 16;+0x490no longer Open), the §3.5a summary, the §4.3 Open list, the §5.3 table (only+0x350remains unexplained), §5.4, §7 (the logging-proxy step now confirms rather than discovers), §8.2 sources.d3d12_vulkan.md§8.2 Q2 lists the new slots.Relation to open PRs: #1325 (console-order list proxy) edits other hunks of the same file (§3.5a last paragraph, §5.2, §7 item 3) and does not conflict. Its proxy refuses 37/39/43/45/71/73/80/146/148; this PR gives their shapes. No open PR identifies
+0x490.What is not done
+0x350(read once at0x1d877) is still unexplained.f85582e2. Main has moved; it merges cleanly onto current main (checked withgit merge-tree), and none of the newer commits touch the edited sections. Not rebased.Tested
Docs only. Every RVA, register and constant in the diff was re-read in
dumpbin /DISASMoutput (MSVC 14.44, dumpbin 14.44.35230.0) of the shippedXboxBvhBuilder.dll(package 1.0.2.1, image base0x180000000); the functions were first located with Ghidra 12.2. Enum values checked against SDK 10.0.26100d3d12.h. Nothing was run; no GPU involved.Checklist
docs/design.md, with how it was confirmed. (Not applicable: docs only, no translator change.)AI-assisted.