Repository navigation
Conversation
…emory The game hands its two 3840x2160 render targets a 64 MiB region through its XMemAlloc hook and breaks at 0x1456a2afd when they overrun it. The shim sized that allocation with the desktop driver's answer, which an RDNA3 card pads to 0x2010000 bytes per target. Textures now take their XG console size (0x1fe0000 for those targets); buffers keep the desktop size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SKtJsfjasPuTLtS3mEXFru
…on info Slot 108 now answers XG's size for single-sample render targets, depth targets and UAV textures without a layout, as for console-layout textures. The game places them in its 2.2 GiB graphics heap at that size (0x140abfad0) while the shim backs them with desktop textures of their own, so the desktop size only took heap: an RX 7800 XT adds its compression metadata (0x1330000 bytes for a 2560x1440 D16S8 depth target where XG gives 0xb40000). With the desktop sizes the heap held 2050 MB of 2199 MB after boot and the story load stopped on a 46 MiB request in the allocator's fatal path (0x142219650). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SKtJsfjasPuTLtS3mEXFru
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What 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
https://claude.ai/code/session_01SKtJsfjasPuTLtS3mEXFru