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

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

@⁠robot00f on GitHub · 2026-11-24 17:25 UTC · original
robot00f:docs/d3d12-other-pages-consistency → main · +5 −3 · 2 files · 1 commits · open

Claimed in the coordination issue as: D3D12-OTHER-PAGES-CONSISTENCY (#14)

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.)
**@⁠robot00f** on GitHub · 2026-11-24 17:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1056) `robot00f:docs/d3d12-other-pages-consistency` → `main` · +5 −3 · 2 files · 1 commits · open Claimed in the coordination issue as: D3D12-OTHER-PAGES-CONSISTENCY (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) 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.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:35:42 +00:00
Author
Owner

@⁠KernelSmoker on GitHub · 2026-11-24 17:34 UTC · original · approved these changes

Reviewed the two edited pages and checked their consistency against the cited slot and block-size source PRs. The updated wording distinguishes the measured retail executable call site from the package DLL callers and identifies the 0x50-byte block without extending the published field list beyond the evidence described. Validation on head 58d77ee77b985c3a4020fa127348047cbee98992: docs link checks 16/16; repeated-line checks 2/2; no-game-data scan on both edited files passed; git diff --check passed. The source PRs #1007 and #1010 remain open, so this review assesses this PR's stated measurements and cross-page consistency, not upstream merge of those source changes.

**@⁠KernelSmoker** on GitHub · 2026-11-24 17:34 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1056#pullrequestreview-6044276640) · **approved these changes** Reviewed the two edited pages and checked their consistency against the cited slot and block-size source PRs. The updated wording distinguishes the measured retail executable call site from the package DLL callers and identifies the 0x50-byte block without extending the published field list beyond the evidence described. Validation on head 58d77ee77b985c3a4020fa127348047cbee98992: docs link checks 16/16; repeated-line checks 2/2; no-game-data scan on both edited files passed; git diff --check passed. The source PRs #1007 and #1010 remain open, so this review assesses this PR's stated measurements and cross-page consistency, not upstream merge of those source changes.
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/1056/head:github-bot/gh-1056'
git switch 'github-bot/gh-1056'

Merge

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