fix(recompiler): bind the rect-list fault buffer in the tessellation control group #2198

Merged
XairRrR merged 1 commit from upstream-pr/2198 into main 2026-10-10 06:14:27 +00:00
XairRrR commented 2026-10-09 11:29:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-09T11:29:36Z.


What

Uncharted: Legacy of Thieves Collection (PPSA05684) stops at its first rect-list draw on main with:

AGC graphics: duplicate shader binding

BuildRectListShaders put the fault buffer of the rect-list control and evaluation shaders one past the highest vertex or fragment binding. Bindings are grouped per stage (RuntimeAbi::BindingNumber), so that number can fall inside another stage's group and collide with one of its bindings. The fault buffer now uses BindingNumber(TessellationControl, FaultBuffer). Test in tests/Graphics.cpp (rectListTests).

Tested

Arch Linux, GCC 16.2.1, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.71.09).

  • The branch alone on current main (d70b8998): tools/check_conventions.py passes; of the 513 ctest tests all pass except agc_driver_dcc_keys_first_write, which fails the same way on main (an unchanged pending image was uploaded again). agc_driver_storage_cache_budget passes run alone; under ctest -j8 a local 3 GB RSS limit stopped it.
  • Uncharted: Legacy of Thieves Collection (PPSA05684): with this and the other changes of its bring-up, the title boots past the stop quoted above and reaches its main menu.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4799796438 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2198). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-09T11:29:36Z. --- ### What Uncharted: Legacy of Thieves Collection (PPSA05684) stops at its first rect-list draw on `main` with: ``` AGC graphics: duplicate shader binding ``` `BuildRectListShaders` put the fault buffer of the rect-list control and evaluation shaders one past the highest vertex or fragment binding. Bindings are grouped per stage (`RuntimeAbi::BindingNumber`), so that number can fall inside another stage's group and collide with one of its bindings. The fault buffer now uses `BindingNumber(TessellationControl, FaultBuffer)`. Test in `tests/Graphics.cpp` (`rectListTests`). ### Tested Arch Linux, GCC 16.2.1, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.71.09). - The branch alone on current `main` (d70b8998): `tools/check_conventions.py` passes; of the 513 ctest tests all pass except `agc_driver_dcc_keys_first_write`, which fails the same way on `main` (`an unchanged pending image was uploaded again`). `agc_driver_storage_cache_budget` passes run alone; under `ctest -j8` a local 3 GB RSS limit stopped it. - Uncharted: Legacy of Thieves Collection (PPSA05684): with this and the other changes of its bring-up, the title boots past the stop quoted above and reaches its main menu. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
rmz-24 commented 2026-10-09 13:30:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by rmz-24 on 2026-10-09T13:30:57Z.


Windows run: Windows 11 Pro 25H2 (10.0.26200.9457), RTX 5060 Ti (NVIDIA 617.42), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON, full build plus libs. 8b7ff670 cherry-picked onto current main d70b8998 (applies cleanly).

  • On this host agc_driver_dcc_keys_first_write passes on main and with this change, so the failure noted in the description doesn't reproduce on Windows/NVIDIA. agc_driver_storage_cache_budget also passes under ctest -j8 here.
  • Full ctest: 510/510.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6081916114 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2198#issuecomment-6081916114). Originally posted by [rmz-24](https://github.com/rmz-24) on 2026-10-09T13:30:57Z. --- Windows run: Windows 11 Pro 25H2 (10.0.26200.9457), RTX 5060 Ti (NVIDIA 617.42), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, `-DANYPS5_ENABLE_SPIRV_TOOLS=ON`, full build plus `libs`. 8b7ff670 cherry-picked onto current `main` d70b8998 (applies cleanly). - On this host `agc_driver_dcc_keys_first_write` passes on `main` and with this change, so the failure noted in the description doesn't reproduce on Windows/NVIDIA. `agc_driver_storage_cache_budget` also passes under `ctest -j8` here. - Full ctest: 510/510. AI-assisted: yes
adriadam10 commented 2026-10-10 06:14:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T06:14:04Z.


Checked: build + ctest of libSceAgc/libSceAgcDriver green; the new rectListTests case fails without the RectListShaders.cpp change and passes with it. Also confirmed by @rmz-24 on Windows 11 / RTX 5060 Ti (510/510). Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6094547414 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2198#issuecomment-6094547414). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T06:14:04Z. --- Checked: build + ctest of libSceAgc/libSceAgcDriver green; the new `rectListTests` case fails without the `RectListShaders.cpp` change and passes with it. Also confirmed by @rmz-24 on Windows 11 / RTX 5060 Ti (510/510). Merging.
Sign in to join this conversation.
No reviewers
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!2198
No description provided.