Fixes for The Last of Us Part I #1899
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1899
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1899"
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?
@claxten10 on GitHub · 2026-10-25 16:51 UTC · original
claxten10:tlou-p1→main· +7564 −1010 · 78 files · 48 commits · openSummary
With this PR, many changes and fixes have been added, and now 'The Last of Us Part I' (PPSA03396 / PPSA07642) successfully boots and reaches the main menu.
Status
Additional info
Screenshots
@coderabbitai[bot] on GitHub · 2026-10-25 17:05 UTC · original
No actionable comments were generated in the recent review.
077a4139-1487-4b1f-b151-8e3449959294Reviewing files that changed from the base of the PR and between
83f8bfd3c9and2b62488a2f.CMakeLists.txtsrc/graphics/guest_gpu/command_processor/commandProcessor.hsrc/graphics/guest_gpu/command_processor/pm4Dispatch.cppsrc/graphics/guest_gpu/command_processor/pm4Dispatch.hsrc/graphics/guest_gpu/command_processor/pm4Handlers.cppsrc/graphics/guest_gpu/gpu_defs.hsrc/graphics/guest_gpu/graphicsRun.cppsrc/graphics/host_gpu/pageManager.cppsrc/graphics/host_gpu/pageManager.hsrc/graphics/host_gpu/renderer/cache/bufferCache.cppsrc/graphics/host_gpu/renderer/cache/bufferCache.hsrc/graphics/host_gpu/renderer/cache/textureCache.cppsrc/graphics/host_gpu/renderer/cache/textureCache.hsrc/graphics/host_gpu/renderer/colorRenderTarget.cppsrc/graphics/host_gpu/renderer/commandScheduler.cppsrc/graphics/host_gpu/renderer/depthRenderTarget.cppsrc/graphics/host_gpu/renderer/image/imageInfo.cppsrc/graphics/host_gpu/renderer/image/imageInfo.hsrc/graphics/host_gpu/renderer/image/textureCommon.cppsrc/graphics/host_gpu/renderer/image/textureCommon.hsrc/graphics/host_gpu/renderer/image/tiler.cppsrc/graphics/host_gpu/renderer/image/tiler.hsrc/graphics/host_gpu/renderer/pipeline/descriptorHeap.cppsrc/graphics/host_gpu/renderer/pipeline/descriptorHeap.hsrc/graphics/host_gpu/renderer/pipeline/descriptors.cppsrc/graphics/host_gpu/renderer/pipeline/imageHeap.cppsrc/graphics/host_gpu/renderer/pipeline/imageHeap.hsrc/graphics/host_gpu/renderer/pipeline/pipelineCache.cppsrc/graphics/host_gpu/renderer/pipeline/pipelineCache.hsrc/graphics/host_gpu/renderer/pipeline/shaders.cppsrc/graphics/host_gpu/renderer/renderCompute.cppsrc/graphics/host_gpu/renderer/renderContext.cppsrc/graphics/host_gpu/renderer/renderContext.hsrc/graphics/host_gpu/shaders/gpu_tiler_common.incsrc/graphics/host_gpu/shaders/gpu_tiler_prt.compsrc/graphics/host_gpu/shaders/gpu_tiler_prt_3d.compsrc/graphics/host_gpu/shaders/gpu_tiler_standard64_3d.incsrc/graphics/presentation/videoOut.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterAnalysis.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterFlow.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterInstructions.hsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterMemory.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterMemoryHelpers.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterModule.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterProgram.cppsrc/graphics/shader/recompiler/frontend/decode/MemoryOps.cppsrc/graphics/shader/recompiler/frontend/decode/ShaderDecoder.cppsrc/graphics/shader/recompiler/frontend/decode/ShaderDecoder.hsrc/graphics/shader/recompiler/frontend/translate/Memory.cppsrc/graphics/shader/recompiler/frontend/translate/Translate.cppsrc/graphics/shader/recompiler/ir/Program.cppsrc/graphics/shader/recompiler/ir/Serialize.hsrc/graphics/shader/recompiler/ir/ShaderIR.hsrc/graphics/shader/recompiler/ir/opcodes/ValueOpcodes.cppsrc/graphics/shader/recompiler/ir/opcodes/ValueOpcodes.incsrc/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cppsrc/graphics/shader/recompiler/ir/passes/ResourceMaterialization.hsrc/graphics/shader/recompiler/ir/passes/ResourceTracking.cppsrc/graphics/shader/recompiler/ir/passes/ShaderInfoCollection.cppsrc/graphics/shader/recompiler/ir/passes/SrtWalker.cppsrc/graphics/shader/recompiler/ir/passes/SrtWalker.hsrc/graphics/shader/shaderBindings.hsrc/kernel/memory.cppsrc/kernel/memory.hsrc/libs/agc.cppsrc/libs/agc.hsrc/libs/libAgcDriver.cppsrc/libs/libKernel.cppsrc/libs/libSystemService.cppsrc/libs/libTextToSpeech2.cpptests/PageManagerTests.cpptests/ResourceMaterializationTests.cpptests/ResourceTrackingTests.cpptests/ScalarProvenanceTests.cpptests/ShaderRecompilerComputeTests.cpptests/VirtualMemoryAllocationTests.cpptests/shaderCfgTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Walkthrough
The changes update GPU command processing, memory permissions, buffer downloads, texture handling, descriptor allocation, and shader compilation. They add PM4 memory-semaphore support and end-of-pipe synchronization. They also expand resource analysis and SPIR-V emission, change guest-memory backing and protection handling, and add library functions and tests.
Suggested reviewers:
nmzik,senaxxPriority:
Normal
Change: Bug fix
Merge Risk:
Minimal · up to
2b624No concrete merge-blocking defect was established in this change. The author's reported limits stand: the game runs at about 2 fps in the main menu and does not yet reach gameplay. Normal testing of the affected rendering and memory paths is still advisable before merge.
Pre-merge checks:
4 ·
1
Full details: Title check
Explanation
The title "Fixes for The Last of Us Part I" names the game the PR targets, which matches the PR objectives. It is broad, though. The changeset covers many subsystems (GPU synchronization, shader recompiler, page management, memory allocation, descriptors, kernel stubs), and the title does not name the primary technical change. It is therefore partially related: it refers to a real aspect of the work but does not summarize the main change.
Full details: Description check
Explanation
The description states that the PR lets The Last of Us Part I (PPSA03396 / PPSA07642) boot and reach the main menu. It reports the current performance (about 2 fps, with a 60 fps Sony intro) and the known gameplay issue. It also lists the Linux test environment and regression-tested games. These points relate directly to the changeset's graphics, shader, memory, and kernel work.
Full details: Docstring Coverage
Explanation
Docstring coverage is 5.85% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 171 functions across 50 files. (26 skipped: 6 unsupported, 20 over the file limit.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@Ekt0re on GitHub · 2026-10-26 12:42 UTC · original
Hi, these seem like some really interesting changes, and the fact that TLOU Part 1 launches is awesome! It would be interesting to test TLOU Part 2 as well. (Since the two games have a lot in common, and if the first one gets to the menu, the second one probably will too.)
@claxten10 on GitHub · 2026-10-26 12:46 UTC · original
I have not tested TLOU Part II, it would probably require a minimal amount of changes or it might even boot OOTB, I am not sure.
@Ekt0re on GitHub · 2026-10-26 14:21 UTC · original
Okay, it would be interesting to test it, just as it would be interesting to test Uncharted: The Legacy of Thieves as well (since they all share the same game engine, they should theoretically be able to load the game menu).
Anyway, you did a great job!
@Ekt0re on GitHub · 2026-10-26 14:44 UTC · original
I was thinking of something (I'm not sure if it'll work, but if you have the time or feel like experimenting), you could combine this fix with this fix for Uncharted.
Maybe combining these two fixes will let you start the game.
@bozoweed on GitHub · 2026-10-26 15:03 UTC · original
when does it going to be merged ?
@Ekt0re on GitHub · 2026-10-26 15:07 UTC · original
That's a good question. Basically, we'll all be done soon, but you can't just merge them “at random”—first, the maintainer has to review the code, figure out which parts can be added right away without any issues, and which ones require a more thorough review. Since there are so many files and so many modified functions, I imagine it will take quite a while. Also, because in the meantime, there are more than 20–25 new pull requests every day.
@bozoweed on GitHub · 2026-10-26 15:11 UTC · original
nice to ear , so maintainer does real review befor merge ? is not let AI does that for him ? because i did'nt undestud why they have merge pr that have broken linux and macos build. but if they did review it's a good new :)
@Ekt0re on GitHub · 2026-10-26 15:17 UTC · original
Honestly, I don't know how or what they do to review the code. Basically, there are already some automatic verification checks in place:
Sometimes an issue arises on a specific platform, such as Mac or Linux. (Windows is usually the most widely supported platform.) Very often, these errors aren’t major issues, but rather minor bugs that cause problems on a single platform. Within a few hours—or at most one day—a working version is restored.
The important thing is that the emulator doesn't get cluttered with Sloap AI code, which, in the long run, makes maintenance impossible and may even cause regressions.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.