Loader: committed and target textures take their XG console size #20
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ThatRecompDev--five-star-recomp!20
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/20/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Sr-0w on GitHub · 2026-11-25 05:36 UTC · original
Sr-0w:loader/committed-console-size→main· +114 −10 · 4 files · 2 commits · merged 2026-11-25 08:06 UTCWhat changed
GetResourceAllocationInfo1(slot 108), and the committed path, answer XG's console size for two more kinds of texture, as they already do for console-layout and streamed textures:TryCommittedTextureSize). 0x14247ad10 creates two 3840x2160 RGBA8 targets from a 64 MiB region and breaks unless they fill all but 2 MiB of it. An RDNA3 desktop driver asks 0x2010000 bytes for each, which overruns the region.ConsoleAllocationSizes.IsConsoleSized). The game places them in its 2.2 GiB graphics heap at the size slot 108 answers (0x140abfad0), while the shim backs them with desktop textures of their own. The desktop size therefore only takes heap.Why
On an RX 7800 XT the driver adds its compression metadata: 0x1330000 bytes for a 2560x1440 D16S8 depth target, where XG gives 0xb40000. Over the boot, the 15,383 target queries totalled 21,786 MB desktop against 21,353 MB XG. The heap (allocator object 0x1471c2808, used bytes at +0x58) held 2050 MB of 2199 MB after boot. About 3 minutes in, a 46 MiB request failed into the allocator's fatal path (int3 at 0x142219650).
Buffers, multisampled textures and queries that mix kinds keep the desktop answer.
How I checked
dotnet test: Loader 208 passed (18 skipped), Architecture 30 passed.ConsoleAllocationSizesTestsgains the 2560x1440 depth target (0xb40000), and a render target now gets the same size as its committed form. A 4x MSAA target still keeps the desktop answer.docs/d3d12x-shim.md(Allocation info) describes both cases.🤖 Generated with Claude Code
@ThatRecompDev on GitHub · 2026-11-25 08:08 UTC · original
merged, thanks for digging into this, the 7800 XT numbers make it really clear. checked that nothing on our side writes into those allocations, render/depth targets get their own desktop textures, so the smaller XG size can't get overrun