fix(agc): store GPU results over CPU-stamped bytes the CPU left unchanged #1599

Merged
andrey231 merged 4 commits from upstream-pr/1599 into main 2026-10-10 06:28:10 +00:00
andrey231 commented 2026-10-08 14:06:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by andrey231 on 2026-10-08T14:06:20Z.


What

Fixes the boxed glyphs in PPSA12544's menus (finding 2 of #865).

StorageTexture::writeBackLayers keeps the CPU's bytes for a block the write watch stamped after the layer's generation, and drops the GPU results there. The write watch reports page writes, not changes. In #865 the stamped pages of the font atlas still hold the allocator fill (0xCD) the image was uploaded from, so the CPU changed nothing there, yet the glyphs the GPU drew into those pages are lost.

The keep decision now also asks whether the CPU changed the bytes:

  • When an image's layers get their generation (upload, including the clear and import paths), images up to 1 MiB keep a copy of their guest bytes (generationBaseline). An image uploaded through the CPU snapshot already has it in original.
  • A range that is stamped, but whose guest bytes still equal that copy, stores the GPU results. A range whose bytes differ keeps the CPU's bytes, as before.

A stale baseline (generation moved on without a new copy) can only make the comparison fail, which keeps the previous behaviour. Real CPU stores change bytes and still win. The direct (import) write-back path is unchanged: the decision only removes ranges from the CPU-kept set.

This is the range-level variant of the baseline comparison suggested in #865. @merwie's experiment there merges per byte and forces the CPU write-back path; this one keeps the existing paths and decides per stored range.

Tested

  • Windows 11, NVIDIA RTX 5090, MinGW GCC 15.2.0, Release.
  • New unchangedCpuStampTests in agc_driver_recorder_tests: a 256x256 RGBA8 linear image at +0x2000 in watched memory (so its first unit is an edge block), cleared on the GPU and marked dirty, then the CPU rewrites the first page.
    • CPU rewrote the same bytes: every texel is stored. Without the fix: dropped 14336 of 65536 texels the GPU wrote (the 0xe000-byte head edge).
    • CPU changed one byte: that byte keeps the CPU's value, the GPU results past the head block are stored.
  • ctest: 456 of 456 passed. agc_driver_recorder_tests (run directly, as it needs the GPU): passed.
  • PPSA12544 (Hollow Knight: Silksong) on Windows, with #846, #1482, #1495 and #788 applied for bring-up: the title menu, Options and Game Options render without boxed letters or digits, and APS5_TRACE_FLUSH=1 reports no CPU-kept blocks. No eager write-back.
  • tools/check_conventions.py --base origin/main passes.

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

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4788025663 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1599). Originally posted by [andrey231](https://github.com/andrey231) on 2026-10-08T14:06:20Z. --- ### What Fixes the boxed glyphs in PPSA12544's menus (finding 2 of #865). `StorageTexture::writeBackLayers` keeps the CPU's bytes for a block the write watch stamped after the layer's generation, and drops the GPU results there. The write watch reports page writes, not changes. In #865 the stamped pages of the font atlas still hold the allocator fill (`0xCD`) the image was uploaded from, so the CPU changed nothing there, yet the glyphs the GPU drew into those pages are lost. The keep decision now also asks whether the CPU changed the bytes: - When an image's layers get their generation (`upload`, including the clear and import paths), images up to 1 MiB keep a copy of their guest bytes (`generationBaseline`). An image uploaded through the CPU snapshot already has it in `original`. - A range that is stamped, but whose guest bytes still equal that copy, stores the GPU results. A range whose bytes differ keeps the CPU's bytes, as before. A stale baseline (generation moved on without a new copy) can only make the comparison fail, which keeps the previous behaviour. Real CPU stores change bytes and still win. The direct (import) write-back path is unchanged: the decision only removes ranges from the CPU-kept set. This is the range-level variant of the baseline comparison suggested in #865. @merwie's experiment there merges per byte and forces the CPU write-back path; this one keeps the existing paths and decides per stored range. ### Tested - Windows 11, NVIDIA RTX 5090, MinGW GCC 15.2.0, Release. - New `unchangedCpuStampTests` in `agc_driver_recorder_tests`: a 256x256 RGBA8 linear image at +0x2000 in watched memory (so its first unit is an edge block), cleared on the GPU and marked dirty, then the CPU rewrites the first page. - CPU rewrote the same bytes: every texel is stored. Without the fix: `dropped 14336 of 65536 texels the GPU wrote` (the 0xe000-byte head edge). - CPU changed one byte: that byte keeps the CPU's value, the GPU results past the head block are stored. - `ctest`: 456 of 456 passed. `agc_driver_recorder_tests` (run directly, as it needs the GPU): passed. - PPSA12544 (Hollow Knight: Silksong) on Windows, with #846, #1482, #1495 and #788 applied for bring-up: the title menu, Options and Game Options render without boxed letters or digits, and `APS5_TRACE_FLUSH=1` reports no CPU-kept blocks. No eager write-back. - `tools/check_conventions.py --base origin/main` passes. ### Checklist - [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 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fisherjoey commented 2026-10-09 04:22:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fisherjoey on 2026-10-09T04:22:29Z.


Linux results, since this was tested on Windows only. Everything passes here.

Nobara 44 (Linux 7.2), GCC 16.2.1, Release, BUILD_TESTING=ON. This PR merged onto main 29e533ac.

main 29e533ac main + this PR
RTX 5070 Ti, driver 595.91.07, ctest -R agc_driver -j1 183 / 183 183 / 183
RADV, Ryzen 5 7600X iGPU (gfx1036), Mesa 26.2.1, same 183 / 183 183 / 183
CPU tests (-E agc_driver) 279 / 280 279 / 280

The CPU failure is guest_dynamic_loader, which fails the same way on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6074209453 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1599#issuecomment-6074209453). Originally posted by [fisherjoey](https://github.com/fisherjoey) on 2026-10-09T04:22:29Z. --- Linux results, since this was tested on Windows only. Everything passes here. Nobara 44 (Linux 7.2), GCC 16.2.1, Release, `BUILD_TESTING=ON`. This PR merged onto `main` 29e533ac. | | `main` 29e533ac | `main` + this PR | |---|---|---| | RTX 5070 Ti, driver 595.91.07, `ctest -R agc_driver -j1` | 183 / 183 | 183 / 183 | | RADV, Ryzen 5 7600X iGPU (gfx1036), Mesa 26.2.1, same | 183 / 183 | 183 / 183 | | CPU tests (`-E agc_driver`) | 279 / 280 | 279 / 280 | The CPU failure is `guest_dynamic_loader`, which fails the same way on `main`.
awake-devel commented 2026-10-09 06:46:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by awake-devel on 2026-10-09T06:46:55Z.


Investigated and written by Claude Code (AI), and posted by me after review.

Tested on Linux with PPSA12544 (Arch, GCC 16, GTX 1050 Ti Max-Q, NVIDIA 580.178.04). This PR was cherry-picked onto our Silksong test stack (main cba8d86d plus the open Linux PRs the title needs), with APS5_TRACE_FLUSH=1.

The font atlas keeps no stale block with this PR.

Build Runs Atlas (512x512 R8) "keeps 1 CPU-written 64 KiB blocks (first stored byte at +0x0)"
without this PR 3 3 of 3
with this PR 4 0 of 4

Two of the runs with the PR went through the menus and the intro cinematic into gameplay (Moss Grotto). The menu and HUD text rendered with no boxes.

  • unchangedCpuStampTests passes on Linux. In the same agc_driver_recorder_tests binary, the check "(w) a cache over the pages the import reported sees no change" fails, but it fails the same way on our stack without this PR, so it isn't caused by this change.
  • Performance: no measurable change on the title screen (capped at 60 fps; hidden window, 2 timed runs each). CPU time per frame was 16.6–16.7 ms without the PR and 17.0–17.3 ms with it, within this setup's noise.
  • Images above the 1 MiB cap keep the old behaviour, as designed. In gameplay, several 1920x1080 images still log kept blocks, for example 0x264510000 ... keeps 135 CPU-written 64 KiB blocks and 0x263b10000 ... keeps 95. Their "first stored byte" is at +0x870000 or +0x900000, past the end of the image data. If those are the stamps behind the fps drop reported in #865, they would need the same comparison, or a different rule, for large images.
  • One of the 4 runs with the PR crashed with a segfault in the title's own code, on the scale screen before the cinematic. The emulator logged nothing before the crash. The retry with the same build ran through to gameplay. I don't think it's related, but I can't rule it out from one occurrence.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6075891952 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1599#issuecomment-6075891952). Originally posted by [awake-devel](https://github.com/awake-devel) on 2026-10-09T06:46:55Z. --- > Investigated and written by Claude Code (AI), and posted by me after review. Tested on Linux with PPSA12544 (Arch, GCC 16, GTX 1050 Ti Max-Q, NVIDIA 580.178.04). This PR was cherry-picked onto our Silksong test stack (`main` cba8d86d plus the open Linux PRs the title needs), with `APS5_TRACE_FLUSH=1`. **The font atlas keeps no stale block with this PR.** | Build | Runs | Atlas (512x512 R8) "keeps 1 CPU-written 64 KiB blocks (first stored byte at +0x0)" | |---|---|---| | without this PR | 3 | 3 of 3 | | with this PR | 4 | 0 of 4 | Two of the runs with the PR went through the menus and the intro cinematic into gameplay (Moss Grotto). The menu and HUD text rendered with no boxes. - `unchangedCpuStampTests` passes on Linux. In the same `agc_driver_recorder_tests` binary, the check "(w) a cache over the pages the import reported sees no change" fails, but it fails the same way on our stack without this PR, so it isn't caused by this change. - **Performance:** no measurable change on the title screen (capped at 60 fps; hidden window, 2 timed runs each). CPU time per frame was 16.6–16.7 ms without the PR and 17.0–17.3 ms with it, within this setup's noise. - **Images above the 1 MiB cap keep the old behaviour, as designed.** In gameplay, several 1920x1080 images still log kept blocks, for example `0x264510000 ... keeps 135 CPU-written 64 KiB blocks` and `0x263b10000 ... keeps 95`. Their "first stored byte" is at +0x870000 or +0x900000, past the end of the image data. If those are the stamps behind the fps drop reported in #865, they would need the same comparison, or a different rule, for large images. - One of the 4 runs with the PR crashed with a segfault in the title's own code, on the scale screen before the cinematic. The emulator logged nothing before the crash. The retry with the same build ran through to gameplay. I don't think it's related, but I can't rule it out from one occurrence.
andrey231 commented 2026-10-09 11:32:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by andrey231 on 2026-10-09T11:32:20Z.


Thanks @fisherjoey and @awake-devel for the Linux runs.

Rebased onto main d70b8998 to resolve the conflict with #2096. That change keeps a guest-byte snapshot (original) for the clear path and for unwatched imports, and compares it when the memory is untracked. The keep decision now takes both: compared || !edge || StoredOver(...) from #2096, then !unchangedSinceBaseline(from, to) from this PR. Watched imports (the PPSA12544 font atlas) still have originalValid == false on main, so they still need the baseline here. Where #2096 now leaves original valid, the comparison uses it instead of generationBaseline.

After the rebase (Windows 11, RTX 5090): ctest 507 of 507, tools/check_conventions.py passes, and unchangedCpuStampTests passes. In agc_driver_recorder_tests, storageRefreshTests fails with "the refresh's store of the results did not reach guest memory" before reaching this test. It fails the same way on main d70b8998 without this PR, so I ran the rest of the binary with that call skipped locally.

On the large images @awake-devel saw keeping blocks: the 1 MiB cap is deliberate, since a baseline copy of every 8 MiB render target on each upload costs time and memory. Those 1920x1080 images keep everything before +0x870000/+0x900000 for the CPU, so the same unchanged-stamp question may apply to them, but it needs a different way to compare than a full copy per upload. If they turn out to be behind the fps drop in #865, I would rather look at them in a separate PR.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6080014159 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1599#issuecomment-6080014159). Originally posted by [andrey231](https://github.com/andrey231) on 2026-10-09T11:32:20Z. --- Thanks @fisherjoey and @awake-devel for the Linux runs. Rebased onto `main` d70b8998 to resolve the conflict with #2096. That change keeps a guest-byte snapshot (`original`) for the clear path and for unwatched imports, and compares it when the memory is untracked. The keep decision now takes both: `compared || !edge || StoredOver(...)` from #2096, then `!unchangedSinceBaseline(from, to)` from this PR. Watched imports (the PPSA12544 font atlas) still have `originalValid == false` on `main`, so they still need the baseline here. Where #2096 now leaves `original` valid, the comparison uses it instead of `generationBaseline`. After the rebase (Windows 11, RTX 5090): `ctest` 507 of 507, `tools/check_conventions.py` passes, and `unchangedCpuStampTests` passes. In `agc_driver_recorder_tests`, `storageRefreshTests` fails with "the refresh's store of the results did not reach guest memory" before reaching this test. It fails the same way on `main` d70b8998 without this PR, so I ran the rest of the binary with that call skipped locally. On the large images @awake-devel saw keeping blocks: the 1 MiB cap is deliberate, since a baseline copy of every 8 MiB render target on each upload costs time and memory. Those 1920x1080 images keep everything before `+0x870000`/`+0x900000` for the CPU, so the same unchanged-stamp question may apply to them, but it needs a different way to compare than a full copy per upload. If they turn out to be behind the fps drop in #865, I would rather look at them in a separate PR. Written with AI assistance.
orbz22 commented 2026-10-09 14:34:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by orbz22 on 2026-10-09T14:34:17Z.


Confirmed on Windows with NVIDIA, PPSA12544 (Hollow Knight: Silksong 01.000.010).

Build: main d70b8998 + #1836 + #1968 + #1969 + #846, relinked with --windows --module-dir Media/Plugins.

  • Without this PR: the title menu showed the "O" of OPTIONS as a solid box. On the profile screen, several letters of SELECT PROFILE and of each NEW GAME were boxes, and so were the slot numbers "1." and "2.".
  • With this PR (cdd9653f) merged on top: I compared dumped frames (APS5_DUMP_FRAMES) of the title menu and the profile screen. Every glyph is intact: START GAME, OPTIONS, EXTRAS, SELECT PROFILE, the four NEW GAME labels, 1. to 4. and BACK.
  • Gameplay in Moss Grotto renders normally after it.
  • The log still prints guest memory changed while GPU results were pending; keeping the CPU's blocks 8 times in a 150 s run, for storage images at 0x260371000, 0x2603e0000, 0x262090000, 0x2629d0000 and 0x263310000. I saw no visible damage from them in these scenes.

Windows 11, RTX 3060 Laptop (NVIDIA 616.92), WinLibs GCC 15.2.

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6083039637 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1599#issuecomment-6083039637). Originally posted by [orbz22](https://github.com/orbz22) on 2026-10-09T14:34:17Z. --- Confirmed on Windows with NVIDIA, PPSA12544 (Hollow Knight: Silksong 01.000.010). Build: `main` d70b8998 + #1836 + #1968 + #1969 + #846, relinked with `--windows --module-dir Media/Plugins`. - **Without this PR:** the title menu showed the "O" of OPTIONS as a solid box. On the profile screen, several letters of SELECT PROFILE and of each NEW GAME were boxes, and so were the slot numbers "1." and "2.". - **With this PR (cdd9653f) merged on top:** I compared dumped frames (`APS5_DUMP_FRAMES`) of the title menu and the profile screen. Every glyph is intact: START GAME, OPTIONS, EXTRAS, SELECT PROFILE, the four NEW GAME labels, 1. to 4. and BACK. - Gameplay in Moss Grotto renders normally after it. - The log still prints `guest memory changed while GPU results were pending; keeping the CPU's blocks` 8 times in a 150 s run, for storage images at 0x260371000, 0x2603e0000, 0x262090000, 0x2629d0000 and 0x263310000. I saw no visible damage from them in these scenes. Windows 11, RTX 3060 Laptop (NVIDIA 616.92), WinLibs GCC 15.2. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
adriadam10 commented 2026-10-10 00:14:47 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Thanks for the fix, and for the Linux/Windows confirmations in the thread. One thing before this can land:

  • core/libs/prx/libSceAgcDriver/tests/Recorder.cpp:2182 (unchangedCpuStampTests) does not fail without the change on Linux. I merged this onto current main (with #2096), removed && !unchangedSinceBaseline(from, to) at Texture.cpp:3529, rebuilt, and ran only this test (RADV): it still prints unchanged CPU stamps: ok. The "dropped 14336 of 65536 texels" failure you describe is Windows-only, so Linux CI/reviewers can't tell whether the fix is exercised. Please make the case reproduce on Linux as well (e.g. make sure the image reaches the watched-import path with originalValid == false, as the font atlas does, and assert that case), so the test fails on main and passes with the change on both hosts.
  • agc_driver_recorder_tests is not registered in ctest and exits early on main (drawInputReuseTests), so nothing in CI runs this test. If you can't register the whole binary, a small separate registered target for just this case would do.

Everything else I checked is fine: build + ctest (270/270, libSceAgcDriver scope) green, and the test passes with the fix applied.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5476537662 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1599#pullrequestreview-5476537662). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T00:14:47Z. **Review:** CHANGES_REQUESTED --- Thanks for the fix, and for the Linux/Windows confirmations in the thread. One thing before this can land: - `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp:2182` (`unchangedCpuStampTests`) does not fail without the change on Linux. I merged this onto current `main` (with #2096), removed `&& !unchangedSinceBaseline(from, to)` at `Texture.cpp:3529`, rebuilt, and ran only this test (RADV): it still prints `unchanged CPU stamps: ok`. The "dropped 14336 of 65536 texels" failure you describe is Windows-only, so Linux CI/reviewers can't tell whether the fix is exercised. Please make the case reproduce on Linux as well (e.g. make sure the image reaches the watched-import path with `originalValid == false`, as the font atlas does, and assert that case), so the test fails on `main` and passes with the change on both hosts. - `agc_driver_recorder_tests` is not registered in ctest and exits early on `main` (`drawInputReuseTests`), so nothing in CI runs this test. If you can't register the whole binary, a small separate registered target for just this case would do. Everything else I checked is fine: build + ctest (270/270, libSceAgcDriver scope) green, and the test passes with the fix applied.
andrey231 commented 2026-10-10 05:31:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by andrey231 on 2026-10-10T05:31:28Z.


Thanks @adriadam10, you were right. And it was not Linux-only: since the rebase onto #2096, the case passed without the fix on Windows too. The test memory got a host import there as well, the import was compared rather than watched, and original was valid, so the write-back took the compared path and kept the unchanged block anyway.

Rebased onto main b667d1e3 and pushed 4e453180:

  • The case now runs over two paths, and checks before the write-back that the image is on the intended one (write-watched, and imported or not):
    • watched memory with no host import (hostImportAlignment = 0 in the test's context), on every host. original is valid here.
    • a watched host import, on Linux (SetImportWatch(Watch), restored afterwards, as in importWindowTests). As with the font atlas, originalValid is false after the GPU-direct write-back, so the decision uses the generation baseline.
  • It is registered as its own ctest test, agc_unchanged_cpu_stamps (agc_driver_recorder_tests --unchanged-cpu-stamps-only), next to agc_pipeline_cache. It skips with 77 when there is no Vulkan device. check_test_registration.py: 503 executables, none unregistered.

Each run below was made with and without && !unchangedSinceBaseline(from, to):

Host Path Without the change With the change
Windows 11, NVIDIA watched memory fails: dropped 14336 of 65536 texels passes
Linux 6.18 (WSL2), lavapipe, via ctest watched memory fails: dropped 14336 of 65536 texels passes
Linux 6.18 (WSL2), lavapipe, via ctest watched host import (run first) fails: dropped 14336 of 65536 texels passes
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6094233811 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1599#issuecomment-6094233811). Originally posted by [andrey231](https://github.com/andrey231) on 2026-10-10T05:31:28Z. --- Thanks @adriadam10, you were right. And it was not Linux-only: since the rebase onto #2096, the case passed without the fix on Windows too. The test memory got a host import there as well, the import was compared rather than watched, and `original` was valid, so the write-back took the compared path and kept the unchanged block anyway. Rebased onto `main` b667d1e3 and pushed 4e453180: - The case now runs over two paths, and checks before the write-back that the image is on the intended one (write-watched, and imported or not): - **watched memory with no host import** (`hostImportAlignment = 0` in the test's context), on every host. `original` is valid here. - **a watched host import**, on Linux (`SetImportWatch(Watch)`, restored afterwards, as in `importWindowTests`). As with the font atlas, `originalValid` is false after the GPU-direct write-back, so the decision uses the generation baseline. - It is registered as its own ctest test, `agc_unchanged_cpu_stamps` (`agc_driver_recorder_tests --unchanged-cpu-stamps-only`), next to `agc_pipeline_cache`. It skips with 77 when there is no Vulkan device. `check_test_registration.py`: 503 executables, none unregistered. Each run below was made with and without `&& !unchangedSinceBaseline(from, to)`: | Host | Path | Without the change | With the change | |---|---|---|---| | Windows 11, NVIDIA | watched memory | fails: `dropped 14336 of 65536 texels` | passes | | Linux 6.18 (WSL2), lavapipe, via ctest | watched memory | fails: `dropped 14336 of 65536 texels` | passes | | Linux 6.18 (WSL2), lavapipe, via ctest | watched host import (run first) | fails: `dropped 14336 of 65536 texels` | passes |
adriadam10 commented 2026-10-10 06:18:58 +00:00 (Migrated from github.com)

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

Review: APPROVED


Thanks for the rework: agc_unchanged_cpu_stamps now fails without the change on Linux and passes with it, and it is registered in ctest.

Checked on current main (rebased, no conflicts): scoped build + ctest of libSceAgcDriver green, the new test fails with unchangedSinceBaseline removed, conventions check passes. Linux/Windows runs on PPSA12544 from @fisherjoey, @awake-devel and @orbz22 cover what I can't run here.

Added on top as our own commit:

  • docs/dev/TechnicalDebt.md (Functional): the 1 MiB baseline limit, and that a CPU store rewriting the baseline value after the GPU changed it is not distinguished from no store.

Merging once the full Build (linux + windows) is green, since the test opens a Vulkan device.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5477930027 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1599#pullrequestreview-5477930027). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T06:18:58Z. **Review:** APPROVED --- Thanks for the rework: `agc_unchanged_cpu_stamps` now fails without the change on Linux and passes with it, and it is registered in ctest. Checked on current `main` (rebased, no conflicts): scoped build + ctest of libSceAgcDriver green, the new test fails with `unchangedSinceBaseline` removed, conventions check passes. Linux/Windows runs on PPSA12544 from @fisherjoey, @awake-devel and @orbz22 cover what I can't run here. Added on top as our own commit: - `docs/dev/TechnicalDebt.md` (Functional): the 1 MiB baseline limit, and that a CPU store rewriting the baseline value after the GPU changed it is not distinguished from no store. Merging once the full Build (linux + windows) is green, since the test opens a Vulkan device.
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!1599
No description provided.