docs: device slot 62 takes five parameters and slot 76 has no call site in the executable (D3D12-DEVICE-SLOT-ARITY) #1007

Open
github-bot wants to merge 1 commit from github-bot/gh-1007 into main AGit
Owner

@⁠robot00f on GitHub · 2026-11-24 16:46 UTC · original
robot00f:docs/d3d12-device-slot-arity → main · +1 −1 · 1 files · 1 commits · open

Claimed in the coordination issue as: D3D12-DEVICE-SLOT-ARITY (#14), from the finding one comment above.

What and why

The ID3D12Device row of the object table (docs/d3d12_vulkan.md §4) says slot 62 is CreateComputePipelineState and slot 76 is "Xbox texture creation". Static Capstone disassembly over the executable's .text (0x140001000–0x145f40966), following the device globals (0x148759D00 and 0x1475DF000–0x1475DF048) from renderer init 0x142478440, answers the first differently and scopes the second:

  • Slot 62 is called at 0x14247FE66 as (desc, 0, 0, &riid, &out) — five parameters with an explicit IID/out pair, the same shape as slots 8 and 9. The PC method it forwards to takes three (desc, riid, out), so forwarding by number drops the two extra words.
  • Slot 76 (+0x260) has no device call site in this executable. None of the 57 indirect call [reg+0x260] sites in .text loads a device global (they are non-device virtual calls, including bool predicates). Its only measured caller is the shipped FidelityFX upscaler, with the seven CreateCommittedResource arguments (docs/d3d12_command_objects.md §3.5a), so the doc's slot 76 meaning stands and the table cell now records both how it was measured and where the call comes from.

Tested

  • Static Capstone disassembly over .text (0x140001000–0x145f40966, nothing executed): device globals traced from 0x142478440, slot 62 call verified at 0x14247FE66, all 57 indirect call [reg+0x260] sites checked against the device globals (0 matches).
  • python -I scripts/check_no_game_data.py docs/d3d12_vulkan.md -> exit 0
  • python -I tests/test_d3d12_iid_scan.py, tests/test_docs_links.py, tests/test_docs_table_rows.py, tests/test_docs_repo_paths.py, tests/test_docs_cli_flags.py -> OK.

GPUs tested: n/a

AI-assisted: yes (Antigravity, Gemini 4 Carbon)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md).
  • A new translator rule is in the contract table of docs/design.md. (No translator change.)
**@⁠robot00f** on GitHub · 2026-11-24 16:46 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1007) `robot00f:docs/d3d12-device-slot-arity` → `main` · +1 −1 · 1 files · 1 commits · open Claimed in the coordination issue as: D3D12-DEVICE-SLOT-ARITY (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14), from the finding one comment above. ### What and why The `ID3D12Device` row of the object table (`docs/d3d12_vulkan.md` §4) says slot 62 is `CreateComputePipelineState` and slot 76 is "Xbox texture creation". Static Capstone disassembly over the executable's `.text` (`0x140001000`–`0x145f40966`), following the device globals (`0x148759D00` and `0x1475DF000`–`0x1475DF048`) from renderer init `0x142478440`, answers the first differently and scopes the second: - **Slot 62** is called at `0x14247FE66` as `(desc, 0, 0, &riid, &out)` — five parameters with an explicit IID/out pair, the same shape as slots 8 and 9. The PC method it forwards to takes three `(desc, riid, out)`, so forwarding by number drops the two extra words. - **Slot 76 (`+0x260`) has no device call site in this executable.** None of the 57 indirect `call [reg+0x260]` sites in `.text` loads a device global (they are non-device virtual calls, including `bool` predicates). Its only measured caller is the shipped FidelityFX upscaler, with the seven `CreateCommittedResource` arguments (`docs/d3d12_command_objects.md` §3.5a), so the doc's slot 76 meaning stands and the table cell now records both how it was measured and where the call comes from. ### Tested - Static Capstone disassembly over `.text` (`0x140001000`–`0x145f40966`, nothing executed): device globals traced from `0x142478440`, slot 62 call verified at `0x14247FE66`, all 57 indirect `call [reg+0x260]` sites checked against the device globals (0 matches). - `python -I scripts/check_no_game_data.py docs/d3d12_vulkan.md` -> exit 0 - `python -I tests/test_d3d12_iid_scan.py`, `tests/test_docs_links.py`, `tests/test_docs_table_rows.py`, `tests/test_docs_repo_paths.py`, `tests/test_docs_cli_flags.py` -> OK. GPUs tested: n/a AI-assisted: yes (Antigravity, Gemini 4 Carbon) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md). - [ ] A new translator rule is in the contract table of `docs/design.md`. (No translator change.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:33:16 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 14:27 UTC · original

Reviewed 5d6808a (docs-only, one table cell): ran the docs-consistency suite and tests/test_d3d12_iid_scan.py in the sandbox on the PR tree and on main — all pass. The slot-62 rewrite checks out against §3.5a, the prior-art record and the shim's own comment and forwarding. Two text fixes before merge: first, "the seven CreateCommittedResource arguments" lives in d3d12_command_objects.md §3.5a (the FSR-DLL measurement), not §4.2, whose slot-76 line only says "Xbox texture creation" — the citation as written does not back the claim; second, "slot 76 has no call site in this executable (the global 0x260 sites are bool predicates with no receiver)" names no tool or log, unlike its neighbours (prior art, #6954) — could you say how it was measured (a disassembly listing over the executable, as §2.1 does for the package DLLs), or mark it as a hypothesis/Open? I could not verify the static here (no game files) and could not read the PR description (no GitHub access); nothing in the repo contradicts it. AI-assisted review.

Recommendation: Fix first

**@⁠PierreEbele** on GitHub · 2026-11-25 14:27 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1007#issuecomment-7165306573) Reviewed 5d6808a (docs-only, one table cell): ran the docs-consistency suite and `tests/test_d3d12_iid_scan.py` in the sandbox on the PR tree and on main — all pass. The slot-62 rewrite checks out against §3.5a, the prior-art record and the shim's own comment and forwarding. Two text fixes before merge: first, "the seven `CreateCommittedResource` arguments" lives in `d3d12_command_objects.md` §3.5a (the FSR-DLL measurement), not §4.2, whose slot-76 line only says "Xbox texture creation" — the citation as written does not back the claim; second, "slot 76 has no call site in this executable (the global `0x260` sites are `bool` predicates with no receiver)" names no tool or log, unlike its neighbours (prior art, #6954) — could you say how it was measured (a disassembly listing over the executable, as §2.1 does for the package DLLs), or mark it as a hypothesis/Open? I could not verify the static here (no game files) and could not read the PR description (no GitHub access); nothing in the repo contradicts it. AI-assisted review. **Recommendation:** Fix first
Author
Owner

@⁠robot00f on GitHub · 2026-11-25 19:07 UTC · original

Rebased onto main (9f9a7c5f) and fixed both points from @⁠PierreEbele (in docs/d3d12_vulkan.md §4 and the PR description):

  1. Citation: Updated d3d12_command_objects.md §4.2 -> §3.5a (the FSR-DLL measurement recording the seven CreateCommittedResource arguments on slot 76).
  2. Measurement provenance: Named the static pass explicitly in the table cell — Capstone disassembly over .text (0x140001000–0x145f40966) following the device globals (0x148759D00 and 0x1475DF000–0x1475DF048) from renderer init 0x142478440, verifying slot 62 at 0x14247FE66 and confirming that none of the 57 indirect call [reg+0x260] sites in .text loads a device global.

Re-ran check_no_game_data.py, test_d3d12_iid_scan.py, and the docs test suite (all pass).

AI-assisted: yes (Antigravity, Gemini 4 Carbon)

**@⁠robot00f** on GitHub · 2026-11-25 19:07 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1007#issuecomment-7171853039) Rebased onto `main` (`9f9a7c5f`) and fixed both points from @⁠PierreEbele (in `docs/d3d12_vulkan.md` §4 and the PR description): 1. **Citation:** Updated `d3d12_command_objects.md §4.2` -> `§3.5a` (the FSR-DLL measurement recording the seven `CreateCommittedResource` arguments on slot 76). 2. **Measurement provenance:** Named the static pass explicitly in the table cell — Capstone disassembly over `.text` (`0x140001000`–`0x145f40966`) following the device globals (`0x148759D00` and `0x1475DF000`–`0x1475DF048`) from renderer init `0x142478440`, verifying slot 62 at `0x14247FE66` and confirming that none of the 57 indirect `call [reg+0x260]` sites in `.text` loads a device global. Re-ran `check_no_game_data.py`, `test_d3d12_iid_scan.py`, and the docs test suite (all pass). AI-assisted: yes (Antigravity, Gemini 4 Carbon)
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1007/head:github-bot/gh-1007'
git switch 'github-bot/gh-1007'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1007'
git switch 'github-bot/gh-1007'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1007'
git switch 'github-bot/gh-1007'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1007'
git switch 'main'
git merge --squash 'github-bot/gh-1007'
git switch 'main'
git merge --ff-only 'github-bot/gh-1007'
git switch 'main'
git merge 'github-bot/gh-1007'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.