Repository navigation
Conversation
…ttedResource3 with Xbox descriptors, RT-5 stop 15) Slot 127 is past the PC device vtable and was refused with E_NOTIMPL. It has the argument list of ID3D12Device10::CreateCommittedResource3; the proxy now calls the PC device's with the Xbox layout word and flag bits cleaned as slot 76 does. Measured in ItsNotRexed#6982.
|
Tested 8d62204 on NVIDIA GeForce RTX 5090, driver 617.42, Windows 11 (26200), native MSVC 2022 RelWithDebInfo: pass.
AI-assisted (Claude Code). |
…nment, refuses null heap properties; tests pin heap flags, session and reference counts Review of ItsNotRexed#7052: dispatch and release through the ID3D12Device10 interface pointer (not the base device's vtable); keep every PC-valid resource flag bit, 0x400 included; null heap properties return E_POINTER; the test now passes non-zero heap flags and a protected session, checks the single release returns 0 for texture and buffer, and covers a distinct Device10 pointer.
|
Thanks for the review. Pushed 9ec9291 on top of the PR (new commit, no force). All five points are fixed, and each has a check that fails without the fix.
Run on a Windows-targeted build under Wine: xs_proxy_mock_test passes, and 6 of 6 mutants fail it (tight bit, heap check, base dispatch, heap flags, session, extra AddRef). Native MSVC, GPU and retail runs are not done. AI-assisted. |
|
@tedin7 a data point for slot 127 from a local retail boot run (a merge of current main with several open boot-chain PRs; native Windows, RTX 4080 SUPER):
I'm leaving slot 127 to this PR. |
|
@kapitche thanks, that's the measurement this PR needed. The argument list matches, and the first calls are the two 3840x2160 RGBA8 render-target/UAV textures. Your next stop (committed memory expected through |
|
Independent native Windows/MSVC validation of 9ec9291: 8/8 passed, 0 skipped, 0 failed. This checks the revision after the existing Windows report for 8d62204. Built the exact PR head in an isolated, unmodified checkout; no local merges or patches. Environment: Windows 11 build 26200, x64 MSVC 19.44.35230 (VS 2022 toolset 14.44.35207), Windows SDK 10.0.26100.0, CMake 4.4.5, Ninja, RelWithDebInfo. Machine GPU: RTX 3070 / NVIDIA 610.88. These checks use CPU mocks and WARP; hardware GPU execution and retail boot were not tested. No game files used. Commands: cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build runtime/build --target xs_proxy_mock_test device_proxy_test -j 6
ctest --test-dir runtime/build -C RelWithDebInfo -R '^(xs_proxy_mock.*|device_proxy.*)$' --output-on-failure --timeout 120
Claim: #7049 (comment) AI-assisted (OpenAI Codex). Outcomes from synthetic tests only. |
|
Tested
AI-assisted (Claude Code). |
|
Independent native Windows check at |
|
Tested 9ec9291 on AMD Radeon RX 9060 XT, 26.11.2, Windows 11: pass
AI-assisted: yes (automated PR testing). |
|
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) |
|
Integration-tested 9ec9291 on Wine 11.18, RX 7900 XT / RADV Mesa 26.2.3, clang-cl 23.1.6 + xwin SDK 10.0.26100, RelWithDebInfo: past the slot-127 E_NOTIMPL; resource creation succeeds, followed by a later title assertion. Added only this PR to the previous slot-70 integration: main 8575d36 + #6919 #4313 #6582 #4348 #6954 #7076 (older #2490 included) #6973 #6964 #7021 #7216 #6953 #7075 #7066, plus its documented local cache-only mask and combination choices. No #7235, #7240, #7110, #7078 or #7218. Combination notes: slot 127 and slot 133 retain their own handlers, constants and flag masks. One shared mock for PC CreateCommittedResource3 records into both PRs' test records and creates one resource; both sets of argument/reference/failure assertions remain. Seven proxy mock modes pass, explicitly exercising both slot-127 and slot-133 checks. The selected suite is 36/40, including run_tiny_frame passing. Four prior failures remain: native abort-default's exit-code expectation, missing-TMP TLS refusal, and the two Wine WARP device tests (D3D12CreateDevice E_INVALIDARG). Not a fully green suite or WARP validation. Two bounded runs of the same frozen build, display enabled: each init 0 / run 3. The second adds only --trace-d3d12 and produces 1,640 calls: 1,620 ok and 20 called (void), with no failed/unsupported/refused/partial outcome. CreateCommittedResource3 is ok three times: one in the earlier slot-133 sequence and two after the slot-127 handler. Each of the latter is followed by SRV/RTV/UAV calls, then the title breakpoint. Slot attribution is by order, since the per-call trace names the PC method rather than the console slot. Limits: the cause of that assertion is not identified. GetResourceAllocationInfo has no trace records, so its results remain unobserved; no allocation-hook log establishes hook use or descriptor remapping. The void view methods report called, not a success HRESULT. Slot 70 still uses the null-view fallback. No GPU visibility, draw or gameplay is established. Wine prints no backtrace for this breakpoint; the crash index marks it missing. The collaborating runner executed the tests; I checked frozen source, executable/PDB/DLL hashes, test output and both run records. Next is a separate #7235 allocation-hook A/B, not an attribution of the assertion by sequence alone. Raw traces remain local. AI-assisted. |
|
Windows 11 / RX 580 / MSVC 14.44 integration validation: all eight device/mock tests pass. In the local normal startup, slot 127 now creates the first two render-target resources and their SRV/RTV/UAV views through the Vulkan-backed Device10 path. The next stop is the allocation-hook accounting assertion described by #7235, which is being tested next. No debugger argument rewriting or assertion skipping; no rendered-frame claim and no game bytes, addresses or logs included. |
|
checked: #7052356e77e | with: AI-assisted (Claude Code). |
|
checked: This updates my older check of 9ec92918, which the cleanup block-0 entry currently cites. Thanks for adding the texture/buffer regression cases. I inspected the new commit's test delta and ran the combined tree in a fresh isolated worktree. Local-only merge revision: Commands: cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build runtime/build --target xs_proxy_mock_test device_proxy_test -j 6
ctest --test-dir runtime/build -C RelWithDebInfo -R '^(xs_proxy_mock.*|device_proxy.*)$' --output-on-failure --timeout 120
git diff HEAD^1 HEAD --check
python -I scripts/check_no_game_data.py runtime/shims/d3d12_xs_device.cpp runtime/shims/d3d12_xs_device.h runtime/test/xs_proxy_mock_test.cpp reports/codex-cleanup-7052/checked.mdBoth targets compiled and linked. All six xs_proxy_mock modes and both device_proxy modes passed. The mock's completion marker confirms the Device10/slot-127 test block was compiled and executed, including the added consecutive texture calls, invalid-buffer rejection control, and cleared-buffer-flags case. The two device_proxy tests explicitly selected WARP. Diff and no-game-data checks passed; tracked working-tree files remain unchanged after the local merge. Environment: Windows 11 25H2 build 26200.9457; x64 MSVC 19.44.35230 (VS 2022 toolset 14.44.35207), Windows SDK 10.0.26100.0; CMake 4.4.5, Ninja 1.13.2.git.kitware.jobserver-pipe-1, RelWithDebInfo; Python 3.12.5 for the scanner. Synthetic mocks and WARP only. The host RTX 3070 and its driver were not exercised. No game files/services, retail boot, physical GPU execution or full-runtime suite. Cleanup #8919 verification, coordination claim. Depends on: #7052 as the reviewed implementation; this composition adds no other unmerged PR. GitHub reports MERGEABLE; CI jobs were still queued when checked, so this is local test evidence, not a CI pass. No new PR or change to the author's branch. AI-assisted (OpenAI Codex). agent: yes |
|
Thanks @tupacfan04. Added in |
|
checked: #7052 | with: applied the diff on main 867d922, built xs_proxy_mock_test (MSVC, Ninja RelWithDebInfo) | on: Windows 11, RX 9060 XT | result: PASS (9 intentional refusals), incl. check_committed_resource3_x: texture desc -> PC layout UNKNOWN + flags masked to PC bits + tight alignment, buffer -> ROW_MAJOR, measured 0x40005 form twice, PC refusal propagates with null out, E_POINTER before any PC call, ID3D12Device10 alias honoured with correct refcount, 76-slot device -> E_NOTIMPL with no PC call Code read: the QI-for-ID3D12Device10 approach is COM-correct (the base pointer is not promised to share the derived vtable), the out-param is nulled on entry per COM_Outptr, the Xbox layout word and flag bits are stripped exactly like slot 76, and every other word (heap flags, clear value, session, castable list) passes through untouched. Slot 127 fits the current 128-entry table; no dependency on #6953. AI-assisted check. |
d3d12_xs: Xbox device slot 127 creates a committed resource through the PC CreateCommittedResource3 (retail boot chain stop 15) Preserve the per-slot layout from ItsNotRexed#7460 while integrating the slot 127 handler and regression tests. Fork integration. AI-assisted (Codex).
|
Tested 356e77e (merged onto main 867d922) on RTX 5070, NVIDIA 621.24, Windows 11 (build 26200), Vulkan validation layer on (
Ran the tests that belong to the test files this PR changes (ctest entries, or the test program directly when it is not registered), with no game files ( |
|
Independent Windows/MSVC check of head 356e77e in a temporary integration stack: 13/13 targeted synthetic tests passed, including slot-127 arguments, descriptor cleaning, errors, and a distinct Device10 interface pointer. With Vulkan in Windows Sandbox configured with networking disabled and guest network checks, dry-run and init succeeded. The retail run progressed beyond slot 127: two CreateCommittedResource3 calls returned success, followed by a breakpoint after 1,640 D3D12 events (1,620 ok, 20 called). This sequence is consistent with the separate work described in #7240, but its exact cause has not been independently proven. The #7078/#7110 console allocation sizing and #7240 allocation hooks are not in this run; it does not demonstrate correct rendering or retail memory coherence. |
…a committed resource through the PC CreateCommittedResource3 (retail boot chain stop 15) Squashed from ItsNotRexed#7052 by tedin7, head 9ec9291 (security scan PASS). Conflicts with the slot 25/26/48/70/133 and descriptor-handle PRs: the slot-127 handler sits after them; device_slot_overridden, the slot overview in d3d12_xs_device.h and the mock test's check list take the union.
…ource's memory through the title's XMem hook (retail boot chain stop 17) Squashed from ItsNotRexed#7235 by NiiRoZz, head f5dae9f (security scan PASS). Contains ItsNotRexed#7021 and ItsNotRexed#7052. registry.cpp stays on the SRWLOCK form adopted for ItsNotRexed#7021 here (this PR's copy of ItsNotRexed#7021 re-adds the function-local statics). The mock's slot 25 stays on ItsNotRexed#7078's description-based mock_allocation_info; this PR's mock_call case 25 (a fixed allocation_size) is dropped. Union of slot lists, check lists and the slot-18 null description as before.
Claimed in #6910 (comment)
@ItsNotRexed: an exe PR, as you asked.
What
Xbox device slot 127 on the
d3d12_xsdevice proxy now creates the committed resource. It has the argument list ofID3D12Device10::CreateCommittedResource3(heap properties, heap flags,D3D12_RESOURCE_DESC1, initial layout, clear value, protected session, castable format count and list, riid, out). The proxy calls the PC device's ownCreateCommittedResource3with the description cleaned the way slot 76 already does: the Xbox layout word inLayoutbecomesROW_MAJOR(buffers) orUNKNOWN, and the Xbox bits above the PC flags are dropped. Every other word goes through as the title passed it. The title's description is not written. A null description, IID or output isE_POINTER, the output is nulled on every failure, and a PC device withoutID3D12Device10getsE_NOTIMPL(logged once).Why
Stop 15 of the retail boot chain (#6982, measured by @Pipodi on the retail executable, section 3.7): slot 127 is past the PC device vtable, so it came back
E_NOTIMPLand the title asserted on the null resource. This clears stop 15 only. Slot 25 (stop 16) and the render-target allocation sizes (stop 17) are separate claims. Nothing here reads or quotes the executable. It touches only the slot-127 handler, its name and its "overridden" flag ind3d12_xs_device.cpp, and the header comment. The table is already 128 slots, so it does not depend on #6953 (that PR grows the table to 192; this one edits different places in the same file, which I did not rebase onto).Tested
Synthetic test in
xs_proxy_mock_test, through the Xbox device proxy's vtable with a mock PC device that answersID3D12Device10(79 slots), under Wine (clang-cl cross build):hr_of(raw10(device, 127, words)) == S_OK, the proxy logs "device slot 127 ... is beyond the PC device vtable (79 slots); returning E_NOTIMPL").xs_proxy_mock_test: PASS. The test checks the PC device gets the call once, the layout word (0x101) isUNKNOWNfor a texture andROW_MAJORfor a buffer, the flags 0x40005 become 0x5, the heap, clear value, castable list, initial layout (0xFFFFFFFF) and riid arrive unchanged, the title's own description is untouched, the PC device's failure comes back with a null object, null description/IID/output giveE_POINTERwithout a PC call, and a Device9 device givesE_NOTIMPLwithout a PC call.--fail-virtualalloc,--fail-virtualprotect,--fail-veh,--env-slots,--env-slots-invalid) all exit 0.AI-assisted: yes (Claude Code)