Repository navigation
Conversation
…e PC vtable refuse with E_NOTIMPL The retail title calls device slot 133, past the 128-entry table; the call read an empty entry and jumped to 0. Every slot beyond the PC device's vtable now reaches the generic thunk. Mock test covers slot 133. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested 4b76715 on NVIDIA GeForce RTX 5090, driver 617.42, Windows 11 (26200), MSVC 2022 RelWithDebInfo: pass.
AI-assisted (Claude Code). |
|
Tested
AI-assisted, outcomes only. Generated by Claude Code |
|
Tested 4b76715 on NVIDIA GeForce RTX 3060 (driver 617.14), Windows 11 (26300), MSVC 19.44.35229 (v143) + Ninja, RelWithDebInfo: pass.
AI-assisted (Claude Code). |
|
Tested
|
|
Tested Setup: RTX 4070 (driver 621.01), Windows 11 Pro 26300, MSVC (VS 18) RelWithDebInfo with Ninja, Vulkan SDK 1.4.363.0. The PR head was merged alone into main 8575d36 and AI-assisted review (Claude Code). How this compares with the other boot-chain PRs: #7333 (comment) |
|
Retail on AMD (own 1.0.2.1 copy, Windows 11, RX 9070 / AMD 26.10.1, Ryzen 9 9900X, AI-assisted (Claude Code). |
…he title's own pages Xbox device slot 133 is (va, desc, state, clear, riid, out): the title places a buffer at the VA of a physical-page range it has just mapped (docs/retail_boot_chain.md 3.4, ItsNotRexed#6915). The proxy now hands it to a handler the Vulkan layer registers (set_placed_at_va_handler), which imports [va, va + width) with VK_EXT_external_memory_host and binds a VkBuffer to it: the CPU's writes there are the GPU's reads with no copy, and the resource's console VA is the title's VA, so views and immediate writes the title names by that VA resolve to it through the buffer VA index. The Xbox flag bits above the PC ones are dropped and the layout made ROW_MAJOR, as slot 76 does; textures are E_NOTIMPL, a misaligned VA E_INVALIDARG, and with no handler (a PC device) the slot refuses with E_NOTIMPL as ItsNotRexed#6953's table does. Not decided here: a shader that adds heap_base to the title's VA (its own V#s) does not reach these pages; that needs the single address space of docs/d3d12_vulkan.md 3.3. d3d12_existing_heap_test: on a VirtualAlloc range and on a view of a pagefile-backed section (the form xmem's physical pages take), the buffer's GPU VA is the address and a GPU copy to a READBACK buffer reads a pattern the CPU wrote after creation; Vulkan validation clean on an RTX 4090. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Validation signal on main 9f53c50 + #7218 (Windows 11 26200, RTX 3070 Ti, Vulkan): both merged cleanly (this PR's kMaxSlots=192 hunk was already carried by #7218, so it auto-resolved). device_proxy_test 99 PASS / 0 FAIL, loader_test 88 ok / 0 failed, xs_proxy_mock_test PASS including the 133-no-handler case (E_NOTIMPL, no vtable call) and the handler mask/layout checks. The live boot that previously executed address 0 at slot 133 now gets a clean result. Good to carry. |
|
Tested Merged onto Traces stay local; no addresses or game data here. AI-assisted (Claude Code). |
…s slot 133) for the RT-5 boot
|
Tested on RTX 5090, 621.24, Windows 11: pass, and with the retail image it is the difference between a silent crash and a named slot.
One addition worth taking, three lines in EXPECT(hr_of(raw(device, 133, 0, 0, 0, 0)) == E_NOTIMPL);
EXPECT(xs::device_slot_hits(133) == 1);That is the check that fails if the table shrinks back under the slot, so the fix is pinned by a test rather than by the comment. Verified green here with it applied. |
Claimed in the coordination issue as: #6750 (comment) (item 1, from the RT-5 boot measurement in #6915)
What and why
The retail executable calls Xbox device slot 133. The
d3d12_xsdevice proxy's vtable had 128 entries, so that call read past the table and jumped to address 0 (an access violation atrip 0) instead of reaching the generic thunk that refuses unknown slots.kMaxSlotsis now 192, with astatic_assertthat it covers 133. Every slot past the PC device's vtable is now refused withE_NOTIMPLand logged once, as the file already intends.The queue, fence and allocator proxies (
kQueueSlots,kFenceSlots,kAllocatorSlots) and the 11-slot heap proxy have the same fixed-size shape. Their tables refuse slots past the real object's count, but a call past the table itself would still go through an empty entry. I haven't seen the title do that yet, so they're left as they are.Tested
xs_proxy_mock_testnow calls device slot 133 through the proxy vtable and expectsE_NOTIMPL.ctest -R xs: 4/4 pass (xs_proxy_mock,_no_reserve,_no_protect,_no_handler). MSVC 2022 RelWithDebInfo, Windows 11, RTX 4090 (driver 617.42).gta6rt --run(with the PRs listed in docs: the retail boot chain, what stops gta6rt --run in order (RT-5 measurement) #6915), the title gets past this call.AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (n/a: runtime only)🤖 Generated with Claude Code