Repository navigation
Conversation
|
Tested on the retail boot: pass. Own 1.0.2.1 copy, Windows 11, RTX 4090 / 617.42,
I had read slot 61 as a raw view write because it ends in the same descriptor-finishing helper as slot 70. Your sampler reading fits the run better, so I've dropped my stand-in. AI-assisted (Claude Code). |
…tand-in) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent native Windows check at |
devnull34
left a comment
There was a problem hiding this comment.
Verified on Windows 11 (MSVC RelWithDebInfo):
- Built
xs_proxy_mock_testanddevice_proxy_testcleanly. xs_proxy_mock_test.exepassed: Xbox device slot 61 (CreateSamplerX) correctly forwards the description prefix and handle to PC slot 22 (CreateSampler), ignoring trailing console data and cleanly skipping null descriptions.device_proxy_test.exepassed with 0 failures across all 83 slots.- 8/8 CTest targets passed 100% (
device_proxy,device_proxy_trace,xs_proxy_mock*). - Whitespace clean (
git diff HEAD~1..HEAD --check).
|
Retail A/B on CachyOS / Wine 11.22, RTX 4070 (620.73.04). Before: slot 61 faults in the PC forwarder. With the route from |
|
For combining this route with #7021, here is a small cherry-pick with the handler change and a regression test. It applies after both PRs are present. Slot 61 calls the existing CPU descriptor-handle translator before calling the PC device. The mock checks that PC slot 22 receives the host heap start plus the original offset. I compared the same synthetic guest before and after this change on CachyOS, Wine 11.22 and Mesa lavapipe 26.3.1. With a three-entry sampler heap allocated by the guest hook, two different sampler descriptions both failed the byte-for-byte comparison with PC CreateSampler before the fix. Changing the filter/address mode left the host destination unchanged and modified the guest hook memory. After translating the destination, both descriptions matched their PC references, changing the description updated the host descriptor, and the adjacent descriptor and guest memory guards stayed intact (19/19 checks). The mock also fails on the destination before the change and passes afterwards. AI-assisted. |
|
Thanks @Stalkerino, that's the right next step, and the before/after on a guest-allocated sampler heap is convincing. Since it calls #7021's handle translator, I'd keep this PR independent of #7021 so either can land first, and bring your commit in right after both are on |
|
Independent native Windows 11 / MSVC 19.44.35230.0 / AMD Radeon RX 6700 XT (
AI-assisted (Gemini, Antigravity). |
e229944 to
8f756eb
Compare
|
Thanks @nullmarsh, a real regression and a good catch. The earlier runs used only the proxy tests. Fixed in
RTX 3060 (610.88): @jtrudeau1530, @Cresceda, @Zunraz: on a retail stack the title's calls come from its mapped image, so they still get |
|
checked: #7115 | with: merge of PR head onto main, then
AI-assisted. |
|
Re-tested AI-assisted (Claude Code), no game files. |
|
@mrp1no Rechecked the caller-classification fix in 8f756eb, answering your retail recheck request. The host regression is fixed here, and the guest sampler route still runs. Base: our frozen c3m diagnostic stack, plus only the follow-up delta from 2d16047 to 8f756eb; no rebase onto newer main. Same Arch Linux, Wine 11.18, RX 7900 XT / RADV Mesa 26.2.3, clang-cl 23.1.6 + xwin, library and offline sandbox. Existing #7021 handle translation remains in proxy_create_sampler_x. The sole new local test adaptation marks our hook-backed raw slot-61 call as guest and resets the classifier afterward; your no-classifier/guest/host checks remain intact. Host comparison, same environment/configuration, bounded d3d12_vulkan_device runs:
Guest comparison, one bounded run per checkpoint: slot 61 is followed by traced ID3D12Device::CreateSampler at call 1657, and another CreateSampler at 1660. There is no CreateMetaCommand trace. The full 2,261-call method/outcome sequence matches the control exactly (1,636 ok, 40 void/called, 585 unsupported). Init 0/run 5, same later execute access violation after slot 108; the later fault's cause remains unclassified. This confirms guest routing without claiming the title boots successfully. Build passes; selected suite 46/51, same five earlier failures. All eight proxy modes pass, including your caller-classification cases. Our guest-marked hook-backed handle test still fails when ONLY translate_cpu_handle is removed, and passes with it restored. This is synthetic translation evidence, separate from whether the retail sampler handle needed translation. Source/patch/exe/PDB/DLL hashes verified; raw traces stay local. Existing XG E_NOTIMPL fallback and slot-74 S_OK stand-in remain explicit diagnostic limitations. AI-assisted testing (Claude), review/reporting (Codex). |
|
Thanks @jtrudeau1530: host regression fixed and the title's sampler calls still classified as guest on a retail stack. That was the check this change needed. With @nullmarsh's re-run, |
|
checked: #71158f756eb | with: AI-assisted (Claude Code). |
|
checked: #71158f756eb | with: merged onto main@867d922f0 (fast-forward, 5 files, +96/-6), cmake -DLEONIDA_VULKAN_HEADERS_FETCH=ON, ctest -R "^(xs_proxy_mock|device_proxy)", check_no_game_data.py | on: Windows 11, MSVC 19.51.36263.0, AMD Radeon RX 9060 XT (26.11.2) | result: pass (8/8 ctest targets passed; agent: yes |
|
checked: #7115 | with: applied the diff on main 6312c05, built xs_proxy_mock_test (MSVC, Ninja RelWithDebInfo) | on: Windows 11, RX 9060 XT | result: PASS (9 intentional refusals), incl. the new slot-61 cases: host caller reaches PC slot 61, console caller reaches PC CreateSampler slot 22 with the same words, null desc skipped, override on/off Code read: the _ReturnAddress + mapped_image_base classification is sound (the vtable call site's return address sits inside the mapped game image for the title, outside for host callers), g_console_caller is atomic, slot 61 joins device_slot_overridden, and the host-caller fallback forwards verbatim like any other PC slot. The hypothesis (PC D3D12_SAMPLER_DESC prefix) is clearly labelled and matches stop 20's measurement. AI-assisted check. |
|
Integration note from a local stack of #7115 with #7021 and the other boot PRs, on the retail 1.0.2.1 boot. AI-assisted (Claude), checked by building and running.
self->real->CreateSampler(desc, translate_cpu_handle(self, D3D12_CPU_DESCRIPTOR_HANDLE{static_cast<SIZE_T>(dest)}));(the comment already says the handle is "#7021's translation"; this is just where it has to happen when both land). #7066's slot 70 has the same gap. With that, the title's slot 61 calls create samplers and the boot goes on to slots 74/86 and the FSR slot-67 programs: 2,262 D3D12 trace events, the remaining stops being outside this PR. Windows 11 26200, RTX 5060 (driver 32.0.16.2124), MSVC 14.44 RelWithDebInfo, |
…SamplerX, routed to the PC CreateSampler (RT-5 stop 20) Squashed from ItsNotRexed#7115 by mrp1no, head e229944 (security scan PASS). Conflicts: slot names, device_slot_overridden, the header overview and the mock test's section header take the union with the earlier slots. Reviewers noted the slot-61 destination handle is untranslated once ItsNotRexed#7021 is in; it now goes through ItsNotRexed#7021's translate_cpu_handle, and so does slot 70's destination (ItsNotRexed#7066 left a marked hook point for it).
…f type 105 is created as DISPATCH (device slot 41, RT-5 stop 19) Squashed from ItsNotRexed#7163 by mrp1no, head 084c8c6 (security scan PASS). Conflicts with ItsNotRexed#7115 (slot 61) and the earlier slots: both handlers, routing branches, mock cases, docs rows and test checks kept side by side; device_slot_overridden takes the union.
…t expectations) ItsNotRexed#7759 carries ItsNotRexed#7201's slot 86/101/108 handlers; its squash added them a second time next to ItsNotRexed#7201's copy (the 101/108 bodies are identical, and ItsNotRexed#7759's slot 86 keeps the PSO stream for slot 55), so ItsNotRexed#7201's copy is removed. xs_proxy_mock_test: the check_xbox_slots summary line merged for ItsNotRexed#7163 had its \n written as a line break; ItsNotRexed#7235's slot-127 hook check now expects no PC slot 25 call for a listed render target (the console-size port from ItsNotRexed#7240 sizes it, same 33,423,360 B); ItsNotRexed#7821's check_view_heap_cap releases the heaps it makes, since its CreateDescriptorHeap mock case is now ItsNotRexed#7021's, which makes a heap proxy holding the device. d3d12_vulkan_device_test: the meta-command checks run on the device behind the Xbox proxy, as ItsNotRexed#7125 does for CreateReservedResource2: proxy slot 61 is the title's CreateSamplerX (ItsNotRexed#7115).
|
Hardening note from a security read of
Findings come from a static, AI-assisted review of this PR's diff (nothing was executed); they were read by the account owner. This comment text is AI-generated. |
|
Independent temporary Windows/MSVC integration with descriptor-handle translation: 19 focused tests passed, including console-versus-host routing and a title-owned CPU descriptor handle translated before the sampler write. In an offline Windows Sandbox retail run the first slot-61 sampler call was routed, and execution proceeded to a later breakpoint. This is progression evidence only; the console descriptor layout and retail rendering correctness remain unverified. |
Claimed in the coordination issue: stop 20 of @KkelebekK's RT-5 finding (#6910 (comment)). Claim: #6910 (comment). Finder's go-ahead in #7049.
What and why
The retail title calls Xbox device slot 61 as
CreateSamplerX(desc, dest), once per sampler, after its descriptor heaps exist (@KkelebekK's measurement). The proxy's generic thunk forwarded it to the PC slot 61, which isCreateMetaCommand, so no sampler was ever written.Slot 61 now has its own handler, like 62 and 67:
D3D12_SAMPLER_DESCprefix and the handle to the PCCreateSampler(slot 22). Under Wine that got the title past this call;d3d12_xs_device.hand the §4.9 table indocs/d3d12_vulkan.mdget a row for the slot.Tested
Windows 11, MSVC RelWithDebInfo,
main2c72b0d2:xs_proxy_mock_test: PASS. The new check calls slot 61 and expects the mock's slot 22 with the same two words, never its slot 61; a null description reaches neither. Withmain'sd3d12_xs_device.cppit fails (line 763).ctest -R xs_proxy: 6/6.python -I tests/test_docs_links.pyandtests/test_docs_design_rows.py: OK.gta6rt --run, 2 runs: the same stop asmain, at the firstXMemVirtualAlloc. The boot doesn't reach slot 61 onmainyet, so this is the synthetic test plus @KkelebekK's Wine run of the same routing.No game data. AI-assisted (Claude Code).
🤖 Generated with Claude Code