upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorsneylol <raczpepo@gmail.com>2026-11-23 16:32:28 +0100
committerMumogg <104529023+Mumogg@users.noreply.github.com>2026-11-23 21:54:29 -0600
commit91575fda3a07da811b93ddcfd65b33e21794262a (patch)
treecec7273cf5ff188242a12291167e06dacfaaba64 /runtime/src/thread_stacks.cpp
parentf9d20bf9b045ebaf8c7165eef3ae72cff9ef1410 (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> (cherry picked from commit 5dbc30bed79b399b527460501c0ee33f28712096) Adapted to main by Mumogg: slot 26 keeps the thunk it already has (86b8e04e4), so of this commit's two thunks only slot 25's is installed.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions