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

Merged
robot00f merged 1 commit from upstream-pr/1007 into main 2026-11-29 18:27:32 +00:00
robot00f commented 2026-11-24 16:46:51 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-24T16:46:51Z.


Claimed in the coordination issue as: D3D12-DEVICE-SLOT-ARITY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138186707), 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.)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5476464106 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1007). Originally posted by [robot00f](https://github.com/robot00f) on 2026-11-24T16:46:51Z. --- Claimed in the coordination issue as: D3D12-DEVICE-SLOT-ARITY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138186707), 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.)
PierreEbele commented 2026-11-25 14:27:26 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T14:27:26Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7165306573 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1007#issuecomment-7165306573). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T14:27:26Z. --- 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
robot00f commented 2026-11-25 19:07:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-25T19:07:33Z.


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)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7171853039 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1007#issuecomment-7171853039). Originally posted by [robot00f](https://github.com/robot00f) on 2026-11-25T19:07:33Z. --- 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)
zmasi commented 2026-11-29 00:08:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T00:08:54Z.


Native Windows 11 Verification (401d04bde8) — PASS

Diff-audited docs/d3d12_vulkan.md (+1/-1) and verified merged onto origin/main (829530dbd0) on Windows 11 (10.0.26200, Python 3.12.10 with -I).

Results

  • Technical & Multi-PR Merge Check:
    • Verified device slot 76 byte offset (76 * 8 == 0x260), 5-parameter retail slot 62 ((desc, 0, 0, &riid, &out) at 0x14247FE66 vs 3-parameter PC CreateComputePipelineState), and 7-parameter CreateCommittedResource slot 76 usage from the FidelityFX upscaler (docs/d3d12_command_objects.md §3.5a).
    • Confirmed clean automatic merge (rc=0, 0 conflicts) both onto origin/main (829530dbd0) and simultaneously alongside open PR #1125 on docs/d3d12_vulkan.md.
  • Documentation & Policy Suites:
    • Verified 0 PR-introduced issues across tests/test_docs_links.py, tests/test_docs_adjacent_fenced_blocks.py, tests/test_docs_design_rows.py, tests/test_docs_encoding.py, tests/test_docs_env_vars.py, tests/test_docs_list_items.py, tests/test_docs_pr_template.py, tests/test_docs_python_deps.py, tests/test_docs_repeated_lines.py, tests/test_docs_repo_paths.py, tests/test_docs_table_ids.py, tests/test_docs_table_rows.py, tests/test_text_write_line_endings.py (3/3), and scripts/check_no_game_data.py.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247908811 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1007#issuecomment-7247908811). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T00:08:54Z. --- ### Native Windows 11 Verification (`401d04bde8`) — PASS Diff-audited `docs/d3d12_vulkan.md` (`+1/-1`) and verified merged onto `origin/main` (`829530dbd0`) on Windows 11 (`10.0.26200`, Python `3.12.10` with `-I`). #### Results - **Technical & Multi-PR Merge Check**: - Verified device slot `76` byte offset (`76 * 8 == 0x260`), 5-parameter retail slot `62` (`(desc, 0, 0, &riid, &out)` at `0x14247FE66` vs 3-parameter PC `CreateComputePipelineState`), and 7-parameter `CreateCommittedResource` slot `76` usage from the FidelityFX upscaler (`docs/d3d12_command_objects.md` §3.5a). - Confirmed clean automatic merge (`rc=0`, `0` conflicts) both onto `origin/main` (`829530dbd0`) and simultaneously alongside open PR `#1125` on `docs/d3d12_vulkan.md`. - **Documentation & Policy Suites**: - Verified **`0` PR-introduced issues** across `tests/test_docs_links.py`, `tests/test_docs_adjacent_fenced_blocks.py`, `tests/test_docs_design_rows.py`, `tests/test_docs_encoding.py`, `tests/test_docs_env_vars.py`, `tests/test_docs_list_items.py`, `tests/test_docs_pr_template.py`, `tests/test_docs_python_deps.py`, `tests/test_docs_repeated_lines.py`, `tests/test_docs_repo_paths.py`, `tests/test_docs_table_ids.py`, `tests/test_docs_table_rows.py`, `tests/test_text_write_line_endings.py` (`3/3`), and `scripts/check_no_game_data.py`. AI-assisted.
enlight3d commented 2026-11-29 08:57:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T08:57:33Z.


Validation run of this PR on a Windows PC.

  • PR head: 401d04bde8
  • main: 54b2a81e95
  • Tested merged: yes, git merge --no-ff of the PR head into main was clean.

This PR only changes docs/d3d12_vulkan.md; there is no ctest test for it, so there is no red/green pair. I ran the repository's docs tests on the merged tree:

git fetch origin pull/1007/head:pr-1007
git checkout --detach origin/main && git merge --no-edit --no-ff pr-1007
for f in tests/test_docs_*.py; do python -I $f; done
  • Result: 11 of 13 docs tests pass (adjacent_fenced_blocks, design_rows, encoding, env_vars, list_items, pr_template, python_deps, repeated_lines, repo_paths, table_ids, table_rows). test_docs_cli_flags and test_docs_links fail on a README flag and on README anchors; both fail the same way on plain main, so they are not caused by this PR.
  • Not checked: the call-site claims about the shipped executable (they need the game files, which this run does not use), so this run says nothing about whether they are accurate.
  • Link: no code changes, so gta6rt.exe was not rebuilt for this PR (the baseline main build has 703 imports).

Machine: RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro 10.0.26300, MSVC 19.44.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7253442273 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1007#issuecomment-7253442273). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T08:57:33Z. --- Validation run of this PR on a Windows PC. - PR head: 401d04bde8040a6fd111513b05f6ad3484e5affd - main: 54b2a81e95c470c953ddee6177fd6255cbaf041d - Tested merged: yes, `git merge --no-ff` of the PR head into main was clean. This PR only changes `docs/d3d12_vulkan.md`; there is no ctest test for it, so there is no red/green pair. I ran the repository's docs tests on the merged tree: ``` git fetch origin pull/1007/head:pr-1007 git checkout --detach origin/main && git merge --no-edit --no-ff pr-1007 for f in tests/test_docs_*.py; do python -I $f; done ``` - Result: 11 of 13 docs tests pass (adjacent_fenced_blocks, design_rows, encoding, env_vars, list_items, pr_template, python_deps, repeated_lines, repo_paths, table_ids, table_rows). `test_docs_cli_flags` and `test_docs_links` fail on a README flag and on README anchors; both fail the same way on plain main, so they are not caused by this PR. - Not checked: the call-site claims about the shipped executable (they need the game files, which this run does not use), so this run says nothing about whether they are accurate. - Link: no code changes, so `gta6rt.exe` was not rebuilt for this PR (the baseline main build has 703 imports). Machine: RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro 10.0.26300, MSVC 19.44.
TheGeogeo commented 2026-11-29 17:12:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T17:12:36Z.


Tested 401d04bde merged (no commit) with main 0bc6e21a1: Python 3.12.4, Windows 11 10.0.26300, CPU only.

  • The change is docs only (docs/d3d12_vulkan.md), so no test can show a red.
  • No regression: the 13 tests/test_docs_*.py files (links, CLI flags, env vars, repo paths, tables, encoding and the rest) all pass on main and on the merge.
  • No game data check passes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7259509989 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1007#issuecomment-7259509989). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T17:12:36Z. --- Tested 401d04bde merged (no commit) with main 0bc6e21a1: Python 3.12.4, Windows 11 10.0.26300, CPU only. - The change is docs only (`docs/d3d12_vulkan.md`), so no test can show a red. - No regression: the 13 `tests/test_docs_*.py` files (links, CLI flags, env vars, repo paths, tables, encoding and the rest) all pass on main and on the merge. - No game data check passes. AI-assisted (Claude Code).
DadaCap commented 2026-11-29 18:27:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-29T18:27:34Z.


Thank you! Merged into main with a merge commit. It was verified ready on its current head (401d04bde) by MoonEyes' agent (docs review); see the verification comment above. (AI-assisted, posted for DadaCap.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7260499045 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1007#issuecomment-7260499045). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-29T18:27:34Z. --- Thank you! Merged into `main` with a merge commit. It was verified ready on its current head (401d04bde) by MoonEyes' agent (docs review); see the verification comment above. (AI-assisted, posted for DadaCap.)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1007
No description provided.