[PR #1056] docs: align the other pages with the measured CreateDevice block size and slot 62/76 (D3D12-OTHER-PAGES-CONSISTENCY) #1093

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

📋 Pull Request Information

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

Base: main ← Head: docs/d3d12-other-pages-consistency


📝 Commits (1)

  • 42b6b66 docs: align the other pages with the measured CreateDevice block size and slot 62/76 (D3D12-OTHER-PAGES-CONSISTENCY)

📊 Changes

2 files changed (+5 additions, -3 deletions)

View changed files

📝 docs/d3d12_command_objects.md (+3 -1)
📝 docs/d3d12_xs_surface.md (+2 -2)

📄 Description

Claimed in the coordination issue as: D3D12-OTHER-PAGES-CONSISTENCY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7139160368)

Depends on: #1010 (the block size), #1007 (slot 62/76). Neither file here is touched by those, so all three merge independently.

What and why

Two other pages carry the same two facts in their old form, and leaving them makes the docs contradict each other once #1007 and #1010 are in:

  • d3d12_xs_surface.md calls the D3D12XboxCreateDevice block "24-word" in the §7.1 row and in the §9 row #1. Measured at the single retail call site it is 0x50 bytes (20 dwords): the frame is sub rsp,0x228, the block sits at rsp+0x1B0 and +0x200 is the saved xmm6, so 24 words (0x60) would overlap the save. The rows now say 0x50 bytes and name the two dwords at 0x48/0x4C as the unnamed ones (the public field list ends at 0x44, and both are zero).
  • d3d12_command_objects.md §4.2 repeats "slot 62 is called as CreateComputePipelineState". In the retail executable the slot 62 site (0x14247FE66) passes five parameters, (desc, 0, 0, &riid, &out); the three-argument PC method drops the two extra words. The same sentence is also the one place that could read as "slot 76 is unused": it is not, the package DLLs call it, so the bullet now says the executable is the one with no slot 76 site.

Docs only, three sentences and two row labels.

Tested

  • Static disassembly of the call site and its frame; check_no_game_data.py on both files -> exit 0.

GPUs tested: n/a

AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash)

Checklist

  • Based on current main and merges cleanly; the two files are untouched by #1007/#1010.
  • One topic (the earlier two measurements reflected in the pages that quote them).
  • 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/1056 **Author:** [@robot00f](https://github.com/robot00f) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/d3d12-other-pages-consistency` --- ### 📝 Commits (1) - [`42b6b66`](https://github.com/ubiquitarianism/leonida/commit/42b6b66ab260394c6eb483e778a9cf8deceff8b0) docs: align the other pages with the measured CreateDevice block size and slot 62/76 (D3D12-OTHER-PAGES-CONSISTENCY) ### 📊 Changes **2 files changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_command_objects.md` (+3 -1) 📝 `docs/d3d12_xs_surface.md` (+2 -2) </details> ### 📄 Description Claimed in the coordination issue as: D3D12-OTHER-PAGES-CONSISTENCY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7139160368) Depends on: #1010 (the block size), #1007 (slot 62/76). Neither file here is touched by those, so all three merge independently. ### What and why Two other pages carry the same two facts in their old form, and leaving them makes the docs contradict each other once #1007 and #1010 are in: - `d3d12_xs_surface.md` calls the `D3D12XboxCreateDevice` block "24-word" in the §7.1 row and in the §9 row #1. Measured at the single retail call site it is **0x50 bytes (20 dwords)**: the frame is `sub rsp,0x228`, the block sits at `rsp+0x1B0` and `+0x200` is the saved `xmm6`, so 24 words (0x60) would overlap the save. The rows now say 0x50 bytes and name the two dwords at `0x48`/`0x4C` as the unnamed ones (the public field list ends at `0x44`, and both are zero). - `d3d12_command_objects.md` §4.2 repeats "slot 62 is called as `CreateComputePipelineState`". In the retail executable the slot 62 site (`0x14247FE66`) passes five parameters, `(desc, 0, 0, &riid, &out)`; the three-argument PC method drops the two extra words. The same sentence is also the one place that could read as "slot 76 is unused": it is not, the package DLLs call it, so the bullet now says the *executable* is the one with no slot 76 site. Docs only, three sentences and two row labels. ### Tested - Static disassembly of the call site and its frame; `check_no_game_data.py` on both files -> exit 0. GPUs tested: n/a AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash) ### Checklist - [x] Based on current `main` and merges cleanly; the two files are untouched by #1007/#1010. - [x] One topic (the earlier two measurements reflected in the pages that quote them). - [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#1093
No description provided.