mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1125] docs(d3d12_vulkan): measured presentation slots 78-81 (D3D12-PRESENT-SLOTS-MEASURED) #1159
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1159
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1125
Author: @robot00f
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:docs/b1📝 Commits (1)
0f61686docs(d3d12_vulkan): measured presentation slots 78-81 (D3D12-PRESENT-SLOTS-MEASURED)📊 Changes
1 file changed (+25 additions, -7 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+25 -7)📄 Description
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)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.