Commit Graph

15 Commits

Author SHA1 Message Date
42b6b66ab2 docs: align the other pages with the measured CreateDevice block size and slot 62/76 (D3D12-OTHER-PAGES-CONSISTENCY) 2026-11-25 19:11:02 -03:00
b9ad785e5f docs(d3d12_xs_surface): what device slot 108 is asked for (D3D12-SLOT108-QUERY)
The two device sites of slot 108 are one allocation-info call shape over a
56-byte D3D12_RESOURCE_DESC: the 16-byte return is {SizeInBytes, Alignment}
and the 24-byte 4th argument is D3D12_RESOURCE_ALLOCATION_INFO1-sized. Record
the struct offsets, the 0x1000 alignment request and its retry, the 0x105
layout word for 3D, and the 32-bit size assert, cross-referencing main's
GetResourceAllocationInfo2 route in d3d12_vulkan.md §3.1.
2026-11-25 16:03:42 -03:00
b6d6b70202 docs(d3d12_xs_surface): measured arity of device extension slots (D3D12-EXTENSION-SLOT-ARITY)
Adds section 5.2: per-slot receiver proof, register/stack shape and arity for
device slots 86, 101, 108, 132 and 133 (and offset +0x418 / 131), from the 243
raw call sites at those offsets. Cross-references d3d12_vulkan.md §3.1 and
retail_boot_chain.md §3.4 for slots 86, 101, 108 and 133; offset +0x418 (131)
has 0 device sites and stays open.
2026-11-25 16:03:38 -03:00
abc0bd8842 Merge pull request #758 from abnalstlll-byte/restore/old-10012-versioned-root-sig-deserializer
Merging.

**Why merged:** OLD-10012: d3d12_xs exports D3D12CreateVersionedRootSignatureDeserializer and ordinal #7, forwarding to the host with the Xbox RTS0 flags cleared on a copy (the existing copy_rts0_blob_clear_xbox_flags guard). d3d12_xs_surface.md is updated. SweatierKey verified an earlier head, and trigger337's redundant-checksum finding is fixed in this head, with a zero-hash test.

**Why it's good:** root_sig passes both plain and under validation.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 66d4f5aa3, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative of this batch (13 PRs) on main 0b45fdc21: the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The only failures are main's: d3d12_depth_resolve (pre-existing) and d3d12_close_parity (the #510 regression, fixed by #1286). All d3d12_* tests under validation show 0 VUIDs. git merge-tree against current main 6261ca916: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
2026-11-24 16:26:57 -05:00
245c959ea0 d3d12_xs: ask the host D3D12CreateDevice for feature level 11_0 (BL-2)
The host path of D3D12XboxCreateDevice asked the PC D3D12CreateDevice for
minimum feature level 12_0, which a comment called the least restrictive
floor. It is the other way round: the minimum refuses every adapter below
it, so a host that tops out at 11_x failed with E_INVALIDARG
(docs/boot_leads.md BL-2). rt::d3d12_xs::create_host_device asks for
kHostDeviceFloor = 11_0, the lowest level D3D12 creates a device at; the
device keeps its highest level, which FEATURE_LEVELS reports and the log
prints (max_feature_level).

xs_proxy_mock_test drives it with mock hosts that top out at 11_0, 11_1,
12_0, 12_1 and 12_2. Each one is created at 11_0, the device proxy's slot
13 reports the host's own top level, and the failure paths (no host
function, failing host, S_OK with no device) clear the output. With 12_0
as the floor the 11_x hosts fail. The Vulkan-backed device takes no feature
level and stays at 12_1 (no ray tracing tier, no sampler feedback).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 20:10:05 +05:00
a5bb4b9b8c feat: d3d12_xs exports D3D12CreateVersionedRootSignatureDeserializer, clearing the Xbox RTS0 flags
Upstream PR #8814
2026-11-24 16:31:56 +03:00
718e27ba6a docs: public D3D12.X presentation/device slots and x64 layouts (#6522)
Squash-merged after diff review of PR #6522
2026-11-23 12:54:03 -06:00
8501307cbd docs/d3d12_xs_surface.md: name swizzle_search.py with the other swizzle tools (#6523)
Squash-merged after diff review of PR #6523
2026-11-23 12:53:47 -06:00
07d04de54e docs/d3d12_xs_surface: drop the stale-doc limitation that names two pages never in the tree (#6721)
Squash-merged after diff review of PR #6721
2026-11-23 10:51:55 -06:00
35b4a8e00d d3d12_xs: D3D12ConfigureVirtualMemoryX returns S_OK (RT-5 first call) (#6792)
Squash-merged after diff review of PR #6792 - d3d12_xs: D3D12ConfigureVirtualMemoryX shim (first unimplemented call of the title)
2026-11-23 09:58:30 -06:00
e6c62de6af docs/tool: scope the unresolved IID evidence to local tables
Do not call a title trace the only source. The checker verifies that the local export table and CONSOLE_IIDS do not assign the four values; SCARAB's vendor-runtime observation stays attributed, and a QueryInterface trace is one possible future source.
2026-11-22 21:01:11 +00:00
9be4e17afa docs: correct console command-list IID status (D3D-369)
The 1.0.2.1 package has 16 DLLs and no D3D12 runtime DLL; gameos.xvd is encrypted with no plaintext D3D12 strings, and the executable that would call QueryInterface is absent. SCARAB's provenance note also says the runtime does not export ID3D12ConsComputeCommandList/6/8 or ID3D12ConsCopyCommandList6, so no export table can supply them. Correct the surface/export-contract rows and lock the negative in the checker and test. All four stay unknown until the title's QueryInterface is logged.
2026-11-22 20:44:56 +00:00
e3794131b6 docs/runtime: XDXR BATCHED_DESC2 and XDXR_STREAM_DESC layouts from XboxBvhBuilder.dll (open question 8)
Recovered from the package DLL's own reads (field accesses, element strides,
the standard-build and prebuild wrappers that construct a BATCHED_DESC2):
BATCHED_DESC2 is the public build desc, the postbuild count and pointer and
a 16-byte XDXR_STREAM_DESC (0x50 bytes); the stream desc is a size and a
pointer to 16-byte typed records, whose offsets, value types, defaults and
lookup rule are measured. The DLL rejects the offline-statistics postbuild
type for every build, so that layout is not in the package.

docs/xdxr.md has the evidence per field (RVAs only, nothing quoted from the
DLL). runtime/src/xdxr_descs.h defines the structs with static_asserts and
the DLL's stream lookup and flag defaults; xdxr_descs_test checks them and,
with a DXR d3d12.h, the public part against the SDK.
2026-11-22 03:23:37 +01:00
8542365e0d docs: record GDKX PresentX/frame-event presentation from public samples
Answers 8.2 question 6 partly: public MIT/zlib GDKX code (Xbox-GDK-Samples,
DirectXTK12 wiki, directxtk12modelviewer, SDL2) presents with PresentX and
frame events and no DXGI swapchain. Records the call sequence and argument
counts as fact, the game's behaviour as hypothesis, slots/layouts as unmeasured.
Updates 4.5, queue/swapchain mapping rows, PresentX row, M0/M7 and xs_surface 7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:36:23 +01:00
b406270b53 Docs: measured d3d12_xs surface from SCARAB
Records the 116-export contract (23 functions + 93 GUIDs), the 28 D3D12 IIDs and the 10 console-only IIDs from SCARAB, with per-item provenance and file:line references. The IID block ordinals 72-99 are derived from the alphabetical export order anchored by IID_ID3D12Debug @76. Includes a checker/test that re-verifies the 116-slot arithmetic and the 83 standard GUIDs against the Windows SDK.
2026-11-21 18:23:05 +00:00