Repository navigation
docs: FSR DLL list slots 54/55/59/85, pipeline slot 11 and the device +0x18 copy switch - #1470
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Conversation
… +0x18 copy switch Static reading of the FSR DLL's call sites, added to section 3.5a: - 54 is ClearUnorderedAccessViewFloat and 55 DiscardResource (both +4). - 59 is one console slot with a bool first argument, used for both ends of a GPU event; the two slots the console lacks are among 56-60. - 85 takes the six CopyTextureRegion arguments (two copy locations), not one pointer: buffer-to-texture with a footprint from device slot 38, or texture-to-texture. - Pipeline slot 11 (console-only) gives a per-pipeline scratch value; the largest times 0xd0 sizes FFX_XBox_ComputeScratch, and slot 141's fourth argument is the bound pipeline's value. - A byte at device +0x18 selects between the DLL's own 32-byte descriptor copy and device slot 24 CopyDescriptorsSimple. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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)
Independent of the builder-slots PR (same claim): no shared lines; the two merge cleanly in either order (checked with
git merge-tree).What and why
Docs only:
docs/d3d12_command_objects.md§3.5a. No code, no tests, no game data (RVAs, offsets, constants and short register excerpts only).§3.5a maps the FSR DLL's console command list but leaves slots 54, 55 and 59 out, reads slot 85 as
(stack pointer, 0, 0), gives slot 141's fourth argument asn, and notes the slot-24CopyDescriptorsSimplepath as "not taken in this run" without saying what selects it. A static reading of the call sites fills these in:+0x1b0)ClearUnorderedAccessViewFloat: six arguments at0x7296, chosen over the slot-53 call at0x72eeby a compare with0x12; values passed in place, where the 53 path copies them to the stack+0x1b8)DiscardResource(resource, null)at0x6dcb+0x1d8)(1, blob, size)at two sites and(0, &qword 1, 8)at two others, first argument a byte. It looks like one slot for both ends of a GPU event. With 55 at +4 and 61 at +2, the two missing slots are among 56–60+0x2a8)(&dst, 0, 0, 0, &src, null), the publicCopyTextureRegionshape with two copy locations, not one pointer. Buffer to texture (src a placed footprint from device slot 38) at0x7147, texture to texture at0x7191. The run's(stack pointer, 0, 0)is the first three of theseID3D12PipelineStateends at 8), called on every new pipeline at0x586d:(0, 0, &obj), a dword throughobjslot 3, × 1024, kept per pipeline, maximum per context0xd0, rounded up to 64 KiB, device slot 27 inUNORDERED_ACCESS0xd0and the leading2open+0x18CopyDescriptorsSimple(1, dst, src, 0). A device proxy that sets the byte sees the copies as callsWhy it matters here: the console-order list proxy in #1325 refuses slot 85 as unmapped; this gives it a shape it can forward. The
+0x18byte gives the device proxy a switch that makes this DLL's descriptor copies visible.What is not done
fsr_dispatch_testrun; 85 is, but the run logs only three arguments.CopyTextureRegionshape, but what console slot 16 is remains open, as does whether 85 takes a seventh argument (the caller clears that stack slot).0xd0, the leading2of slot 141, and what the0x12compare in front of slot 54 tests.d3d12_vulkan.md§8.2 Q2 and the §4.3 Open list should also list 54/55/59 and the 85 correction. That is a small follow-up after both PRs land.f85582e2; merges cleanly onto current main. 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 shippedamd_fidelityfx_upscaler_xbox.dll(package 1.0.2.1, image base0x180000000); the functions were first located with Ghidra 12.2.D3D12_TEXTURE_COPY_LOCATIONandCopyTextureRegionper 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.