fix(agc): track DCC storage images with more than one mip as one unit #7579

Merged
LeoFeitosa merged 3 commits from upstream-pr/7579 into main 2026-10-19 22:52:35 +00:00
LeoFeitosa commented 2026-10-18 15:28:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeoFeitosa on 2026-10-18T15:28:35Z.


What

StorageTexture tracks a storage image whose descriptor has DCC metadata and more than one mip as one unit again, instead of as 64 KiB blocks.

With block units, the main menu of RoboCop: Rogue City - Unfinished Business (PPSA28329) is drawn wrong: only its blurred light layer shows, and the city and the character never appear. On main 2083bc700 purple and black tiles also covered the top of the screen. I narrowed it down with a temporary filter on blockUnits (not part of this change):

Block units for Menu
every eligible surface (main) wrong
none (APS5_NO_BLOCK_TRACKING=1) right
surfaces without DCC metadata only right
surfaces with one mip only right
DCC surfaces with one mip only right
DCC surfaces with more than one mip only wrong

The surfaces in the last row are three 1920x1080 surfaces with six mips (format 71, tile mode 7) and one 960x544 surface with two. Storing them whole in StorageTexture::writeBack (the whole rule extended to them) also fixes the menu, but on 2083bc700 it cost about a quarter of the in-game frame rate, since they are then stored whole several times per frame. Tracked as one unit, as before block units, they cost nothing measurable (below).

I did not find which step of the block path loses their results. Each of these was switched off on its own and none fixed it: the drop of pending units on a clear-key flip, the key-flip keep, the alias borrow, the unit shadow, partial fills, the fill discard of units, and the partial windows of block write-backs. The debt file records the gap.

#6280 and #7085 change the same line; they add geometry.imageLevels == descriptor.mipCount, which is independent of this condition. #6280 alone does not fix the menu.

Tested

Windows 11 (build 26200), NVIDIA GeForce RTX 5070 Ti, driver 617.42, WinLibs GCC 15.2.0 r7, Release, main 9caecfd2d. The same build tree with and without the change, runs alternating, the title relinked by that build, shader cache warm.

  • Main menu, screenshot about 90 s after start: wrong 3 of 3 without, right 3 of 3 with. Same result in 2 + 2 runs on 9caecfd2d with #6308, and on 2083bc700 with #6308.

  • In game, first mission: APS5_TRACE_SUMMARY_EVERY=10, median of each run's last 15 intervals. The frame rate swings between about 2.3 and 4.5 FPS from run to run in both builds, with no consistent difference:

    Pair Without With
    1 3.9 (stopped early) 3.85 (stopped early)
    2 4.6 2.9
    3 4.4 4.6
    4 4.5 4.5 (stopped early)
    5 2.4 4.4
    6 2.2 2.4

    The runs marked as stopped early ended soon after the save loaded; the one log kept shows an access violation. In 8 more runs (4 + 4) of the menu, the load and 4 minutes in game, neither build stopped.

  • ctest -R "agc|storage|texture|write_watch|dcc" (711 tests): passed, except agc_driver_address_passes, which fails the same way without the change, and agc_shader_disk_cache_large_file, which failed once in the parallel run and passes alone.

  • python tools/check_conventions.py --base origin/main: passes.

Not run on AMD: on main 2083bc700, the Radeon iGPU here does not get past the title's first load (see the bring-up thread).

Rebased onto 3f4a7f3b2 after testing. The debt file conflicted and was resolved by hand; Texture.cpp merged cleanly.

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 under Silent stubs in their library's technical debt file
  • 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
  • Unblocks: PPSA28329 #7578
  • GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 (build 26200)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4910362067 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7579). Originally posted by [LeoFeitosa](https://github.com/LeoFeitosa) on 2026-10-18T15:28:35Z. --- ### What `StorageTexture` tracks a storage image whose descriptor has DCC metadata and more than one mip as one unit again, instead of as 64 KiB blocks. With block units, the main menu of RoboCop: Rogue City - Unfinished Business (PPSA28329) is drawn wrong: only its blurred light layer shows, and the city and the character never appear. On `main` 2083bc700 purple and black tiles also covered the top of the screen. I narrowed it down with a temporary filter on `blockUnits` (not part of this change): | Block units for | Menu | |---|---| | every eligible surface (`main`) | wrong | | none (`APS5_NO_BLOCK_TRACKING=1`) | right | | surfaces without DCC metadata only | right | | surfaces with one mip only | right | | DCC surfaces with one mip only | right | | DCC surfaces with more than one mip only | wrong | The surfaces in the last row are three 1920x1080 surfaces with six mips (format 71, tile mode 7) and one 960x544 surface with two. Storing them whole in `StorageTexture::writeBack` (the `whole` rule extended to them) also fixes the menu, but on 2083bc700 it cost about a quarter of the in-game frame rate, since they are then stored whole several times per frame. Tracked as one unit, as before block units, they cost nothing measurable (below). I did not find which step of the block path loses their results. Each of these was switched off on its own and none fixed it: the drop of pending units on a clear-key flip, the key-flip keep, the alias borrow, the unit shadow, partial fills, the fill discard of units, and the partial windows of block write-backs. The debt file records the gap. #6280 and #7085 change the same line; they add `geometry.imageLevels == descriptor.mipCount`, which is independent of this condition. #6280 alone does not fix the menu. ### Tested Windows 11 (build 26200), NVIDIA GeForce RTX 5070 Ti, driver 617.42, WinLibs GCC 15.2.0 r7, Release, `main` 9caecfd2d. The same build tree with and without the change, runs alternating, the title relinked by that build, shader cache warm. - Main menu, screenshot about 90 s after start: wrong 3 of 3 without, right 3 of 3 with. Same result in 2 + 2 runs on 9caecfd2d with #6308, and on 2083bc700 with #6308. - In game, first mission: `APS5_TRACE_SUMMARY_EVERY=10`, median of each run's last 15 intervals. The frame rate swings between about 2.3 and 4.5 FPS from run to run in both builds, with no consistent difference: | Pair | Without | With | |---|---|---| | 1 | 3.9 (stopped early) | 3.85 (stopped early) | | 2 | 4.6 | 2.9 | | 3 | 4.4 | 4.6 | | 4 | 4.5 | 4.5 (stopped early) | | 5 | 2.4 | 4.4 | | 6 | 2.2 | 2.4 | The runs marked as stopped early ended soon after the save loaded; the one log kept shows an access violation. In 8 more runs (4 + 4) of the menu, the load and 4 minutes in game, neither build stopped. - `ctest -R "agc|storage|texture|write_watch|dcc"` (711 tests): passed, except `agc_driver_address_passes`, which fails the same way without the change, and `agc_shader_disk_cache_large_file`, which failed once in the parallel run and passes alone. - `python tools/check_conventions.py --base origin/main`: passes. Not run on AMD: on `main` 2083bc700, the Radeon iGPU here does not get past the title's first load (see the bring-up thread). Rebased onto 3f4a7f3b2 after testing. The debt file conflicted and was resolved by hand; `Texture.cpp` merged cleanly. ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Unblocks: PPSA28329 #7578 - [x] GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 (build 26200) - [x] AI-assisted: yes
MarcZX10 commented 2026-10-18 15:30:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T15:30:26Z.


The A/B title evidence is useful, and the broader Windows suite is green. I could not find a test that directly exercises this new blockUnits condition: the current CTest run does not assert that multi-mip DCC surfaces use whole-unit tracking while no-DCC or single-mip surfaces retain block tracking. Could you add a focused regression for that eligibility decision, or point me to an existing test that covers it? That would keep the reported DCC/mip rule from being silently removed later.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6251704261 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7579#issuecomment-6251704261). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T15:30:26Z. --- The A/B title evidence is useful, and the broader Windows suite is green. I could not find a test that directly exercises this new `blockUnits` condition: the current CTest run does not assert that multi-mip DCC surfaces use whole-unit tracking while no-DCC or single-mip surfaces retain block tracking. Could you add a focused regression for that eligibility decision, or point me to an existing test that covers it? That would keep the reported DCC/mip rule from being silently removed later.
github-actions[bot] commented 2026-10-18 15:46:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T15:46:42Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 7085 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp L1376

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5499 docs/dev/debt/libSceAgcDriver.md
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5925 docs/dev/debt/libSceAgcDriver.md
PR 6146 docs/dev/debt/libSceAgcDriver.md
PR 6187 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6192 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 core/libs/prx/libSceAgcDriver/Graphics/include/TextureTiling.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureTiling.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6292 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6539 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6612 docs/dev/debt/libSceAgcDriver.md
PR 6615 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6636 docs/dev/debt/libSceAgcDriver.md
PR 6682 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6683 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6718 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6730 docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6820 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 docs/dev/debt/libSceAgcDriver.md
PR 6926 docs/dev/debt/libSceAgcDriver.md
PR 6947 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6960 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6971 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Graphics/include/TextureTiling.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureTiling.cpp
core/libs/prx/libSceAgcDriver/tests/TextureTiling.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7048 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7332 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7427 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7446 docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7505 docs/dev/debt/libSceAgcDriver.md
PR 7514 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7533 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7604 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7800 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7844 docs/dev/debt/libSceAgcDriver.md
PR 7927 docs/dev/debt/libSceAgcDriver.md
PR 8014 docs/dev/debt/libSceAgcDriver.md
PR 8099 docs/dev/debt/libSceAgcDriver.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6251869427 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7579#issuecomment-6251869427). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T15:46:42Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` [L1376](https://github.com/boykopovar/AnyPS5/blob/f29546ac4e79c0df969c8bb6e4ad05afe4c1e103/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L1376) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6197](https://www.github.com/boykopovar/AnyPS5/pull/6197) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6202](https://www.github.com/boykopovar/AnyPS5/pull/6202) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6273](https://www.github.com/boykopovar/AnyPS5/pull/6273) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/Graphics/include/TextureTiling.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/TextureTiling.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6549](https://www.github.com/boykopovar/AnyPS5/pull/6549) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6636](https://www.github.com/boykopovar/AnyPS5/pull/6636) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6682](https://www.github.com/boykopovar/AnyPS5/pull/6682) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6718](https://www.github.com/boykopovar/AnyPS5/pull/6718) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6730](https://www.github.com/boykopovar/AnyPS5/pull/6730) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6820](https://www.github.com/boykopovar/AnyPS5/pull/6820) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6926](https://www.github.com/boykopovar/AnyPS5/pull/6926) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6971](https://www.github.com/boykopovar/AnyPS5/pull/6971) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Graphics/include/TextureTiling.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/TextureTiling.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/TextureTiling.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7427](https://www.github.com/boykopovar/AnyPS5/pull/7427) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7446](https://www.github.com/boykopovar/AnyPS5/pull/7446) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7533](https://www.github.com/boykopovar/AnyPS5/pull/7533) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7844](https://www.github.com/boykopovar/AnyPS5/pull/7844) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7927](https://www.github.com/boykopovar/AnyPS5/pull/7927) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8099](https://www.github.com/boykopovar/AnyPS5/pull/8099) | `docs/dev/debt/libSceAgcDriver.md` |
LeandroLP23 commented 2026-10-18 18:06:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-18T18:06:19Z.


AMD run of the tests, since the description lists AMD as not run. Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON. Build: main c3591adf9 with #7623, #7612, #7611, #7603, #7579, #7563 and #7541 merged together (each merge clean, built once).

agc_driver_address_passes and agc_shader_disk_cache_large_file pass 3 runs of 3. No title was run.

AI-assisted

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6253308031 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7579#issuecomment-6253308031). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-18T18:06:19Z. --- AMD run of the tests, since the description lists AMD as not run. Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`. Build: `main` `c3591adf9` with #7623, #7612, #7611, #7603, #7579, #7563 and #7541 merged together (each merge clean, built once). `agc_driver_address_passes` and `agc_shader_disk_cache_large_file` pass 3 runs of 3. No title was run. AI-assisted
savvaniss commented 2026-10-18 21:53:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-18T21:53:08Z.


Windows regression check on an Intel UHD 770 and an AMD RX 9070 XT: no change in the full CTest results.

Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, ANYPS5_NO_SHADER_CACHE=1, serial CTest. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088. AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31041.1004, with VkCache emptied first. This head 96770813c merged into main f3059421f.

This PR adds no test. Full CTest (--parallel 4, 1513 tests) with this head merged fails the same failures as main alone on this machine: the five image-table tests (#6647) and agc_driver_sample_multisample_target (#6957) on the UHD 770, agc_driver_quad_pixel_mask (#6255) and agc_driver_layered_volume_vertex_no_gpl (#4768) on the RX 9070 XT.

I also ran full CTest with this PR and the 14 other open AGC PRs I tested in the same batch merged together (#7647, #7641, #7630, #7627, #7603, #7600, #7591, #7535, #7533, #7474, #7462, #7050, #7048, #7650). Neither GPU showed a failure beyond main's own, except #7650's new test.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255603298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7579#issuecomment-6255603298). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-18T21:53:08Z. --- Windows regression check on an Intel UHD 770 and an AMD RX 9070 XT: no change in the full CTest results. Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, `ANYPS5_NO_SHADER_CACHE=1`, serial CTest. Intel UHD Graphics 770 (`8086:a780`), driver 32.0.101.7088. AMD Radeon RX 9070 XT (`1002:7550`), driver 32.0.31041.1004, with `VkCache` emptied first. This head `96770813c` merged into `main` `f3059421f`. This PR adds no test. Full CTest (`--parallel 4`, 1513 tests) with this head merged fails the same failures as `main` alone on this machine: the five image-table tests (#6647) and `agc_driver_sample_multisample_target` (#6957) on the UHD 770, `agc_driver_quad_pixel_mask` (#6255) and `agc_driver_layered_volume_vertex_no_gpl` (#4768) on the RX 9070 XT. I also ran full CTest with this PR and the 14 other open AGC PRs I tested in the same batch merged together (#7647, #7641, #7630, #7627, #7603, #7600, #7591, #7535, #7533, #7474, #7462, #7050, #7048, #7650). Neither GPU showed a failure beyond `main`'s own, except #7650's new test. AI-assisted: yes (Claude Code)
LeoFeitosa commented 2026-10-19 03:26:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeoFeitosa on 2026-10-19T03:26:23Z.


Added in 0c7573e95. The eligibility check is now TracksBlockUnits in TextureTiling.cpp, and RunTextureTilingTests checks it on a 1920x1080 R64KBX surface with six mips: tracked as blocks without DCC, as one unit with DCC, as blocks with DCC and one mip, and as one unit off a 64 KiB boundary or when linear. With the DCC/mip condition removed, agc_driver_graphics fails on a DCC surface with more than one mip must be tracked as one unit.

ctest -R "agc|storage|texture|write_watch|dcc" on this head (714 tests): only agc_shader_disk_cache_large_file failed, in the parallel run, as before.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258987737 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7579#issuecomment-6258987737). Originally posted by [LeoFeitosa](https://github.com/LeoFeitosa) on 2026-10-19T03:26:23Z. --- Added in 0c7573e95. The eligibility check is now `TracksBlockUnits` in `TextureTiling.cpp`, and `RunTextureTilingTests` checks it on a 1920x1080 R64KBX surface with six mips: tracked as blocks without DCC, as one unit with DCC, as blocks with DCC and one mip, and as one unit off a 64 KiB boundary or when linear. With the DCC/mip condition removed, `agc_driver_graphics` fails on `a DCC surface with more than one mip must be tracked as one unit`. `ctest -R "agc|storage|texture|write_watch|dcc"` on this head (714 tests): only `agc_shader_disk_cache_large_file` failed, in the parallel run, as before.
fdfawef324 commented 2026-10-19 05:26:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-19T05:26:01Z.


I checked #7579 at 0c7573e95773, including TracksBlockUnits and its direct eligibility regression, against #6280 candidate 0e1f2ab53b59. Your DCC/multi-mip exclusion and #6280's geometry.imageLevels == descriptor.mipCount exclusion address different cases.

The combined condition must retain the LayerTrackingEnabled/BlockTrackingEnabled switches, your helper's eligibility conditions, and the physical-chain equality. That equality can remain at the call or move into the helper if both controls survive. A no-DCC overdeclared chain must still avoid block tracking; a fully represented multi-mip DCC surface must still avoid it for your separate reason.

For the shared implementation line, I propose #6280 first and then your rebase retaining both exclusions and controls. That order is pending, and there is no standalone build dependency or combined execution result. If the reverse order is preferable, I can carry your helper into the cap rebase and rerun the composed controls. The verified #6280 update stays in draft while the shared-line and codec order is coordinated.

AI-assisted: yes (Codex)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6260337321 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7579#issuecomment-6260337321). Originally posted by [fdfawef324](https://github.com/fdfawef324) on 2026-10-19T05:26:01Z. --- I checked #7579 at `0c7573e95773`, including `TracksBlockUnits` and its direct eligibility regression, against #6280 candidate `0e1f2ab53b59`. Your DCC/multi-mip exclusion and #6280's `geometry.imageLevels == descriptor.mipCount` exclusion address different cases. The combined condition must retain the `LayerTrackingEnabled`/`BlockTrackingEnabled` switches, your helper's eligibility conditions, and the physical-chain equality. That equality can remain at the call or move into the helper if both controls survive. A no-DCC overdeclared chain must still avoid block tracking; a fully represented multi-mip DCC surface must still avoid it for your separate reason. For the shared implementation line, I propose #6280 first and then your rebase retaining both exclusions and controls. That order is pending, and there is no standalone build dependency or combined execution result. If the reverse order is preferable, I can carry your helper into the cap rebase and rerun the composed controls. The verified #6280 update stays in draft while the shared-line and codec order is coordinated. AI-assisted: yes (Codex)
whamre commented 2026-10-20 06:38:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by whamre on 2026-10-20T06:38:40Z.


SILENT HILL: The Short Message (PPSA10112, #7305) stops at its title intro on main since this change. The write-back of a color target throws:

[gpu] color target 0x20b4260000 stays non-resident: AGC graphics: storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented
[videoout] presentation failed: AGC graphics: storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented

Bisected over last night's first-parent merges, same machine and dump, one change per build:

main at Result
252cbc29b (before #6701) menu, no error
a01b3287c (#7432 merged, before this PR) menu, no error
053034f41 (this PR merged) stops with the error above
d0ac490cb (current main) stops with the error above, 3 of 3 runs, also with #7048 merged on top
d0ac490cb with only 053034f41 reverted menu, no error

My reading, not verified: tracking these DCC surfaces as one unit makes the unit span memory that is only partly write-watched, and a pending result in it then has neither the watch nor saved guest bytes. That's the case #7048 addresses for block units, but #7048 doesn't cover this one; it still stops on top of current main. I can test a fix on this title.

Windows 11 (26300), RTX 2080 SUPER, NVIDIA 616.92, WinLibs GCC 15.2.0, Release.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6285011581 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7579#issuecomment-6285011581). Originally posted by [whamre](https://github.com/whamre) on 2026-10-20T06:38:40Z. --- SILENT HILL: The Short Message (PPSA10112, #7305) stops at its title intro on `main` since this change. The write-back of a color target throws: ``` [gpu] color target 0x20b4260000 stays non-resident: AGC graphics: storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented [videoout] presentation failed: AGC graphics: storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented ``` Bisected over last night's first-parent merges, same machine and dump, one change per build: | `main` at | Result | |---|---| | `252cbc29b` (before #6701) | menu, no error | | `a01b3287c` (#7432 merged, before this PR) | menu, no error | | `053034f41` (this PR merged) | stops with the error above | | `d0ac490cb` (current `main`) | stops with the error above, 3 of 3 runs, also with #7048 merged on top | | `d0ac490cb` with only `053034f41` reverted | menu, no error | My reading, not verified: tracking these DCC surfaces as one unit makes the unit span memory that is only partly write-watched, and a pending result in it then has neither the watch nor saved guest bytes. That's the case #7048 addresses for block units, but #7048 doesn't cover this one; it still stops on top of current `main`. I can test a fix on this title. Windows 11 (26300), RTX 2080 SUPER, NVIDIA 616.92, WinLibs GCC 15.2.0, Release. AI-assisted: yes.
LeoFeitosa commented 2026-10-20 06:42:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeoFeitosa on 2026-10-20T06:42:16Z.


Thanks for the bisect and the revert check, that pins it to this change. I'm looking at the write-back path that throws for a one-unit surface whose range is only partly write-watched, and at what #7048 does for block units there, to keep the RoboCop menu fix without this stop. I'll post a branch here for you to run on Silent Hill before anything is opened.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6285060593 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7579#issuecomment-6285060593). Originally posted by [LeoFeitosa](https://github.com/LeoFeitosa) on 2026-10-20T06:42:16Z. --- Thanks for the bisect and the revert check, that pins it to this change. I'm looking at the write-back path that throws for a one-unit surface whose range is only partly write-watched, and at what #7048 does for block units there, to keep the RoboCop menu fix without this stop. I'll post a branch here for you to run on Silent Hill before anything is opened. AI-assisted: yes
LeoFeitosa commented 2026-10-20 07:39:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeoFeitosa on 2026-10-20T07:39:18Z.


Opened #8265 to revert it. The same refusal reproduces in agc_storage_pending_after_unwatch (with #7048 merged) once every surface is one unit, so this is the one-unit path #7048 does not cover rather than something specific to the title. I'll look for the RoboCop menu fix in the block path instead.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6285924504 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7579#issuecomment-6285924504). Originally posted by [LeoFeitosa](https://github.com/LeoFeitosa) on 2026-10-20T07:39:18Z. --- Opened #8265 to revert it. The same refusal reproduces in `agc_storage_pending_after_unwatch` (with #7048 merged) once every surface is one unit, so this is the one-unit path #7048 does not cover rather than something specific to the title. I'll look for the RoboCop menu fix in the block path instead. AI-assisted: yes
whamre commented 2026-10-20 13:13:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by whamre on 2026-10-20T13:13:02Z.


Ran fix/dcc-mip-store-pending (201cb328b) on SILENT HILL: The Short Message (PPSA10112), 3 runs, and its base main e9a5a0c84, 3 runs, alternating, same machine and dump. The outside the write watch without the guest bytes saved stop does not come back on your branch (0 of 3), and main doesn't show it either (0 of 3).

Both builds then hit a separate stall while the title loads its first level, unrelated to this change: frames grow to 20–30 s and Unreal's 120 s render-thread check ends the run. That happened in 3 of 3 runs on your branch and 2 of 3 on main. It's a race we see on main too, so with 3 runs I can't tell your branch from main past that point. I'm looking at that stall separately.

Windows 11 (26300), RTX 2080 SUPER, NVIDIA 616.92, WinLibs GCC 15.2.0, Release.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6291678700 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7579#issuecomment-6291678700). Originally posted by [whamre](https://github.com/whamre) on 2026-10-20T13:13:02Z. --- Ran `fix/dcc-mip-store-pending` (`201cb328b`) on SILENT HILL: The Short Message (PPSA10112), 3 runs, and its base `main` `e9a5a0c84`, 3 runs, alternating, same machine and dump. The `outside the write watch without the guest bytes saved` stop does not come back on your branch (0 of 3), and `main` doesn't show it either (0 of 3). Both builds then hit a separate stall while the title loads its first level, unrelated to this change: frames grow to 20–30 s and Unreal's 120 s render-thread check ends the run. That happened in 3 of 3 runs on your branch and 2 of 3 on `main`. It's a race we see on `main` too, so with 3 runs I can't tell your branch from `main` past that point. I'm looking at that stall separately. Windows 11 (26300), RTX 2080 SUPER, NVIDIA 616.92, WinLibs GCC 15.2.0, Release. AI-assisted: yes.
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!7579
No description provided.