The Last of Us Part I (PPSA03396): runs past loading on Linux/RADV but presents only black frames #9295
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
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,
maincecb540a6+ #9249,APS5_NO_HOST_IMPORT=1. It runs for minutes without aborting and loadstts1/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 at0x1300000000). With the default GTT size (half of RAM, 15.6 GiB) RSS plateaus at the GTT limit, thenradv/amdgpu: Not enough memory for command submissionandvkQueueSubmitreturns -4. After booting withttm.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_allocfrom 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:Other runs:
0x131cc60000format 36 slices 6..4096,0x130c790000format 50 slices 6..4096,0x1324390000format 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
0x12b665b900reads 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_FRAMESframes are RGB 0 everywhere. WithAPS5_NO_HOST_IMPORT=1the log repeats: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 submissionon 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)
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.
0x12b659a200. I dumped its 2560x1440 input withAPS5_DUMP_STORAGE. It holds no scene: either blocks of unrelated data or a flat gray. So the title hasn't drawn anything yet.----- Switching world: from '' to 'core' (next common, movie none). After that, the title opens no more files, but/proc/<pid>/iokeeps rising at about 8 MB/s. Loading is progressing, just slowly. Pressing Cross every 4 s throughAPS5_PAD_INPUT_FILEchanges nothing.anon-rss13 GB, swap mostly unused). WithAPS5_NO_HOST_IMPORT=1the 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)