Repository navigation
Conversation
|
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
|
|
Test report (Linux, RDNA3): the Setup
The long frames right after the freeze are there on both sides (base: 1023 and 390 ms; with #203: one of 368 ms). The game's memory (RAM + swap) peaked at 5.0–5.4 GB on both sides. Why it helps, measured on the base
What is left of the freeze (dumps with this PR)
Not tested: the suite (no Windows here), the large-page half of the PR on its own (it changed nothing visible in these runs: no GPU fault, same video memory), world loading (this setup stops at #505), other GPUs. AI use: Claude Code (Claude Opus 5.5) ran the runs and the dumps, added the temporary counter (not in any PR), and wrote this report. |
…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 xcl-dev#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>
7cbd008 to
4075447
Compare
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |





Retail title on screen
With this PR together with #163, #170, #164, #168, #169/#192 and #187, plus compute pipelines built at their first use (#162), the retail title 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. The retail title 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 the retail title 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