Repository navigation
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.
5 tasks
Owner
Author
|
Review draft; submitted upstream as ItsNotRexed#1469. |
CLHelper
pushed a commit
that referenced
this pull request
Nov 22, 2026
PowerShell 5.1 wraps the first stderr line of a native program in an error record: `d3d12_test.exe : [d3d12-trace] #1 ...`. The anchored tag match counted that line as noise, so the summary lost call #1 and still exited 0. The tag may now follow a `<name> : ` prefix; a fixture and a dedicated test keep it. docs/boot.md says the prefix is accepted and that the BOM from Out-File -Encoding utf8 is stripped.
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 as
Not claimed yet. CONTRIBUTING requires a claim in the open "Coordinating who works on what" issue before an upstream pull request; that has not been posted. D3D work should also be mentioned on ItsNotRexed#313. The item ID goes here once claimed.
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: ItsNotRexed#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 at instruction level in a static disassembly of the shipped
XboxBvhBuilder.dll(package 1.0.2.1, image base0x180000000); enum values checked against SDK 10.0.26100d3d12.h. Nothing was run. No GPU involved.AI-assisted (Claude Code).
Before submitting upstream (checklist for the reviewer)
🤖 Generated with Claude Code