Repository navigation
Conversation
… of reaching PC ShaderCacheControl (ItsNotRexed#7231) The retail title calls slot 74 once; the PC slot 74 reads the first pointer as kinds and returns E_INVALIDARG, so the title hits an int3. The proxy handler does not call the PC device, writes nothing, logs the three words once, and yields to an env slot override that moves a route onto 74.
…precedence test now proves the override ran (ItsNotRexed#7231)
|
Independent Windows test of Setup: Windows 11 x64, MSVC 19.44.35220 (
AI-assisted review/test. |
|
Static check on the retail 1.0.2.1 executable for the open question in #6982 ("the title keeps the handle in a global; I haven't seen it read back yet"). This supports leaving the out pointer unwritten, as this PR does.
Method: capstone over AI-assisted (Claude Code). |
|
Independent native Windows clang-cl/xwin check at a30e78e. All seven xs_proxy_mock CTests passed, including xs_proxy_mock_env_slots_74. AI-assisted testing. |
|
Verified at a30e78e, clean against current main 9177299. The route-dispatch refactor preserves order; slot 74 answers S_OK writing nothing, never reaching the PC ShaderCacheControl, log-once for measurement; env-routed overrides onto 74 win per the --env-slots-74 test, and device_slot_overridden(74) now matches the header. One behavior delta for a reviewer nod: slot 74 answers S_OK even for proxies with slot_count<75, where it previously hit the beyond-device refusal — presumably intended, worth saying in the body. C++ tests pending on CI. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run, C++ review-only). |
Claimed in #7231 (comment)
@ItsNotRexed: an exe PR, as you asked.
What
Gives Xbox device slot 74 its own handler in the
d3d12_xsdevice proxy. It returnsS_OK, does not call the PC device, does not write through the pointers, and logs the three words once with an[rt]line.device_slot_overridden(74)is now true. An env slot override that moves one of the Xbox routes (LEONIDA_XS_*_SLOT) onto 74 still wins over the built-in handler, the same rule as slot 70 (d5c9490). The route table is now one helper,route_xbox_device_slot, shared by the generic path and slot 74 (same helper as in the slot 70 branch).Why
kapitche measured (#7231) that the retail title calls device slot 74 once with the shape (pointer, u32, pointer). The proxy forwarded it to PC slot 74,
ID3D12Device9::ShaderCacheControl(kinds, control), which reads the first pointer askindsand returnsE_INVALIDARG, so the title hits an int3. A stand-in returningS_OKgets past it. Thanks to kapitche for the measurement. The words are not measured beyond that, so this is a stand-in, not a model of what the title wants.Tested
xs_proxy_mock_test(Wine, RunPod pod, clang-cl cross build): newcheck_slot74calls slot 74 through the proxy with (ptr, 7, ptr) on a level 9 and a level 0 mock. It returnsS_OK, the mock PC slot 74 is never called, and the memory behind both pointers is unchanged.--env-slots-74mode (and ctest entry): SetFrameIntervalX moved onto 74 still routes as a frame interval and reaches no PC slot.origin/mainfails (device_slot_overridden(74)is false and the call is forwarded). Default,--env-slots,--env-slots-invalidand--env-slots-74all pass with the change.