docs(d3d12_vulkan): measured presentation slots 78-81 (D3D12-PRESENT-SLOTS-MEASURED) #1125
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1125"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-24T18:56:05Z.
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140229785 (
D3D12-PRESENT-SLOTS-MEASURED)What
Measured the four device presentation slots of the GDKX ABI in
game_scarlett_master.exe, statically, and recorded itin
docs/d3d12_vulkan.md§7.1 (new Measured block with a per-site table) and in the three rows that still said"Open" (§4.9 rows "PresentX / present planes / frame events", "Device slots 48/73/78/79/80" and "Device slot 81 …",
plus §8.2 item 6).
Result: 78, 79, 80 and 81 are all really called, each from the frame/present code, each on the same device pointer
(the BSS global
0x148759D00, the same global the layer's known device calls use, e.g.CreateCommittedResourceatslot 27) and each at the arity the public HLE documents:
rcxomitted)0x270rdx=0,r8d=latency,r9d=2/3,[rsp+0x20]=00x278r8=offset/0,r9=0,[rsp+0x20]=00x280r8d=INFINITE,r9=0,[rsp+0x20]=flags 0/2,[rsp+0x28]=token out0x288rdx=token,r8d=0x11100 mask,r9=&count (6),[rsp+0x20]=&statsSo the env-var guesses in the proxy (
LEONIDA_XS_FRAME_INTERVAL_SLOT,_SCHEDULE_EVENT_SLOT,_WAIT_EVENT_SLOT,_FRAME_STATISTICS_SLOT) name the slots the game really calls, at these shapes. The statistic call even walks thereturned
FRAME_INTERVAL/FRAME_EVENTentries afterwards.Why
The rows and §7.1 listed the presentation slots as unknown while every other measured slot has a site table. This
closes the "which slots, what arity, which receiver" half; the plane/parameter struct layouts and the queue
PresentX/SuspendX/ResumeXslots stay Open (they are not device slots and are not in this set).Tested
python -I scripts/check_no_game_data.py docs/d3d12_vulkan.md→ 0python -I tests/test_docs_links.py→ OK (16 tests)python -I tests/test_docs_table_rows.py→ OK (2 tests)vt_callsindex plus a Ghidra/capstone cross-check); the exe was notrun. Ghidra MCP was not needed: capstone was enough for the receiver chains.
GPUs tested: n/a
AI-assisted: yes (OpenCode)
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T19:16:39Z.
Review: APPROVED
Reviewed and verified. Conclusively confirms that Xbox device presentation slots 78 (frame latency), 79 (schedule frame event), 80 (wait frame event), and 81 (frame statistics) are actively called by the game executable on device global
0x148759D00. Accurately documents their exact argument layouts, offsets, and receiver chains indocs/d3d12_vulkan.md §7.1. Clean-room compliant.Imported from ubiquitarianism/leonida. Originally posted by Deedlyy on 2026-11-24T20:15:25Z.
Recommendation: [MERGE]
Reasoning: Docs: records static measurements showing presentation slots 78-81 are all called from the frame/present path on the device global, and updates the rows that still said "Open". Documentation only, with per-site evidence. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with
main. Merge once the queued checks are green.Impact level: 2/10
Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-25T15:48:33Z.
Rebased onto
origin/mainto resolve the conflicts indocs/d3d12_vulkan.md(§4.9 and §8.2), keeping the new Xbox device/queue rows and runtime slot-81 behavior alongside the measured presentation-slot 78–81 updates. Verified withcheck_no_game_data.py,test_docs_links.py,test_docs_table_rows.py, and the remainingtest_docs_*.py/test_i18n_index.pychecks.AI-assisted: yes (Antigravity)
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T00:08:47Z.
Native Windows 11 Verification (
0f61686696) — PASSDiff-audited
docs/d3d12_vulkan.md(+25/-7) and verified merged ontoorigin/main(829530dbd0) on Windows 11 (10.0.26200, Python3.12.10with-I).Results
slot 78 -> 0x270,slot 79 -> 0x278,slot 80 -> 0x280,slot 81 -> 0x288— exactslot * 8x64 vtable offsets) and theirSetFrameIntervalX/ScheduleFrameEventX/WaitFrameEventX/GetFrameStatisticsXarities againstruntime/shims/d3d12_xs_device.cpp.rc=0,0conflicts) both ontoorigin/main(829530dbd0) and simultaneously alongside open PR#1007ondocs/d3d12_vulkan.md.0PR-introduced issues acrosstests/test_docs_links.py(including the new#71-what-this-confirms-corrects-and-narrowsanchor),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), andscripts/check_no_game_data.py.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T09:04:56Z.
RUN of #1125 (docs only: no ctest, no build, no red)
Heads: PR head
0f616866965a, main54b2a81e95c4. Tested as main + PR head (git merge --no-ff, local only): merged cleanly, no conflicts. The PR changes one file,docs/d3d12_vulkan.md; it has no ctest test, so there is no red and I built nothing (no source file changes, sogta6rt.exe's imports cannot change: no new imports vs main).Checks run from the worktree root, one process each (
python -I tests/<file>), on main and on main + PR: the 16 files matchingtests/test_docs_*.pyplustest_i18n_index.py,test_ctest_registration.pyandtest_text_write_line_endings.py; andpython -I scripts/check_no_game_data.py docs/d3d12_vulkan.md(exit 0).test_docs_table_rows.py,test_docs_table_ids.py,test_docs_design_rows.py,test_docs_repo_paths.py,test_docs_env_vars.py) and 2 failures that are already there on plain main and are not about this file:test_docs_links.py(a relative link ind3d12/README.md) andtest_docs_cli_flags.py(a fenced PowerShell command using a flag its script lacks).Machine: Windows 11 Pro 10.0.26300, CPython 3.13.12; the GPU was not used.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T19:44:52Z.
Tested
0f6168669merged (no commit) withmain0e8737f2a: Windows 11, Python 3.12.python -I tests/test_docs_*.pypasses on the merge.mainand does not force a rebase of #2566 (merge-tree against its current head).AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T21:12:37Z.
Merging. Head
0f6168669has red/green verdicts from reviewers other than the author (above), merges cleanly withmain255b6752c, does not force a rebase of #2566, and carries a claim ID. Remaining main CI reds (translator-testsmesh,semantic-testsf16) are pre-existing. Merged by MoonEyes.AI-assisted (Claude Code).