Repository navigation
Conversation
…zero pruned once GTA VI allocates its index and vertex data with VirtualAlloc(MEM_LARGE_PAGES | commit, protection 0x22004) – 1.2 GB, 0.6 GB, 0.6 GB – not MEM_GRAPHICS, not MEM_64K_PAGES. It got plain process memory; the GPU faulted on the index buffers there (Radeon GPU Detective: page fault in a DrawIndexed, driver timeout ~50 s in). Large-page allocations with protection bit 0x20000 now get a sparse window like MEM_64K_PAGES ones, from the highest window down so the title's physical pages (6.3 GB in one piece) keep the lower ones. (Without ivall#187's page homes out of GPU space they do not all fit.) sparse::decommit_tiles pruned `to_zero` – which grows until the next ExecuteCommandLists – at every decommit that unmapped a tile. While GTA VI maps gigabytes of physical pages during loading this walked the whole list per page and its watchdog ended the game. It is now pruned once, where the runs are taken. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SKtJseucqXR6iuAE6HBtiA
|
Great result. The two problems still visible in your screenshots each have an open PR you could try on the same stack:
AI-assisted (Claude Code). |
|
FYI on the one test failure: Not claiming it's related to the missing text, but with #155 that test should pass on your 7800 XT too, which takes it out of the picture when you narrow that down. |
|
Two findings on a merge with main 6da33fa, neither blocking the menus:
The tagged allocation itself works: it lands in sparse window 2 and both GPU dispatches read the expected words, where main reads 0 instead of 1077. Tested The tagged allocation reached sparse window 2 and returned the expected 64 words in each of two GPU dispatches, including after replacing the input descriptor. I found a 2 MiB alignment regression and a stale clear on VA reuse.
At PR-head At RTX 5070 Ti, 610.74, Windows x64. Not tested Retail boot, frame output, or pre-device timing. With the D3D12 debug layer enabled, the original baseline, PR and stack all hit AI use — Codex, GPT-6.2 Astra. |
|
NVIDIA + Intel result: with this PR and #187, GTA VI goes through its whole first-boot flow on an RTX 3060. Setup:
These are frames the title presented, written by
A 420 s timed run presented 1,554 frames. The menus ran at 4–7 fps.
Without this PR on the same machine, the title's hang watchdog ends the game at ~32 s. At that point XCL's thread dump shows a thread in No game files attached; the screenshots are XCL frame dumps. AI-assisted (Claude Code). |
|
RDNA2 test report: AMD Radeon RX 6800 (16 GB), driver 32.0.21045.29003, Windows 11, release build,
Report written with Claude Code, from our own runs. |
|
Tested on Linux (Wine, NVIDIA): as is the title does not start; merged on current Tested commits: Tested
Not tested
AI use
|





GTA VI on screen
With this PR together with #163, #170, #164, #168, #169/#192 and #187, plus compute pipelines built at their first use (#162), GTA VI shows its title screen and the Navigation menu, reacts to the pad (Y on the keyboard's E), and ran for more than 5 minutes without a crash on an RX 7800 XT:
Still wrong, and visible above: full-screen quads draw only one triangle (the diagonal), and part of the text is missing. More on that in a follow-up.
The fixes in this PR
1. GPU title memory in large pages. GTA VI allocates its index and vertex data with
VirtualAlloc(MEM_LARGE_PAGES | MEM_RESERVE | MEM_COMMIT, protection 0x22004), in blocks of 1.2 GB, 0.6 GB and 0.6 GB. These carry neitherMEM_GRAPHICSnorMEM_64K_PAGES, so they got plain process memory. The GPU then faulted on the index buffers there: a driver timeout (0x887a0006) about 50 s in. Radeon GPU Detective showed a page fault during aDrawIndexed, at an address with no resource, inside thatVirtualAlloc.Large-page allocations with protection bit
0x20000now get a sparse window, likeMEM_64K_PAGESones. They are placed from the highest window down, so that the title's physical pages (6.3 GB in one piece) keep the lower windows. Without #187 (page homes out of GPU space), everything does not fit:AllocateTitlePhysicalPages(99776): no room in UMA, then the title's assertion.2.
sparse::decommit_tileswalked all ofto_zeroat every decommit that unmapped a tile. That list grows until the nextExecuteCommandLists. While GTA VI maps gigabytes of physical pages during loading, this took seconds per page: rendering froze, and the title's watchdog ended the game (mov [0], 0at+0x2215c35). The list is now pruned once, where the runs are taken. The unit test is adapted accordingly.Testing
cargo test --release -p xcl --lib: 535 passed, and 1 failed,gpu_wave64_ps_whole_wave_reductions, which already fails on main on this machine.🤖 Generated with Claude Code
https://claude.ai/code/session_01SKtJseucqXR6iuAE6HBtiA