diff options
| author | Jackson <37029272+NinJackson@users.noreply.github.com> | 2026-11-23 11:16:28 -0500 |
|---|---|---|
| committer | Mumogg <104529023+Mumogg@users.noreply.github.com> | 2026-11-23 22:14:29 -0600 |
| commit | 35e687f2ac1eeca764deffc307c6a076c9a44230 (patch) | |
| tree | 55ac086a97aa350ab15ed918a7e2a05678417c0a /runtime/src/pe_loader.cpp | |
| parent | f1a68eeffbf280b2e2c86f439ebd674da026d82e (diff) | |
d3d12_xs: committed resources lease their size through the title's XMem hooks (RT-5 stop 17)
On the console a committed resource's memory is allocated with XMemAlloc, so it goes
through the title's __XMemAllocationHooks__. The retail title budgets its first
full-screen render targets with a per-thread hook that bump-allocates out of a range it
reserved and asserts that less than 2 MiB is left; PC resources never allocated through
the hooks, so the assert always fired. Slots 76 and 127 now allocate the slot-25 size of
each resource through the hooks, held by the resource with SetPrivateDataInterface and
freed when it is destroyed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit ae322dafc560f07f839be457e3ba6b68bcbf83c8)
Adapted to main by Mumogg: the lease size is the later form of this series (d61755d4d, a render target's console
tile size, else the PC size), since console_render_target_extra is gone after 359390833.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions