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

Open
opened 2026-11-26 20:19:54 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1007
Author: @robot00f
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: docs/d3d12-device-slot-arity


📝 Commits (1)

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

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+1 -1)

📄 Description

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.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1007 **Author:** [@robot00f](https://github.com/robot00f) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/d3d12-device-slot-arity` --- ### 📝 Commits (1) - [`401d04b`](https://github.com/ubiquitarianism/leonida/commit/401d04bde8040a6fd111513b05f6ad3484e5affd) docs: device slot 62 takes five parameters and slot 76 has no call site in the executable (D3D12-DEVICE-SLOT-ARITY) ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+1 -1) </details> ### 📄 Description 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.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#1044
No description provided.