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) |
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)