diff options
| author | sneylol <raczpepo@gmail.com> | 2026-11-23 16:32:28 +0100 |
|---|---|---|
| committer | sneylol <raczpepo@gmail.com> | 2026-11-23 16:32:28 +0100 |
| commit | 5dbc30bed79b399b527460501c0ee33f28712096 (patch) | |
| tree | e0fdffdc757d399d85aeb980bbf9e3f2fd6cb511 /runtime/src/main.cpp | |
| parent | 1cc6e3c121969761d9dad8fdec99f19928213973 (diff) | |
d3d12_xs: device slots 25/26 take the title's C-ABI struct return
The retail executable calls GetCustomHeapProperties (device slot 26) with the
C convention: the hidden return buffer in RCX and the device in RDX. The
proxy's generic forwarder assumed the PC C++ form (this in RCX, buffer in
RDX), took the buffer for the device and crashed on its vtable right after
D3D12XboxCreateDevice.
Slots 25 (GetResourceAllocationInfo, same rule, inferred) and 26 (measured)
now get thunks that accept either form: whichever of the first two arguments
is the device proxy is `this`. The runtime's own code still calls the proxy
through d3d12.h in the PC form. device_proxy_test calls both slots in both
forms against WARP.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions