feat(agc): capture and replay frames on macOS #19610

Open
imellag wants to merge 4 commits from upstream-pr/19610 into main
imellag commented 2026-11-13 15:51:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by imellag on 2026-11-13T15:51:37Z.


What

Frame capture (APS5_FRAME_CAPTURE) and agc_frame_replay work on Windows and Linux only; on macOS the recorder throws (docs/dev/debt/libSceAgcDriver.md). This ports both to macOS, following the Linux path:

  • core/libs/prx/libc/include/specifics/macos/HostMapping.hpp gives the Linux HostMapping interface on macOS:
    • Walk and Find use proc_pidinfo(PROC_PIDREGIONPATHINFO), which returns the region covering an address or the next one (like PROCMAP_QUERY_COVERING_OR_NEXT_VMA), with protection, share mode, inode and path, and EINVAL past the last region;
    • Readable probes a page with mach_vm_read_overwrite;
    • PlaceNoReplace maps with mach_vm_allocate(VM_FLAGS_FIXED), which refuses an occupied range (KERN_NO_SPACE) as MAP_FIXED_NOREPLACE does.
  • FrameRecorder::committedRanges and the file-mapping end probe take the Linux code on macOS. agc_frame_replay's committedWritable, commit and mapHostRanges do too, with PlaceNoReplace for the host ranges.
  • agc_frame_replay is linked without PIE at 0x500000000000 on macOS, as on Windows. A PIE x86-64 executable under Rosetta 2 gets dyld, dyld.aot and the Rosetta runtime (about 2.8 MiB) at a random address between 0x200000000 and about 0x204000000, and the main thread's stack (about 64 MiB) at a random address near 0x300000000, both inside the guest arena (0x200000000 to 0xFC00000000). A captured guest range there cannot be mapped (fixed guest mapping ... overlaps a host region in the guest arena). With the high non-PIE base, the arena range of the replay process holds no host region at all (checked over several launches).
  • Tests:
    • the frame capture and replay tests that ran on Windows and Linux now also run on macOS (agc_driver_frame_capture_eop, agc_driver_frame_replay*, and the agc_driver_frame_replay_state_tests modes that capture real memory);
    • agc_driver_frame_replay_tests is linked like the tool, since rewind_split needs three guest allocations to ascend, and a PIE test binary has dyld inside the arena;
    • the six std::system launches of the tool, including the rewind_reuse one from #17642, go through one runTool helper. It keeps the Windows quoting, and on macOS passes DYLD_LIBRARY_PATH on, which /bin/sh drops (SIP) so the tool would not find the Vulkan loader;
    • host_neighbors maps its two pages at a hint of 0x400000000000 on macOS, because macOS hands out the lowest free addresses first and reused its freed page before the replay mapped it.
  • Found with real titles (second commit):
    • On macOS the driver read-traps storage textures and labels the GPU wrote (StorageTexture::releaseReadTraps, LabelTrapsEnabled, both __APPLE__ only), which leaves their pages with no host access until a CPU read resolves them. The recorder skipped a mapping with no access, so a capture taken while a trap was armed left those pages out, and the replay stopped with storage texture has no committed guest pages (ASTRO BOT, a 17 MiB storage texture at 0x55d700000). The recorder now records the read-trapped runs that GuestWriteWatchReadTraps reports, readable, with the allocation's protection. The snapshot reads them through ReadCommitted, whose FlushGpuWrites flushes and releases the driver's trap.
    • The replay committed watched ranges without registering them with the write watch, unlike libkernel's mappings, so the driver treated their heaps as unwatched and tried to import or copy them whole (FATAL: an address-based build copies 11732 MiB of 158 registered ranges ... heap not fully write-watched). On Linux and macOS a restored Watched range is now registered with GuestWriteWatchRegister. Windows commits in a write-watched arena already.
  • Docs: BUILD.md and the frame capture debt entry name macOS. The entry also notes two macOS points: shared memory that no other mapping shares reports as private, so it is captured as unwatched, and how aliases are reported by the macOS write watch is not measured.

Why: on macOS a title A/B means minutes of boot, menus and pad timing per run, and the measured window is a few seconds of it. With a capture, a driver or shader change can be compared on the same frames in seconds, with the replay's pixel comparison and trace.

Tested

macOS 27.2, Apple M4 Pro, x86-64 Release under Rosetta 2, MoltenVK 1.4.2 and the validation layer of Vulkan SDK 1.4.363.0 (ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer), main 999d6f8ffd.

  • New test modes:
    • read_trapped (macOS): read-traps a guest block, captures one frame, and requires the block in the capture's ranges;
    • watched_restore (Linux and macOS): restores a capture with a Watched range, and requires GuestWriteWatchCovers on it.
    • Each fails without its fix (read-trapped guest pages were left out of the capture's ranges, the replay did not put a watched range under the write watch) and passes with it.
  • ctest -R 'frame_(replay|capture)': 52 tests on the head (50 on the first commit).
    • On main, 13 of these exist on macOS (the tests that need no captured memory) and pass.
    • With this PR, all of them pass: 50 of 50 in 3 of 3 runs on the first commit, 52 of 52 in 2 of 2 runs on the head. The loader inserts the layer in 37 tests, there is no VUID- and no was not found but was requested by env var VK_INSTANCE_LAYERS.
    • Before the link and test fixes above, the end-to-end tests failed with the dyld overlap, with agc_frame_replay exited with 512 (the missing DYLD_LIBRARY_PATH), and with the guest allocations do not ascend.
  • After merging main 1af270fa29 (which brought rewind_reuse from #17642): ctest -R 'present_upscale|linear_target|frame_(replay|capture)|label', 3 runs on each side. With this PR all 54 agc_driver_frame_* tests pass 3 of 3; on main 9 of them exist on macOS and pass. The 5 failing label tests and the 6 VUID-VkDeviceCreateInfo-sType-unique (all from agc_completion_label_wait) are the same on both sides.
  • A title: PPSA14431 relinked from this tree (the libraries were built with #17425 applied locally, since libcurl does not link on macOS on main).
    • Captured with APS5_FRAME_CAPTURE_AT_FLIP=600 APS5_FRAME_CAPTURE_FRAMES=10: 10 frames, 71 calls, 15 memory deltas, 64 ranges, 159.4 MiB snapshot, 24.4 MiB on disk, no warnings. The title kept running at the same 54 fps.
    • agc_frame_replay on that capture replays 10 frames and 10 submits, with no unfinished submit, no pacing timeout, no released wait and 0 MiB skipped. The 3 display buffers compared are identical to the captured references (pixels_identical 1.0, max_channel_diff 0; the frame is the controls screen, not blank).
    • --repeat 5 gives per-pass p50 frame times of 7.73, 9.11, 8.21, 8.53 and 8.22 ms; the whole run takes 6 s.
  • Two more titles, captured with a local tree (main plus #17611, #17976 and our open PRs, which these titles need on macOS) and this PR, replayed with this PR's agc_frame_replay (--repeat 3):
    • Planet of Lana (PPSA19450), in gameplay: 10 frames, 7126 calls, 572 memory deltas (2.3 GiB), 4.0 GiB snapshot. The replay finishes 3 passes in 40 s, 1680 submits, none unfinished, no pacing timeout; the 3 compared display buffers have pixels_identical 0.999999 and max_channel_diff 5. The menu capture of the same title compares at 1.0 and 0.
    • ASTRO BOT (PPSA21564), at its intro: 10 frames, 710 calls, 3.8 GiB snapshot. It replays 3 passes with pixels_identical 1.0 and max_channel_diff 0 only with the second commit; before it, the replay stopped on the missing storage texture and then on the import budget.
    • ASTRO BOT in gameplay (2020 calls in 10 frames) still does not replay: a replayed thread stays in Driver::WaitSettledFor before a memory delta, and the replay was still waiting after 16 minutes. Not investigated in this PR.
  • python3 tools/check_conventions.py --base upstream/main passes.

Not run on Windows or Linux. Their code paths are unchanged except that the Windows quoting of the test's tool command moved into runTool.

tools/pr_overlap.py: #12568, #17338 and #19557 change neighbouring lines of agc_driver_frame_replay_state_tests.cmake and BUILD.md, so whichever lands later rebases; none of them touches the platform code.

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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: Apple M4 Pro, MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), macOS 27.2 (x86-64 under Rosetta 2)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5298558802 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19610). Originally posted by [imellag](https://github.com/imellag) on 2026-11-13T15:51:37Z. --- ### What Frame capture (`APS5_FRAME_CAPTURE`) and `agc_frame_replay` work on Windows and Linux only; on macOS the recorder throws (`docs/dev/debt/libSceAgcDriver.md`). This ports both to macOS, following the Linux path: - `core/libs/prx/libc/include/specifics/macos/HostMapping.hpp` gives the Linux `HostMapping` interface on macOS: - `Walk` and `Find` use `proc_pidinfo(PROC_PIDREGIONPATHINFO)`, which returns the region covering an address or the next one (like `PROCMAP_QUERY_COVERING_OR_NEXT_VMA`), with protection, share mode, inode and path, and `EINVAL` past the last region; - `Readable` probes a page with `mach_vm_read_overwrite`; - `PlaceNoReplace` maps with `mach_vm_allocate(VM_FLAGS_FIXED)`, which refuses an occupied range (`KERN_NO_SPACE`) as `MAP_FIXED_NOREPLACE` does. - `FrameRecorder::committedRanges` and the file-mapping end probe take the Linux code on macOS. `agc_frame_replay`'s `committedWritable`, `commit` and `mapHostRanges` do too, with `PlaceNoReplace` for the host ranges. - `agc_frame_replay` is linked without PIE at 0x500000000000 on macOS, as on Windows. A PIE x86-64 executable under Rosetta 2 gets dyld, `dyld.aot` and the Rosetta runtime (about 2.8 MiB) at a random address between 0x200000000 and about 0x204000000, and the main thread's stack (about 64 MiB) at a random address near 0x300000000, both inside the guest arena (0x200000000 to 0xFC00000000). A captured guest range there cannot be mapped (`fixed guest mapping ... overlaps a host region in the guest arena`). With the high non-PIE base, the arena range of the replay process holds no host region at all (checked over several launches). - Tests: - the frame capture and replay tests that ran on Windows and Linux now also run on macOS (`agc_driver_frame_capture_eop`, `agc_driver_frame_replay*`, and the `agc_driver_frame_replay_state_tests` modes that capture real memory); - `agc_driver_frame_replay_tests` is linked like the tool, since `rewind_split` needs three guest allocations to ascend, and a PIE test binary has dyld inside the arena; - the six `std::system` launches of the tool, including the `rewind_reuse` one from #17642, go through one `runTool` helper. It keeps the Windows quoting, and on macOS passes `DYLD_LIBRARY_PATH` on, which `/bin/sh` drops (SIP) so the tool would not find the Vulkan loader; - `host_neighbors` maps its two pages at a hint of 0x400000000000 on macOS, because macOS hands out the lowest free addresses first and reused its freed page before the replay mapped it. - Found with real titles (second commit): - On macOS the driver read-traps storage textures and labels the GPU wrote (`StorageTexture::releaseReadTraps`, `LabelTrapsEnabled`, both `__APPLE__` only), which leaves their pages with no host access until a CPU read resolves them. The recorder skipped a mapping with no access, so a capture taken while a trap was armed left those pages out, and the replay stopped with `storage texture has no committed guest pages` (ASTRO BOT, a 17 MiB storage texture at 0x55d700000). The recorder now records the read-trapped runs that `GuestWriteWatchReadTraps` reports, readable, with the allocation's protection. The snapshot reads them through `ReadCommitted`, whose `FlushGpuWrites` flushes and releases the driver's trap. - The replay committed watched ranges without registering them with the write watch, unlike libkernel's mappings, so the driver treated their heaps as unwatched and tried to import or copy them whole (`FATAL: an address-based build copies 11732 MiB of 158 registered ranges ... heap not fully write-watched`). On Linux and macOS a restored `Watched` range is now registered with `GuestWriteWatchRegister`. Windows commits in a write-watched arena already. - Docs: `BUILD.md` and the frame capture debt entry name macOS. The entry also notes two macOS points: shared memory that no other mapping shares reports as private, so it is captured as unwatched, and how aliases are reported by the macOS write watch is not measured. Why: on macOS a title A/B means minutes of boot, menus and pad timing per run, and the measured window is a few seconds of it. With a capture, a driver or shader change can be compared on the same frames in seconds, with the replay's pixel comparison and trace. ### Tested macOS 27.2, Apple M4 Pro, x86-64 Release under Rosetta 2, MoltenVK 1.4.2 and the validation layer of Vulkan SDK 1.4.363.0 (`ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer`), `main` 999d6f8ffd. - New test modes: - `read_trapped` (macOS): read-traps a guest block, captures one frame, and requires the block in the capture's ranges; - `watched_restore` (Linux and macOS): restores a capture with a `Watched` range, and requires `GuestWriteWatchCovers` on it. - Each fails without its fix (`read-trapped guest pages were left out of the capture's ranges`, `the replay did not put a watched range under the write watch`) and passes with it. - `ctest -R 'frame_(replay|capture)'`: 52 tests on the head (50 on the first commit). - On `main`, 13 of these exist on macOS (the tests that need no captured memory) and pass. - With this PR, all of them pass: 50 of 50 in 3 of 3 runs on the first commit, 52 of 52 in 2 of 2 runs on the head. The loader inserts the layer in 37 tests, there is no `VUID-` and no `was not found but was requested by env var VK_INSTANCE_LAYERS`. - Before the link and test fixes above, the end-to-end tests failed with the dyld overlap, with `agc_frame_replay exited with 512` (the missing `DYLD_LIBRARY_PATH`), and with `the guest allocations do not ascend`. - After merging `main` 1af270fa29 (which brought `rewind_reuse` from #17642): `ctest -R 'present_upscale|linear_target|frame_(replay|capture)|label'`, 3 runs on each side. With this PR all 54 `agc_driver_frame_*` tests pass 3 of 3; on `main` 9 of them exist on macOS and pass. The 5 failing label tests and the 6 `VUID-VkDeviceCreateInfo-sType-unique` (all from `agc_completion_label_wait`) are the same on both sides. - A title: PPSA14431 relinked from this tree (the libraries were built with #17425 applied locally, since `libcurl` does not link on macOS on `main`). - Captured with `APS5_FRAME_CAPTURE_AT_FLIP=600 APS5_FRAME_CAPTURE_FRAMES=10`: `10 frames, 71 calls, 15 memory deltas`, 64 ranges, 159.4 MiB snapshot, 24.4 MiB on disk, no warnings. The title kept running at the same 54 fps. - `agc_frame_replay` on that capture replays 10 frames and 10 submits, with no unfinished submit, no pacing timeout, no released wait and 0 MiB skipped. The 3 display buffers compared are identical to the captured references (`pixels_identical` 1.0, `max_channel_diff` 0; the frame is the controls screen, not blank). - `--repeat 5` gives per-pass p50 frame times of 7.73, 9.11, 8.21, 8.53 and 8.22 ms; the whole run takes 6 s. - Two more titles, captured with a local tree (`main` plus #17611, #17976 and our open PRs, which these titles need on macOS) and this PR, replayed with this PR's `agc_frame_replay` (`--repeat 3`): - Planet of Lana (PPSA19450), in gameplay: 10 frames, 7126 calls, 572 memory deltas (2.3 GiB), 4.0 GiB snapshot. The replay finishes 3 passes in 40 s, 1680 submits, none unfinished, no pacing timeout; the 3 compared display buffers have `pixels_identical` 0.999999 and `max_channel_diff` 5. The menu capture of the same title compares at 1.0 and 0. - ASTRO BOT (PPSA21564), at its intro: 10 frames, 710 calls, 3.8 GiB snapshot. It replays 3 passes with `pixels_identical` 1.0 and `max_channel_diff` 0 only with the second commit; before it, the replay stopped on the missing storage texture and then on the import budget. - ASTRO BOT in gameplay (2020 calls in 10 frames) still does not replay: a replayed thread stays in `Driver::WaitSettledFor` before a memory delta, and the replay was still waiting after 16 minutes. Not investigated in this PR. - `python3 tools/check_conventions.py --base upstream/main` passes. Not run on Windows or Linux. Their code paths are unchanged except that the Windows quoting of the test's tool command moved into `runTool`. `tools/pr_overlap.py`: #12568, #17338 and #19557 change neighbouring lines of `agc_driver_frame_replay_state_tests.cmake` and `BUILD.md`, so whichever lands later rebases; none of them touches the platform code. ### 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 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: Apple M4 Pro, MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), macOS 27.2 (x86-64 under Rosetta 2) - [x] AI-assisted: yes
kurexw commented 2026-11-17 06:17:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kurexw on 2026-11-17T06:17:46Z.

Review: COMMENTED


Tested on an Apple M4 (MacBook Air, macOS 27.2, MoltenVK 1.4.2 and the validation layer from the LunarG SDK 1.4.363.1, x86-64 build under Rosetta).

Base: main at a72186d3cf plus #22056 and #22074, two build fixes that main currently needs on macOS. This PR merged cleanly onto it.

I ran ctest -R 'present_upscale|linear_target|frame_(replay|capture)|label' 3 times on each side with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer. That is 65 tests on the base and 110 with this PR.

  • 44 of the 45 frame capture/replay tests this PR enables on macOS pass 3/3, including frame_replay_read_trapped and frame_replay_watched_restore. The loader inserts the layer, and there are no VUID- lines and no was not found but was requested.

  • agc_driver_frame_replay_rewind_reuse fails 3/3:

    agc_frame_replay: Vulkan loader: Failed loading libvulkan.1.dylib: dlopen(libvulkan.1.dylib, 0x0006): tried: ... (no such file)
    FAILED: agc_frame_replay exited with 512
    

    This test came from #17642, which merged after this branch's base (999d6f8ffd). Its testRewindTargetReuse in tests/FrameReplay.cpp still starts agc_frame_replay with a direct std::system(command.c_str()). Your other modes go through runTool, which passes DYLD_LIBRARY_PATH on macOS, so the child loses the Vulkan loader path here. Rebasing and routing that call through runTool should fix it. I haven't tried that change.

  • No regression in the other tests. With this PR, agc_driver_alias_copy_label failed 2 of 3 runs and label_ordered_flush_disabled 1 of 3; on the base they passed. Because those are timing-sensitive, I ran both binaries alternately, 15 rounds each, outside ctest:

    alias_copy_label failures label_ordered_flush --disabled failures
    base 14/15 3/15
    this PR 14/15 3/15

    The results are identical, so the ctest difference was noise. VUID totals over the 65 shared tests are identical too (18 on each side, none in tests this PR touches).

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5933893069 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19610#pullrequestreview-5933893069). Originally posted by [kurexw](https://github.com/kurexw) on 2026-11-17T06:17:46Z. **Review:** COMMENTED --- Tested on an Apple M4 (MacBook Air, macOS 27.2, MoltenVK 1.4.2 and the validation layer from the LunarG SDK 1.4.363.1, x86-64 build under Rosetta). Base: `main` at a72186d3cf plus #22056 and #22074, two build fixes that `main` currently needs on macOS. This PR merged cleanly onto it. I ran `ctest -R 'present_upscale|linear_target|frame_(replay|capture)|label'` 3 times on each side with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer`. That is 65 tests on the base and 110 with this PR. - 44 of the 45 frame capture/replay tests this PR enables on macOS pass 3/3, including `frame_replay_read_trapped` and `frame_replay_watched_restore`. The loader inserts the layer, and there are no `VUID-` lines and no `was not found but was requested`. - **`agc_driver_frame_replay_rewind_reuse` fails 3/3:** ``` agc_frame_replay: Vulkan loader: Failed loading libvulkan.1.dylib: dlopen(libvulkan.1.dylib, 0x0006): tried: ... (no such file) FAILED: agc_frame_replay exited with 512 ``` This test came from #17642, which merged after this branch's base (999d6f8ffd). Its `testRewindTargetReuse` in `tests/FrameReplay.cpp` still starts `agc_frame_replay` with a direct `std::system(command.c_str())`. Your other modes go through `runTool`, which passes `DYLD_LIBRARY_PATH` on macOS, so the child loses the Vulkan loader path here. Rebasing and routing that call through `runTool` should fix it. I haven't tried that change. - No regression in the other tests. With this PR, `agc_driver_alias_copy_label` failed 2 of 3 runs and `label_ordered_flush_disabled` 1 of 3; on the base they passed. Because those are timing-sensitive, I ran both binaries alternately, 15 rounds each, outside ctest: | | `alias_copy_label` failures | `label_ordered_flush --disabled` failures | |---|---|---| | base | 14/15 | 3/15 | | this PR | 14/15 | 3/15 | The results are identical, so the ctest difference was noise. VUID totals over the 65 shared tests are identical too (18 on each side, none in tests this PR touches).
MarcZX10 commented 2026-11-21 03:59:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T03:59:52Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks merging based on the changed code reviewed; the reported macOS test results were supplied by the author and were not run here.

What I ran

Reviewed head 0809e3647484c888709888ba0b4f81e0a7290ce7. No commands or tests were run. I read the prepared description, commit list, manifest, full diff, and all 11 changed files listed as reviewed; no changed files were excluded.

Results

Check Result Note
Diff and changed files passed Read all 11 reviewed files
Tests not run Results in the description are author reported

Findings

Blocking

None.

Non-blocking

None.

Not verified

Builds, tests, and runtime behavior were not independently verified. Windows and Linux were not tested by the author, per the description. The description reports a remaining ASTRO BOT gameplay replay wait after 16 minutes; it was not investigated in this change.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6002689298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19610#pullrequestreview-6002689298). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T03:59:52Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks merging based on the changed code reviewed; the reported macOS test results were supplied by the author and were not run here. ## What I ran Reviewed head `0809e3647484c888709888ba0b4f81e0a7290ce7`. No commands or tests were run. I read the prepared description, commit list, manifest, full diff, and all 11 changed files listed as reviewed; no changed files were excluded. ## Results | Check | Result | Note | |---|---|---| | Diff and changed files | passed | Read all 11 reviewed files | | Tests | not run | Results in the description are author reported | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Builds, tests, and runtime behavior were not independently verified. Windows and Linux were not tested by the author, per the description. The description reports a remaining ASTRO BOT gameplay replay wait after 16 minutes; it was not investigated in this change. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 22:29:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:29:23Z.

Review: COMMENTED


The trial merge onto c1601e56d5 conflicts in FrameReplay.cpp, agc_driver_frame_replay_state_tests.cmake, and BUILD.md. Please preserve the macOS control for a replay mapping colliding with an already occupied address, as well as a capture/replay round trip over a file-backed region. Those exercise the platform changes separately from the shared frame-state logic. My review is source-based and I have no native macOS execution result.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6179732307 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19610#pullrequestreview-6179732307). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T22:29:23Z. **Review:** COMMENTED --- The trial merge onto `c1601e56d5` conflicts in `FrameReplay.cpp`, `agc_driver_frame_replay_state_tests.cmake`, and `BUILD.md`. Please preserve the macOS control for a replay mapping colliding with an already occupied address, as well as a capture/replay round trip over a file-backed region. Those exercise the platform changes separately from the shared frame-state logic. My review is source-based and I have no native macOS execution result. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/19610:upstream-pr/19610'
git switch 'upstream-pr/19610'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/19610'
git switch 'upstream-pr/19610'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/19610'
git switch 'upstream-pr/19610'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/19610'
git switch 'main'
git merge --squash 'upstream-pr/19610'
git switch 'main'
git merge --ff-only 'upstream-pr/19610'
git switch 'main'
git merge 'upstream-pr/19610'
git push origin 'main'
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!19610
No description provided.