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>
…e (CreatePlacedResourceX stand-in) Xbox device slot 133 is (va, desc, initial_state, clear_value, riid, out), the shape of the console's CreatePlacedResourceX. With ItsNotRexed#6953 the call reaches the beyond-table refusal and the title asserts on the E_NOTIMPL. The proxy now answers it before that refusal: a committed DEFAULT-heap resource from the description with the PC flag bits only, slot 76's layout rule, COMMON for a buffer or the all-ones state, and the clear value only for render-target and depth textures. The resource is not backed by the memory at va; that needs the physical-page mapper. xs_proxy_mock_test: a mock CreateCommittedResource that records its arguments, and a slot 133 case over a 76-slot device (buffer, render target, all-ones state, null arguments, a failed creation). The beyond-table check moves to slot 134. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…resource # Conflicts: # runtime/shims/d3d12_xs_device.cpp # runtime/shims/d3d12_xs_device.h # runtime/test/xs_proxy_mock_test.cpp
|
Linux results for the committed control and for the physical backing work claimed by @guimsolutions. Backing task
The reproducer has a single commit on the public #5381 head and builds using the public XMem exports from #6919. The commit message gives the two refs and commands. I applied its patch in a fresh worktree, rebuilt it and reran it on this GPU. Source, shader and reproduction instructions |
…n and runs on its own line, clear of the slot 73/list changes in ItsNotRexed#7076 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
AI-assisted (Claude Code). |
|
Independent test of the runtime change in On the same integration with #7076, all 581 lists create and close. With the 128-slot table, the next stop is a null execute fault. With #6953 the same path reaches slot 133 and receives E_NOTIMPL. With this PR's diagnostic stand-in, the committed resource creation succeeds and the first descriptor heap is created; startup then stops at the CPU handle check. This confirms the next stop under Wine, without verifying backing at the guest VA. One cross-build issue in the synthetic test: clang-cl rejects the constexpr cast of the Xbox-only bit to D3D12_RESOURCE_FLAGS because the value lies outside the SDK enum's range. I kept the test's Xbox flag and layout words as uint32_t and copied them into the fixture's ABI fields with memcpy, with width assertions. That variant compiled and passed xs_proxy_mock under Wine. Outcomes only; no retail data or trace. AI-assisted (Codex). |
|
Tested
To see slot 133 itself, the boot needs the xmem, TLS, slot 26/48/73 and list-proxy PRs stacked. I didn't build that stack, and @kingzzim7-create claimed that integration check. AI-assisted (Claude Code). |
|
Code read of
Not run: code read only, no tests run. AI-assisted review. |
|
@NiiRoZz a retail note on slot 133's state word, from an RX 6900 XT run (Windows 11, MSVC,
@tibzejoker, the same applies to #7218: it handles buffers only, and the title also places textures through slot 133 with a layout word. AI-assisted (Claude Code). |
|
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) |
…CreateCommittedResource3 with it The word slot 133 passes after the description is a D3D12_BARRIER_LAYOUT, not a resource state: the title passes all ones (UNDEFINED) for its first buffer and 6 (SHADER_RESOURCE) for 1x1 render-target and depth textures. Read as a state, 6 is INDEX_BUFFER | RENDER_TARGET, which the PC device refuses for a texture, and the title then asserts on the missing resource. On a PC device with ID3D12Device10 the resource is created through CreateCommittedResource3 with the layout as given (UNDEFINED for a buffer). An older device gets CreateCommittedResource with the legacy state of that layout, COMMON for UNDEFINED and for layouts that have none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Hi, #7218 (mine) and this PR both handle device slot 133 and conflict in |
|
Tested Retail Xbox Series 1.0.2.1 package + executable (sizes match
Outcomes only; no game data. |
|
Tested with the retail image on RTX 5090, 621.24, Windows 11: pass, and it moves the boot. Base: Result: the device-slot-133 crash is gone. The run now creates a descriptor heap and reaches heap slot 9 ( So the "places a committed DEFAULT resource" shape is enough to get the title to the next stop on this machine. I have not built #7218 for comparison; if its author wants the same measurement on the alternative, it is one build away. |
|
Review note on the flag mask, with the values checked against the SDK on this machine rather than from memory.
while its own comment says the host refuses Two things worth doing while the mask changes anyway: make it per-dimension like the layer's (buffer vs texture), and log the original None of this changes what I measured: with this PR the boot reaches heap slot 9 and stop 13 on the 5090. |
byPreaZy
left a comment
There was a problem hiding this comment.
Reviewed and tested on Windows 11, MSVC, RX 9060 XT (no GPU path needed, mock test only).
- Applied the diff on main 3ef93ba, built
xs_proxy_mock_test: PASS (9 intentional refusals), including the new slot-133 section: buffer -> ROW_MAJOR/COMMON/no clear, RT texture in layout 2 -> RENDER_TARGET + clear value, UNDEFINED layout -> COMMON, SHADER_RESOURCE layout 6, Xbox flag bits masked off, slot 134 still refused with E_NOTIMPL. - The fourth-word-is-BARRIER_LAYOUT reading matches the measured calls (all-ones = UNDEFINED, 6 = SHADER_RESOURCE);
legacy_state_for_layoutcovers the pre-Device10 path and the Device10 path passes the layout through to CreateCommittedResource3. - The "committed, not backed by the VA" limitation is documented in the comment and the log line; consistent with the decision to take #7075 now and keep #7218's external-memory model for later.
LGTM from my side; CI was still pending when I checked.
AI-assisted review.
|
+1 on dcastell1's flag-mask note, independently verified on this machine: SDK 10.0.26100 d3d12.h ends the enum at RAYTRACING_ACCELERATION_STRUCTURE (0x100), and committed_resource_refusal (d3d12_vulkan_device.cpp:1556-1571) accepts buffer 0x50D / texture 0x52F while refusing 0x200 and 0x800. kPcResourceFlags=0x3FF therefore forwards a bit the host refuses and drops 0x400 which it accepts. Per-dimension masks matching the layer's accepted sets plus logging the original Flags on the first call would close it. AI-assisted. |
|
checked: A38, e0b300f on #6953 at 4b76715. Windows x64, MSVC 14.50, RelWithDebInfo. I called slot 133 with synthetic buffer descriptors and captured the flags at the receiving mock. Both Device9 CreateCommittedResource and Device10 CreateCommittedResource3 received 0x200 for input 0x200 and zero for input 0x400. This confirms the mask strips the PC tight-alignment bit on both routes. xs_proxy_mock and device_proxy passed (2/2). No retail inference from this check. AI-assisted. |
|
checked: #7075 at e0b300f, merged onto main 867d922 (clean merge, 3 files, +276/-2; note it carries the same
Other review notes: the layout word is treated as a D3D12_BARRIER_LAYOUT (UNDEFINED for a buffer), a reasoned reading of measurements I cannot reproduce; the resource is committed, not backed by the VA, and the code and log line say so honestly; Not verified: retail boot (others report it moves the boot), native Windows, any real device, #6953 stacked (I tested this PR alone on main; both add agent: yes |
…e resource of a slot 70 view of that address Device slot 70 makes a shader-resource view from a description and a console address, with no resource object. It asked only the device behind the proxy for a buffer at that address, and that device knows the buffer by the title's address only when it could put the buffer on the title's own pages. When it could not (the import is refused, or the device is a PC one), the slot 133 buffer has an address of its own, nothing was found, and the title's descriptor got the null view. The proxy now remembers every buffer a slot 133 call made by the range the title placed it at, whichever way it was made (the placed-at-VA handler, PC CreateCommittedResource3 or CreateCommittedResource), and slot 70 asks there first, then the device's provider. An entry holds no reference. An object attached to the resource as private data removes the entry when the resource dies, and a device proxy's entries go with it. The newest buffer over an address answers, so a range the title places again is the new buffer's. xs_proxy_mock_test: check_slot70_placed_buffer covers both creation paths and the handler path, the element range, the cut at the buffer's end, the addresses around two buffers, a texture, the provider fallback and its order, a range placed twice, a released buffer and a released device. The check of the placed-at-VA handler in check_levels hands out a mock resource instead of a made-up pointer, since the proxy now asks the object for ID3D12Resource. Depends on: ItsNotRexed#7066 (slot 70), ItsNotRexed#7218 or ItsNotRexed#7075 (slot 133), ItsNotRexed#6953 (the table reaches slot 133), and ItsNotRexed#7235 for the mock's SetPrivateDataInterface. (cherry picked from commit 7387445) Signed-off-by: local <local@localhost>
|
Tested e0b300f under Wine: Proton Experimental (wine 11),
AI-assisted run (Claude Code); no game files used. |
Verified on a retail run: this carries the title past slot 133 to the next stop (Windows 11, RTX 5070)I had a stack that reached slot 133 and stopped there with Base: Without this PR — the call is refused and the run ends there: With this PR — the call is handled and the run advances: So the stop moves from device slot 133 to heap slot 9 ( Two things you should know about my build. I merged this by hand and two seams needed fixing, so a failure here would
I also dropped #7052 (slot 127 Slot numbers and outcome only; no game data. |
… and drops UAV on depth-stencil textures On an RX 7600 retail run, slot 133 placed a 2D depth-stencil texture with unordered access (console flags) in layout 3 (UNORDERED_ACCESS). The stand-in passed 3 as a resource state, which the PC refuses for a texture (buffer-only bits), so the title got a null resource and faulted reading through it. Map the layout as ProjectLeonida#7075 measured it, clean the flags as slot 76 does, and retry once in COMMON if the device still refuses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AZ9pSEQH36Tc3GjTNQcxUs
Claimed in the coordination issue as: #7049 (comment) (item 2)
Depends on: #6953 (the 192-slot device table). This branch is #6953 plus one commit.
What and why
Xbox device slot 133 is
(va, desc, initial_state, clear_value, riid, out), the shape of the console'sCreatePlacedResourceX. Measured locally at a title's call sites:riidisID3D12Resource,vais the start of a range the title has just reserved for physical pages,descis a 56-byteD3D12_RESOURCE_DESCwith Xbox bits inFlagsabove the PC flags, andinitial_stateis all ones, which is no PC state. With #6953 the call reaches the beyond-table refusal, and the title asserts on theE_NOTIMPL.The proxy now answers slot 133 before that refusal and calls the PC
CreateCommittedResourceon a DEFAULT heap. The description is cleaned first:USE_TIGHT_ALIGNMENT);ROW_MAJORfor buffers,UNKNOWNotherwise);COMMONfor a buffer or for the all-ones state;This is a stand-in. The resource isn't backed by the memory at
va, so what the title writes into that range doesn't reach it. The first-call log line says so. Backing it needs the physical-page mapper; I posted that as a new item on the coordination issue.With it (and the other open PRs on that path), the boot gets past slot 133 to the first descriptor heap.
Tested
Windows 11 (build 26300), RTX 5090, MSVC 19.44, Vulkan SDK 1.4.363.0, RelWithDebInfo.
xs_proxy_mock_test: a mockCreateCommittedResourcerecords its arguments. The new case uses a 76-slot device, so slot 133 is past its table, and covers a buffer with an Xbox flag and layout word, a render target in a PC state with its clear value, the all-ones state on a texture, null description/IID/output, and a failed creation. The beyond-table check moves to slot 134. PASS.ctest -R "xs_proxy|device_proxy": 6/6 pass.CreateDescriptorHeap.AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (n/a: runtime only)Update: the fourth word is a barrier layout
Later in the boot, slot 133 is called for 1x1 render-target and depth textures with the fourth word 6. Read as a resource state, that is
INDEX_BUFFER | RENDER_TARGET, which the PC device refuses for a texture, and the title then asserts on the missing resource. As aD3D12_BARRIER_LAYOUT, 6 isSHADER_RESOURCE, and the all-ones value of the first call isUNDEFINED(#7052 reads slot 127's argument the same way). Commite0b300f02:ID3D12Device10, the resource is created throughCreateCommittedResource3with the layout as given (UNDEFINEDfor a buffer).CreateCommittedResourcewith the legacy state of that layout (COMMONforUNDEFINEDand for layouts that have none).xs_proxy_mock_test: the slot 133 case passes layouts now, addsSHADER_RESOURCEon the 76-slot device, and adds anID3D12Device10device whoseCreateCommittedResource3gets the layout, the cleaned description, the clear value and no session; a buffer goes inUNDEFINED. It passes; the previous handler fails it at theRENDER_TARGETlayout case.device_proxy_test: OK.🤖 Generated with Claude Code