Skip to content

docs: the retail title's D3D12ConsCreateDevice parameter block (Q1) - #8228

Open
EitaPreulaJhol wants to merge 1 commit into
ItsNotRexed:mainfrom
EitaPreulaJhol:docs/q1-cons-create-device-params
Open

EitaPreulaJhol wants to merge 1 commit into
ItsNotRexed:mainfrom
EitaPreulaJhol:docs/q1-cons-create-device-params

Conversation

@EitaPreulaJhol

@EitaPreulaJhol EitaPreulaJhol commented Nov 23, 2026 •

Copy link
Copy Markdown

Q1 in docs/boot.md: the 24-word D3D12XboxCreateDevice params. Static read of the 1.0.2.1 executable's only call site; not run.

Rebased on main 867d922f0, which added the public field layout in docs/d3d12_xs_surface.md §7.1. The values now map to those names:

  • null adapter, IID_ID3D12Device11, parameter block pointer;
  • Version 0x20004 at +0x00, GraphicsCommandQueueRingSizeBytes 0x100000 (1 MiB) at +0x08, DisableDXR 1 at +0x28, CreateDeviceFlags 0x20 at +0x3C; the other named fields are zero;
  • the first 0x50 bytes are initialized; the runtime logs 24 words, so words 20 to 23 are past the part the title writes;
  • the 1 at DisableDXR is noted as unresolved against the title's later XboxBvhBuilder use.

Values and offsets only, no game data. Docs: docs/xbox_d3d12_xs.md §5.1 and the Q1 row of docs/d3d12_xs_surface.md.

Claim: #7694 (comment)
Depends on: none

Tested:

  • python3 -m unittest discover -s tests -p test_docs_links.py — the two failures (docs/dev-tools.md, docs/gpu_test_results.md) are on main too; neither touches these files.
  • python3 -I scripts/check_no_game_data.py docs/xbox_d3d12_xs.md docs/d3d12_xs_surface.md — clean.

AI-assisted.

@ihymonte ihymonte left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed ec5bbf4 merged with main dde82f2 on macOS (Apple Silicon arm64), Python 3.12.16 (docs read + checks, no game files): pass

  • Verified offset/byte math in docs/xbox_d3d12_xs.md (+0x00..+0x4F = 0x50 bytes = 20 dwords, 0x20004 = bits 2 & 17, 0x100000 = 1 MiB, 0x20 = 32), cross-checked against runtime/shims/d3d12_xs.cpp:124-214 and d3d12_xs_device.cpp, and confirmed the relative link in docs/d3d12_xs_surface.md:582 resolves.
  • scripts/check_no_game_data.py and git diff --check: clean. 9/11 tests/test_docs_*.py pass (the 2 failures in test_docs_cli_flags.py and test_docs_links.py are pre-existing on main).
  • Cross-PR note: open PR #7250 changes d3d12_xs.cpp from logging 24 words to 20 words (0x50 bytes); if #7250 merges first, the "logs 24 words" / 24-word params wording here will need a quick update.

AI-assisted (Antigravity).

A static read of the 1.0.2.1 title's only D3D12XboxCreateDevice call site: the first 0x50 bytes of the parameter block, the initialized values, ID3D12Device11, and the four words the runtime's 24-word log reads past the initialized part. Values only; no game data and no run.
@EitaPreulaJhol
EitaPreulaJhol force-pushed the docs/q1-cons-create-device-params branch from ec5bbf4 to 3f05a5e Compare November 23, 2026 19:00
@EitaPreulaJhol

Copy link
Copy Markdown
Author

Force-push note (ec5bbf428 -> 3f05a5e5a), after GitHub reported conflicts:

  • Rebased onto main 867d922f0.
  • One conflict, in the Q1 row of docs/d3d12_xs_surface.md, against the public field table docs: public D3D12.X presentation/device slots and x64 layouts #6522 added in §7.1. Resolved by folding the measured values into that layout instead of keeping a separate offset list.
  • That corrected the finding: +0x00 is Version (0x20004), not a flags word; +0x08 is GraphicsCommandQueueRingSizeBytes (1 MiB); +0x3C is CreateDeviceFlags (0x20); DisableDXR at +0x28 is 1, recorded as unresolved against the title's later XboxBvhBuilder use.
  • docs/xbox_d3d12_xs.md §5.1 now uses the public field names, and the PR body was rewritten to match. No new files, no game data.

Tests unchanged: the two test_docs_links.py failures (docs/dev-tools.md, docs/gpu_test_results.md) are present on main; check_no_game_data.py on both files is clean.

@YordiLorenzo

Copy link
Copy Markdown

Tested 3f05a5e on Linux, Python 3.14.4: pass (docs read, no game copy)

  • python -I tests/test_docs_*.py, 11 files: 8 OK. test_docs_cli_flags, test_docs_design_rows and test_docs_links fail on README.md, docs/dev-tools.md and docs/embedded_shaders.md only, the same on main.
  • python -I scripts/check_no_game_data.py on both pages: clean
  • The 15 offsets in the new table match the field list in d3d12_xs_surface.md §7.1, and 0x50 bytes is words 0 to 19, so "words 20 to 23 are past it" holds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants