The Last of Us Part I (PPSA03396): runs past loading on Linux/RADV but presents only black frames #9295

Open
opened 2026-10-21 17:34:40 +00:00 by Pacuka · 1 comment
Pacuka commented 2026-10-21 17:34:40 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Pacuka on 2026-10-21T17:34:40Z.


The Last of Us Part I (PPSA03396, 02.000.000) on Linux (CachyOS, kernel 7.2.2), AMD RX 6650 XT 8 GB (RADV, Mesa 26.2.4), 32 GB RAM, Ryzen 9 5950X, main cecb540a6 + #9249, APS5_NO_HOST_IMPORT=1. It runs for minutes without aborting and loads tts1/english-menu.psarc, but every presented frame is black. It reached that point only after the three stops below.

1. 3D image store on a 2D-array T# (shader 0x12b6559e00, "image descriptor is incompatible with the static runtime image interface"). Fixed by #9249.

2. Host memory for command submission. The title reserves about 12 GB of guest memory (GPU LP 5206 MB at 0x1180000000, GPU 2126 MB at 0x1300000000). With the default GTT size (half of RAM, 15.6 GiB) RSS plateaus at the GTT limit, then radv/amdgpu: Not enough memory for command submission and vkQueueSubmit returns -4. After booting with ttm.pages_limit=6291456 amdgpu.gttsize=24576 (24 GiB GTT), RSS peaks around 15.7 GB and settles at 9-12 GB. Host import on (default) refuses imports (vkAllocateMemory -1000072003) and RSS passes 19 GB within 90 s.

3. std::bad_alloc from oversized sampled array views. Some 2D-array T#s at 2560x1440 targets name slice ranges far past their allocation, and the range differs between runs:

[gpu] sampled view 0x131a810000 (2560x1440 format 22, dimension 2, tile 4, slices 2884..6144) covers 115218 MiB; 8 such views
[gpu] view 0x131a810000 of 115218 MiB lies in the guest allocation 0x1300000000..0x1384e00000 (2126 MiB, ...): 90 of its 6145 slices fit in the range
[gpu] driver failure: compute shader 0x12b65eec00: std::bad_alloc

Other runs: 0x131cc60000 format 36 slices 6..4096, 0x130c790000 format 50 slices 6..4096, 0x1324390000 format 22 slices 2909..2944. One run showed none of them. Locally, I clamped such views to the slices that fit in the allocation (a view whose first slice is past it gets slice 0 alone). That removes the abort, but I don't know whether these descriptors are ever read on hardware or come from memory that isn't written yet.

After that, pixel shader 0x12b665b900 reads a slot whose word 3 TYPE is non-zero as a buffer, the same symptom as #5879 (buffer 0 V# 01a0a3b9 000c000c 000c0018 8000001e). Locally I zeroed read-only V#s with a non-zero TYPE to get further. #7689 / #6412 look like the real fix, but they conflict with current main.

Black frames. Presents come at about 0.7 per second ([present] shows GPU idle gaps of 1.2-1.9 s per frame). The display buffers (0x1304e50000, 0x130c790000, 0x130e770000, 2560x1440) are presented from resident storage images (format 50) that a compute pass wrote. APS5_DUMP_FRAMES frames are RGB 0 everywhere. With APS5_NO_HOST_IMPORT=1 the log repeats:

[gpu] deferred write-back failed: BDA access failed: address=0x106dba33a0 instruction=0x64 bytes=4 stage=4 reason=2; the store hit 0x1030600000+0x40000000, read-only in the BDA table: ...

With host import on, those failures disappear but the frames are still black (I had to stop that run at 19.7 GB RSS). A RenderDoc capture is out of reach: triggering it ends in Not enough memory for command submission on 8 GB VRAM.

I haven't found the pass that produces the black image. If anyone knows what TLOU's final composite depends on, or has a GPU with more VRAM to capture a frame, that would help.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5965435467 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9295). Originally posted by [Pacuka](https://github.com/Pacuka) on 2026-10-21T17:34:40Z. --- The Last of Us Part I (PPSA03396, 02.000.000) on Linux (CachyOS, kernel 7.2.2), AMD RX 6650 XT 8 GB (RADV, Mesa 26.2.4), 32 GB RAM, Ryzen 9 5950X, `main` `cecb540a6` + #9249, `APS5_NO_HOST_IMPORT=1`. It runs for minutes without aborting and loads `tts1/english-menu.psarc`, but every presented frame is black. It reached that point only after the three stops below. **1. 3D image store on a 2D-array T#** (shader `0x12b6559e00`, "image descriptor is incompatible with the static runtime image interface"). Fixed by #9249. **2. Host memory for command submission.** The title reserves about 12 GB of guest memory (GPU LP 5206 MB at `0x1180000000`, GPU 2126 MB at `0x1300000000`). With the default GTT size (half of RAM, 15.6 GiB) RSS plateaus at the GTT limit, then `radv/amdgpu: Not enough memory for command submission` and `vkQueueSubmit` returns -4. After booting with `ttm.pages_limit=6291456 amdgpu.gttsize=24576` (24 GiB GTT), RSS peaks around 15.7 GB and settles at 9-12 GB. Host import on (default) refuses imports (`vkAllocateMemory` -1000072003) and RSS passes 19 GB within 90 s. **3. `std::bad_alloc` from oversized sampled array views.** Some 2D-array T#s at 2560x1440 targets name slice ranges far past their allocation, and the range differs between runs: ``` [gpu] sampled view 0x131a810000 (2560x1440 format 22, dimension 2, tile 4, slices 2884..6144) covers 115218 MiB; 8 such views [gpu] view 0x131a810000 of 115218 MiB lies in the guest allocation 0x1300000000..0x1384e00000 (2126 MiB, ...): 90 of its 6145 slices fit in the range [gpu] driver failure: compute shader 0x12b65eec00: std::bad_alloc ``` Other runs: `0x131cc60000` format 36 slices 6..4096, `0x130c790000` format 50 slices 6..4096, `0x1324390000` format 22 slices 2909..2944. One run showed none of them. Locally, I clamped such views to the slices that fit in the allocation (a view whose first slice is past it gets slice 0 alone). That removes the abort, but I don't know whether these descriptors are ever read on hardware or come from memory that isn't written yet. After that, pixel shader `0x12b665b900` reads a slot whose word 3 TYPE is non-zero as a buffer, the same symptom as #5879 (`buffer 0 V# 01a0a3b9 000c000c 000c0018 8000001e`). Locally I zeroed read-only V#s with a non-zero TYPE to get further. #7689 / #6412 look like the real fix, but they conflict with current main. **Black frames.** Presents come at about 0.7 per second (`[present]` shows GPU idle gaps of 1.2-1.9 s per frame). The display buffers (`0x1304e50000`, `0x130c790000`, `0x130e770000`, 2560x1440) are presented from resident storage images (format 50) that a compute pass wrote. `APS5_DUMP_FRAMES` frames are RGB 0 everywhere. With `APS5_NO_HOST_IMPORT=1` the log repeats: ``` [gpu] deferred write-back failed: BDA access failed: address=0x106dba33a0 instruction=0x64 bytes=4 stage=4 reason=2; the store hit 0x1030600000+0x40000000, read-only in the BDA table: ... ``` With host import on, those failures disappear but the frames are still black (I had to stop that run at 19.7 GB RSS). A RenderDoc capture is out of reach: triggering it ends in `Not enough memory for command submission` on 8 GB VRAM. I haven't found the pass that produces the black image. If anyone knows what TLOU's final composite depends on, or has a GPU with more VRAM to capture a frame, that would help. AI-assisted: yes (Claude Code)
Pacuka commented 2026-10-21 18:22:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Pacuka on 2026-10-21T18:22:17Z.


More data, same setup. The black frames look like the loading screen, not a broken final pass. Memory runs out before loading ends.

  • The pass that writes the display buffers is compute shader 0x12b659a200. I dumped its 2560x1440 input with APS5_DUMP_STORAGE. It holds no scene: either blocks of unrelated data or a flat gray. So the title hasn't drawn anything yet.
  • The log stops at ----- Switching world: from '' to 'core' (next common, movie none). After that, the title opens no more files, but /proc/<pid>/io keeps rising at about 8 MB/s. Loading is progressing, just slowly. Pressing Cross every 4 s through APS5_PAD_INPUT_FILE changes nothing.
  • About 5 minutes in, the kernel OOM killer ends it (anon-rss 13 GB, swap mostly unused). With APS5_NO_HOST_IMPORT=1 the guest memory (~12 GB) is mirrored into GTT, and GTT plus RSS goes past the 32 GB of RAM. The 24 GiB GTT I set to get past the command-submission failure allows that. Swap can't relieve the GTT part.

On this machine, TLOU Part I won't finish loading until imports work on AMD or the mirroring costs less. Then I'll try again.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6323359427 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/9295#issuecomment-6323359427). Originally posted by [Pacuka](https://github.com/Pacuka) on 2026-10-21T18:22:17Z. --- More data, same setup. The black frames look like the loading screen, not a broken final pass. Memory runs out before loading ends. - The pass that writes the display buffers is compute shader `0x12b659a200`. I dumped its 2560x1440 input with `APS5_DUMP_STORAGE`. It holds no scene: either blocks of unrelated data or a flat gray. So the title hasn't drawn anything yet. - The log stops at `----- Switching world: from '' to 'core' (next common, movie none)`. After that, the title opens no more files, but `/proc/<pid>/io` keeps rising at about 8 MB/s. Loading is progressing, just slowly. Pressing Cross every 4 s through `APS5_PAD_INPUT_FILE` changes nothing. - About 5 minutes in, the kernel OOM killer ends it (`anon-rss` 13 GB, swap mostly unused). With `APS5_NO_HOST_IMPORT=1` the guest memory (~12 GB) is mirrored into GTT, and GTT plus RSS goes past the 32 GB of RAM. The 24 GiB GTT I set to get past the command-submission failure allows that. Swap can't relieve the GTT part. On this machine, TLOU Part I won't finish loading until imports work on AMD or the mirroring costs less. Then I'll try again. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#9295
No description provided.