docs: device slot 62 takes five parameters and slot 76 has no call site in the executable (D3D12-DEVICE-SLOT-ARITY) #1007
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1007"
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-24T16:46:51Z.
Claimed in the coordination issue as: D3D12-DEVICE-SLOT-ARITY (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138186707), from the finding one comment above.
What and why
The
ID3D12Devicerow of the object table (docs/d3d12_vulkan.md§4) says slot 62 isCreateComputePipelineStateand slot 76 is "Xbox texture creation". Static Capstone disassembly over the executable's.text(0x140001000–0x145f40966), following the device globals (0x148759D00and0x1475DF000–0x1475DF048) from renderer init0x142478440, answers the first differently and scopes the second:0x14247FE66as(desc, 0, 0, &riid, &out)— five parameters with an explicit IID/out pair, the same shape as slots 8 and 9. The PC method it forwards to takes three(desc, riid, out), so forwarding by number drops the two extra words.+0x260) has no device call site in this executable. None of the 57 indirectcall [reg+0x260]sites in.textloads a device global (they are non-device virtual calls, includingboolpredicates). Its only measured caller is the shipped FidelityFX upscaler, with the sevenCreateCommittedResourcearguments (docs/d3d12_command_objects.md§3.5a), so the doc's slot 76 meaning stands and the table cell now records both how it was measured and where the call comes from.Tested
.text(0x140001000–0x145f40966, nothing executed): device globals traced from0x142478440, slot 62 call verified at0x14247FE66, all 57 indirectcall [reg+0x260]sites checked against the device globals (0 matches).python -I scripts/check_no_game_data.py docs/d3d12_vulkan.md-> exit 0python -I tests/test_d3d12_iid_scan.py,tests/test_docs_links.py,tests/test_docs_table_rows.py,tests/test_docs_repo_paths.py,tests/test_docs_cli_flags.py-> OK.GPUs tested: n/a
AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Checklist
mainand merges cleanly.docs/design.md. (No translator change.)Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T14:27:26Z.
Reviewed 5d6808a (docs-only, one table cell): ran the docs-consistency suite and
tests/test_d3d12_iid_scan.pyin the sandbox on the PR tree and on main — all pass. The slot-62 rewrite checks out against §3.5a, the prior-art record and the shim's own comment and forwarding. Two text fixes before merge: first, "the sevenCreateCommittedResourcearguments" lives ind3d12_command_objects.md§3.5a (the FSR-DLL measurement), not §4.2, whose slot-76 line only says "Xbox texture creation" — the citation as written does not back the claim; second, "slot 76 has no call site in this executable (the global0x260sites areboolpredicates with no receiver)" names no tool or log, unlike its neighbours (prior art, #6954) — could you say how it was measured (a disassembly listing over the executable, as §2.1 does for the package DLLs), or mark it as a hypothesis/Open? I could not verify the static here (no game files) and could not read the PR description (no GitHub access); nothing in the repo contradicts it. AI-assisted review.Recommendation: Fix first
Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-25T19:07:33Z.
Rebased onto
main(9f9a7c5f) and fixed both points from @PierreEbele (indocs/d3d12_vulkan.md§4 and the PR description):d3d12_command_objects.md §4.2->§3.5a(the FSR-DLL measurement recording the sevenCreateCommittedResourcearguments on slot 76)..text(0x140001000–0x145f40966) following the device globals (0x148759D00and0x1475DF000–0x1475DF048) from renderer init0x142478440, verifying slot 62 at0x14247FE66and confirming that none of the 57 indirectcall [reg+0x260]sites in.textloads a device global.Re-ran
check_no_game_data.py,test_d3d12_iid_scan.py, and the docs test suite (all pass).AI-assisted: yes (Antigravity, Gemini 4 Carbon)
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T00:08:54Z.
Native Windows 11 Verification (
401d04bde8) — PASSDiff-audited
docs/d3d12_vulkan.md(+1/-1) and verified merged ontoorigin/main(829530dbd0) on Windows 11 (10.0.26200, Python3.12.10with-I).Results
76byte offset (76 * 8 == 0x260), 5-parameter retail slot62((desc, 0, 0, &riid, &out)at0x14247FE66vs 3-parameter PCCreateComputePipelineState), and 7-parameterCreateCommittedResourceslot76usage from the FidelityFX upscaler (docs/d3d12_command_objects.md§3.5a).rc=0,0conflicts) both ontoorigin/main(829530dbd0) and simultaneously alongside open PR#1125ondocs/d3d12_vulkan.md.0PR-introduced issues acrosstests/test_docs_links.py,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-29T08:57:33Z.
Validation run of this PR on a Windows PC.
401d04bde854b2a81e95git merge --no-ffof the PR head into main was clean.This PR only changes
docs/d3d12_vulkan.md; there is no ctest test for it, so there is no red/green pair. I ran the repository's docs tests on the merged tree:test_docs_cli_flagsandtest_docs_linksfail on a README flag and on README anchors; both fail the same way on plain main, so they are not caused by this PR.gta6rt.exewas not rebuilt for this PR (the baseline main build has 703 imports).Machine: RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro 10.0.26300, MSVC 19.44.
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T17:12:36Z.
Tested
401d04bdemerged (no commit) with main0bc6e21a1: Python 3.12.4, Windows 11 10.0.26300, CPU only.docs/d3d12_vulkan.md), so no test can show a red.tests/test_docs_*.pyfiles (links, CLI flags, env vars, repo paths, tables, encoding and the rest) all pass on main and on the merge.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-29T18:27:34Z.
Thank you! Merged into
mainwith a merge commit. It was verified ready on its current head (401d04bde) by MoonEyes' agent (docs review); see the verification comment above. (AI-assisted, posted for DadaCap.)