fix(agc): run the read guard over a shader capture's lazy pages and raw word reads #6475

Merged
EagleBearerYS merged 3 commits from upstream-pr/6475 into main 2026-10-19 01:39:11 +00:00
EagleBearerYS commented 2026-10-15 16:38:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-15T16:38:52Z.


What

#1193 dropped a safety check: a shader capture no longer runs the multisample read guard over the guest memory it reads. @MichonGoddijn231849 confirmed it and asked for this fix with a test (comment).

The regression. Before #1193, ShaderMemory::page read a page with GuestMemory::Read the first time a capture touched it, and Read runs the read guard first. The guard #419 installs (guardReads in MultisampleTarget.cpp) makes a CPU read throw when it overlaps a multisampled color target, whose samples are only on the host, or a resident native multisample depth target, instead of returning bytes that were never written there. #1193 (4651980eba) replaced the whole-page read with FlushGpuWrites, and copies each 64-byte block as the capture reads it. FlushGpuWrites runs the flush hook but not the guard, so a capture over such a target read the stale guest bytes silently.

The fix (commits 1-2). GuestMemory::GuardRead exposes the guard, and Read, ReadCommitted and ReadCommittedUnsynced use it. ShaderMemory::page calls it over the page where the whole-page read stood, before the flush, as Read does. So the check runs once per page a capture touches, at the same point and over the same range as before #1193, and costs what it did then: with no target registered, a few atomic loads. The block copies don't need it:

  • a pooled page (#1193 added the pool) is reset when it's reused, and goes through page() again;
  • later reads of a page weren't checked again before #1193 either, since they were served from the page read at first touch. A target that goes live between two reads of one capture (the indirect path's per-record captures share one ShaderMemory) is no less checked than before, and its host-only rendering doesn't change the guest bytes a block copy reads.

A sibling gap (commit 3). On a page that recorded GPU work writes, a capture reads each dword on its own. The dwords that the driver's write evidence says that work leaves unchanged (PendingWrite::Raw and VerifyRaw) are copied straight from guest memory. That path (29b4601564) predates the guard (#419) and never ran it, unlike the word reads through GuestMemory::Read. It now runs GuardRead over the dword first: a few atomic loads per raw word when nothing is registered, next to the pending-write query each raw word already makes. With it, every guest read a capture makes runs the guard: whole pages, lazy blocks (through their page), synced words and raw words. Known values (PendingWrite::KnownValue) read no guest memory.

The commits:

  1. refactor(agc): expose the guest read guard as GuestMemory::GuardRead. No behaviour change.
  2. fix(agc): run the read guard over a shader capture's lazily read pages, with its test.
  3. fix(agc): run the read guard on a shader capture's raw word reads, with its test.

Scope: the driver's other direct guest reads aren't shader captures, weren't guarded before #1193, and #1193 didn't touch them. They are buffer uploads and input snapshots (ShaderResources.cpp, GuestBufferMemory.cpp), the write-evidence copies taken before a hook read (VariantValidation.cpp, CaptureValidation.cpp, the recorder) and copy count records (BufferCopy.cpp). They lie outside the guard as #419 defines it (CPU reads through GuestMemory::Read and ReadCommitted, DMA_DATA copies, texture and storage image lookups), and this PR leaves them as they are.

Tested

  • agc_multisample_guest_access (multisampleGuestAccessTests in tests/Recorder.cpp), next to the existing refusals of plain reads of a live 4x target:
    • a capture of a shader whose SRT lies in the target's memory must throw "a CPU read"; one whose SRT lies just past the target must read normally; the first again, now on a pooled page, must throw;
    • with a pending-write query that answers Raw for every page and word, so the capture reads word by word and raw, the capture must throw, and one past the target must read normally; with Sync, the word reads that were already guarded must throw too.
  • GitHub's runners, on my fork:
    • Commit 2, on main 92e50418f3: with main's ShaderMemory.cpp and GuestMemory.cpp, agc_multisample_guest_access fails on Linux at "a shader capture of a resolved-only multisampled target's memory did not throw"; with the fix, the recorder binary's 39 tests pass 20 of 20 (run).
    • Commit 3: with commit 2's ShaderMemory.cpp, the test fails on Linux at "a shader capture's raw word read of a resolved-only multisampled target's memory did not throw"; with commit 3 the 39 tests pass 20 of 20 (run).
    • GitHub's Windows runner has no Vulkan device, so the recorder tests skip there (41 of 42); the change builds with WinLibs GCC 15.2 and the libc and libkernel suites pass, apart from guest_kqueue, which fails on main in the same runs. The suites pass on Linux too (75 and 143 tests).
    • The ^agc sweep at the head (run): 602 of 602 pass on Linux (42 skipped). On Windows 594 of 596 pass, and both failures also fail without these commits: agc_driver_pm4_replay_tool exits with 0xc0000139 in every Windows sweep on GitHub's runners today, including branches without this change, and agc_interpolant_mapping printed that its tests passed and then timed out at exit, a hang we've also seen without this change.
  • Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), WinLibs GCC 15.2, ANYPS5_REQUIRE_VULKAN=1, at this head: agc_multisample_guest_access passes 5 of 5. With main's guard code (GuestMemory.hpp, GuestMemory.cpp and ShaderMemory.cpp at 92e50418f3, the new test kept) it fails 5 of 5 with "a shader capture of a resolved-only multisampled target's memory did not throw".
  • python3 tools/check_conventions.py --base origin/main: passed.

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 (#1193 is merged)
  • Related: #1193, #419
  • Unblocks: no title; restores the refusal #419 gives shader captures, which #1193 dropped (asked for on #1193)
  • GPUs tested: lavapipe (llvmpipe, LLVM 20.1.2) on GitHub's Ubuntu runner; NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4876644230 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6475). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-15T16:38:52Z. --- ### What #1193 dropped a safety check: a shader capture no longer runs the multisample read guard over the guest memory it reads. @MichonGoddijn231849 confirmed it and asked for this fix with a test ([comment](https://github.com/boykopovar/AnyPS5/pull/1193#issuecomment-6195605546)). **The regression.** Before #1193, `ShaderMemory::page` read a page with `GuestMemory::Read` the first time a capture touched it, and `Read` runs the read guard first. The guard #419 installs (`guardReads` in `MultisampleTarget.cpp`) makes a CPU read throw when it overlaps a multisampled color target, whose samples are only on the host, or a resident native multisample depth target, instead of returning bytes that were never written there. #1193 (4651980eba) replaced the whole-page read with `FlushGpuWrites`, and copies each 64-byte block as the capture reads it. `FlushGpuWrites` runs the flush hook but not the guard, so a capture over such a target read the stale guest bytes silently. **The fix (commits 1-2).** `GuestMemory::GuardRead` exposes the guard, and `Read`, `ReadCommitted` and `ReadCommittedUnsynced` use it. `ShaderMemory::page` calls it over the page where the whole-page read stood, before the flush, as `Read` does. So the check runs once per page a capture touches, at the same point and over the same range as before #1193, and costs what it did then: with no target registered, a few atomic loads. The block copies don't need it: - a pooled page (#1193 added the pool) is reset when it's reused, and goes through `page()` again; - later reads of a page weren't checked again before #1193 either, since they were served from the page read at first touch. A target that goes live between two reads of one capture (the indirect path's per-record captures share one `ShaderMemory`) is no less checked than before, and its host-only rendering doesn't change the guest bytes a block copy reads. **A sibling gap (commit 3).** On a page that recorded GPU work writes, a capture reads each dword on its own. The dwords that the driver's write evidence says that work leaves unchanged (`PendingWrite::Raw` and `VerifyRaw`) are copied straight from guest memory. That path (29b4601564) predates the guard (#419) and never ran it, unlike the word reads through `GuestMemory::Read`. It now runs `GuardRead` over the dword first: a few atomic loads per raw word when nothing is registered, next to the pending-write query each raw word already makes. With it, every guest read a capture makes runs the guard: whole pages, lazy blocks (through their page), synced words and raw words. Known values (`PendingWrite::KnownValue`) read no guest memory. The commits: 1. `refactor(agc)`: expose the guest read guard as `GuestMemory::GuardRead`. No behaviour change. 2. `fix(agc)`: run the read guard over a shader capture's lazily read pages, with its test. 3. `fix(agc)`: run the read guard on a shader capture's raw word reads, with its test. Scope: the driver's other direct guest reads aren't shader captures, weren't guarded before #1193, and #1193 didn't touch them. They are buffer uploads and input snapshots (`ShaderResources.cpp`, `GuestBufferMemory.cpp`), the write-evidence copies taken before a hook read (`VariantValidation.cpp`, `CaptureValidation.cpp`, the recorder) and copy count records (`BufferCopy.cpp`). They lie outside the guard as #419 defines it (CPU reads through `GuestMemory::Read` and `ReadCommitted`, DMA_DATA copies, texture and storage image lookups), and this PR leaves them as they are. ### Tested - `agc_multisample_guest_access` (`multisampleGuestAccessTests` in `tests/Recorder.cpp`), next to the existing refusals of plain reads of a live 4x target: - a capture of a shader whose SRT lies in the target's memory must throw "a CPU read"; one whose SRT lies just past the target must read normally; the first again, now on a pooled page, must throw; - with a pending-write query that answers `Raw` for every page and word, so the capture reads word by word and raw, the capture must throw, and one past the target must read normally; with `Sync`, the word reads that were already guarded must throw too. - GitHub's runners, on my fork: - Commit 2, on `main` 92e50418f3: with `main`'s `ShaderMemory.cpp` and `GuestMemory.cpp`, `agc_multisample_guest_access` fails on Linux at "a shader capture of a resolved-only multisampled target's memory did not throw"; with the fix, the recorder binary's 39 tests pass 20 of 20 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38765851702)). - Commit 3: with commit 2's `ShaderMemory.cpp`, the test fails on Linux at "a shader capture's raw word read of a resolved-only multisampled target's memory did not throw"; with commit 3 the 39 tests pass 20 of 20 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38765832624)). - GitHub's Windows runner has no Vulkan device, so the recorder tests skip there (41 of 42); the change builds with WinLibs GCC 15.2 and the libc and libkernel suites pass, apart from `guest_kqueue`, which fails on `main` in the same runs. The suites pass on Linux too (75 and 143 tests). - The `^agc` sweep at the head ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38765869113)): 602 of 602 pass on Linux (42 skipped). On Windows 594 of 596 pass, and both failures also fail without these commits: `agc_driver_pm4_replay_tool` exits with 0xc0000139 in every Windows sweep on GitHub's runners today, including branches without this change, and `agc_interpolant_mapping` printed that its tests passed and then timed out at exit, a hang we've also seen without this change. - Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), WinLibs GCC 15.2, `ANYPS5_REQUIRE_VULKAN=1`, at this head: `agc_multisample_guest_access` passes 5 of 5. With `main`'s guard code (`GuestMemory.hpp`, `GuestMemory.cpp` and `ShaderMemory.cpp` at 92e50418f3, the new test kept) it fails 5 of 5 with "a shader capture of a resolved-only multisampled target's memory did not throw". - `python3 tools/check_conventions.py --base origin/main`: passed. ### 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 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 (#1193 is merged) - [x] Related: #1193, #419 - [x] Unblocks: no title; restores the refusal #419 gives shader captures, which #1193 dropped (asked for on #1193) - [x] GPUs tested: lavapipe (llvmpipe, LLVM 20.1.2) on GitHub's Ubuntu runner; NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11 - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-15 16:53:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T16:53:13Z.


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 6771 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp L40

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/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 5021 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 5925 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6185 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6186 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6192 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6273 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6486 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6615 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6701 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6718 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6747 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6759 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6763 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6820 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6868 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6946 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6947 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6960 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6970 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6971 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7201 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 7233 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 7258 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7332 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7371 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 7432 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 7505 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7604 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6197506094 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6475#issuecomment-6197506094). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T16:53:13Z. --- <!-- 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 6771](https://www.github.com/boykopovar/AnyPS5/pull/6771) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` [L40](https://github.com/boykopovar/AnyPS5/blob/134a3510c81326b1eb6278117d393ac30897d0aa/core/libs/prx/libSceAgcDriver/tests/Recorder.cpp#L40) | | | 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/tests/Recorder.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6273](https://www.github.com/boykopovar/AnyPS5/pull/6273) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6486](https://www.github.com/boykopovar/AnyPS5/pull/6486) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6701](https://www.github.com/boykopovar/AnyPS5/pull/6701) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6718](https://www.github.com/boykopovar/AnyPS5/pull/6718) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6759](https://www.github.com/boykopovar/AnyPS5/pull/6759) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6763](https://www.github.com/boykopovar/AnyPS5/pull/6763) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6820](https://www.github.com/boykopovar/AnyPS5/pull/6820) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 6970](https://www.github.com/boykopovar/AnyPS5/pull/6970) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6971](https://www.github.com/boykopovar/AnyPS5/pull/6971) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 7233](https://www.github.com/boykopovar/AnyPS5/pull/7233) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 7258](https://www.github.com/boykopovar/AnyPS5/pull/7258) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7371](https://www.github.com/boykopovar/AnyPS5/pull/7371) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 7432](https://www.github.com/boykopovar/AnyPS5/pull/7432) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` |
MichonGoddijn231849 commented 2026-10-16 07:51:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MichonGoddijn231849 on 2026-10-16T07:51:00Z.


Thanks, this is what I asked for on #1193. I read the diff: the guard runs once per page at first touch, where the whole-page read used to be, and the raw-word path now has it too. That closes the gap #1193 opened, and the gap from 29b4601564 that predates #419. The test covers a fresh page, a pooled page, raw words and synced words, and checks that a capture just past the 64 KiB target still reads normally, on its own page within the 5 x 64 KiB block. Good from my side.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6210756001 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6475#issuecomment-6210756001). Originally posted by [MichonGoddijn231849](https://github.com/MichonGoddijn231849) on 2026-10-16T07:51:00Z. --- Thanks, this is what I asked for on #1193. I read the diff: the guard runs once per page at first touch, where the whole-page read used to be, and the raw-word path now has it too. That closes the gap #1193 opened, and the gap from 29b4601564 that predates #419. The test covers a fresh page, a pooled page, raw words and synced words, and checks that a capture just past the 64 KiB target still reads normally, on its own page within the 5 x 64 KiB block. Good from my side.
EagleBearerYS commented 2026-10-16 07:52:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T07:52:27Z.


Thanks for reading it through, @MichonGoddijn231849.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6210778056 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6475#issuecomment-6210778056). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T07:52:27Z. --- Thanks for reading it through, @MichonGoddijn231849.
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!6475
No description provided.