Repository navigation
d3d12_vulkan_device: check PC CreateReservedResource2 behind the Xbox proxy, not through slot 78 - #7125
d3d12_vulkan_device: check PC CreateReservedResource2 behind the Xbox proxy, not through slot 78#7125sperm wants to merge 1 commit into
Conversation
… proxy, not through slot 78 ItsNotRexed#6935 routes the Xbox device proxy's slot 78 to the title's SetFrameIntervalX, by design: the proxy is the title's device, answers ID3D12Device11 with itself, and shadows PC slots the way 62 and 76 already are. The test still called the PC ID3D12Device10::CreateReservedResource2 through the proxy, so the call reached SetFrameIntervalX and `tiles == 1` failed (@fever308's finding on ItsNotRexed#7049). The PC method is now checked on the Vulkan device behind the proxy, the same call and the same expectations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review: #7125 — check PC
|
| Check | Result |
|---|---|
git diff --check |
PASS |
python -m compileall -q make_game.py tools tests |
PASS |
scripts/check_no_game_data.py |
PASS |
python -I make_game.py --help |
PASS |
| Targeted Python tests | none selected (the change is C++ only) |
I checked the change against the PR head (703fc03a7) by reading runtime/shims/d3d12_xs_device.{h,cpp} (slot map, is_device_proxy, device_proxy_real_device) and the surrounding test block. The Python checks above cannot exercise the changed code. Please confirm in the PR that cmake --build runtime/build passed and that d3d12_vulkan_device_test passes with the proxy on, so the tiles == 1 line is shown passing. Add the GPU and driver per CONTRIBUTING.
Project rules
- No game data: the change touches only a test source file. It adds no shaders, carved files, binaries or logs, and
check_no_game_data.pypasses. - No keys, decryption or protection workarounds: none involved.
- Nothing online: no Xbox Live or Rockstar services or domains.
- Fix, don't disable: the failing check was not skipped, weakened or
#ifdef'd out. The same call with the same expectations now runs against the interface that actually implements it, and the proxy's Xbox slot layout from d3d12_xs: route the public HLE's Xbox device slots 48/73/78/79/80 #6935 stays as designed.
Verdict: Approve, once the runtime test run is confirmed in the PR description.
AI-assisted.
|
Tested
The real device's AI-assisted (Claude Code). |
|
Tested 703fc03 on NVIDIA GeForce RTX 5090, driver 617.42, Windows 11 (26200), native MSVC 2022 RelWithDebInfo: pass, and the failure it fixes reproduces on
AI-assisted (Claude Code). |
devnull34
left a comment
There was a problem hiding this comment.
Verified on AMD Radeon RX 7900 GRE (Windows 11):
- Built
d3d12_vulkan_device_testcleanly with MSVC. d3d12_vulkan_device_test.exepassed:- Verified
CreateReservedResource2unwrapping on Xbox-ABI proxy device viadevice_proxy_real_device(device.p)correctly checks PCID3D12Device10methods on the underlying Vulkan device rather than colliding with slot 78 (SetFrameIntervalX).
- Verified
- CTest target
155: d3d12_vulkan_devicepassed 100% (3.87s). - Whitespace clean (
git diff HEAD~1..HEAD --check).
|
Code review of 6-line diff (cannot run it here:
No game files. AI-assisted. |
|
Tested |
|
Independent Windows validation of
This is the same host class where the parent/current-main path routed slot 78 to |
|
GPU check of Baseline, measured on For regressions, same build:
The branch is based on AI-assisted: yes (Cline). |
|
Independent Windows/MSVC 19.44, RTX 5060 driver 32.0.16.1088 verification: main 8575d36 device test fails in isolation at line 6564 tiles == 1. Applying the intended #7125 QueryInterface-on-PC-device change, rebuilding d3d12_vulkan_device_test (RelWithDebInfo), and running the same executable exits 0 with all device checks matched. The published diff did not git-apply cleanly to this pinned main, so I manually replaced only that QueryInterface receiver, selecting device_proxy_real_device when applicable. No production file changed. No validation-layer claim. Synthetic GPU tests only, no game files. AI-assisted (Codex). |
|
Tested on NVIDIA GeForce RTX 5060 Laptop GPU (Blackwell), driver 621.35, Windows 11, MSVC 17.14, Vulkan SDK 1.4.363.1, on
The full runtime ctest suite with this PR and #5792 applied: 259/260 pass. The one failure is (Tested with AI assistance.) |
|
Tested Setup: Windows 11 Pro 26200, NVIDIA GeForce RTX 4060 (driver 621.01, Vulkan 1.4.357), MSVC 19.51.36260 (Visual Studio 18 2026 generator), Vulkan SDK 1.4.363.1, RelWithDebInfo with
Also built and ran on the merged tree, both exit 0:
The branch is 65 commits behind No game files. AI-assisted |
|
Tested merged onto main |
|
Tested 703fc03 on NVIDIA GeForce RTX 5060 Laptop GPU (driver 32.0.16.1047), Windows 11 Pro 10.0.26300, MSVC 14.44, Vulkan SDK 1.4.363.0: pass.
AI-assisted (Claude Code). |
|
Tested 703fc03 merged onto main 2a3b3b5 (Windows 11, one laptop with two GPUs: RTX 5090 Laptop (Blackwell, NVIDIA 621.35) and Intel Arrow Lake-HX iGPU (Xe-LPG, Intel 101.9175); MSVC 14.44, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, built with
#8496 makes the same fix and passes the same way here; only one of the two is needed. AI-assisted (Claude Code); no game files involved. |
Claim: #7049 comment (no item ID yet), for @fever308's finding: after #6935,
d3d12_vulkan_devicefailstiles == 1atruntime/test/d3d12_vulkan_device_test.cpp:6564onmain.What and why
#6935 routes the Xbox device proxy's slot 78 to the title's
SetFrameIntervalX. That's by design: the proxy is the title's device. It answersID3D12Device11with itself (the test pinsdevice11.p == device.p), and it shadows PC slots the same way it already does 62 and 76. The test still called the PCID3D12Device10::CreateReservedResource2through the proxy, so the call reachedSetFrameIntervalX, and no resource came back to tile.The PC method is now checked on the Vulkan device behind the proxy (
device_proxy_real_device): the same call and the sametiles == 1expectation. The proxy is unchanged.Why the test and not the proxy: the alternative is to tell the PC call apart from the title's call at slot 78 by its arguments. That's a guess about the title's argument words, and slot 79 (
CreateSampler2) and 48/73 would need the same guess. Nothing in the runtime makes PC calls through the proxy at these slots. This test is the only caller, and it's the only PC call to a shadowed slot in the file (none to 48, 73 or 79).Tested
Linux,
mainb3c972b20, clang-cl 23.1.5 + xwin (MSVC 14.44 CRT/SDK) RelWithDebInfo, run under Wine 11.22 on an RX 9070 XT (RADV GFX1201, Mesa 26.2.6):cmake -S runtime -B runtime/build/windows -G Ninja --toolchain runtime/cmake/clang-cl-xwin.cmakethenninja d3d12_vulkan_device_test xs_proxy_mock_test device_proxy_test: builds clean.create_device_proxy,device_proxy_slot_count == 80), so line 6564 runs through the changed code.d3d12_vulkan_device, before:slot 78 routed to SetFrameIntervalX, thenline 6564: tiles == 1, exit 1 (reproduces the finding).xs_proxy_mock: passes. Its slot 78/79/80 routing checks are unchanged.device_proxyfails here before and after: it needs the host's PCD3D12CreateDevice, which Wine doesn't provide (0x80070057). It's unaffected by this test-only change.On Windows: @465d6a0eac's run on an RTX 3070 Ti (610.88) passes, with the full
ctestat 234/234 (comment above).AI-assisted (Claude Code).
🤖 Generated with Claude Code