feat(libSceAgc): implement sceAgcAcquireMemSetEngine #1060

Merged
Kikoarl merged 2 commits from upstream-pr/1060 into main 2026-11-04 23:42:38 +00:00
Kikoarl commented 2026-10-07 06:49:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-07T06:49:07Z.


What

Implements sceAgcAcquireMemSetEngine in libSceAgc following the PS5 12.70 module (0xd450).

Provenance & Semantics:

  • Identified via SHA-1 NID matching (NID W0WEyog0f74) from compatibility analysis of New Joe & Mac Caveman Ninja (PPSA02801).
  • Behavior follows the PS5 12.70 module (0xd450): validates that the packet opcode byte is 0x58 (returns 0x8a6c000c if not, leaving packet untouched), leaves packet length unchecked, and patches bit 31 of word 1 using (engine << 31u).
  • Reconciles with the canonical public declaration int sceAgcAcquireMemSetEngine(std::uint32_t* packet, std::uint8_t engine) in core/libs/prx/libSceAgc/include/Agc.hpp.
  • Retains null and misaligned pointer refusals.
  • Added technical debt entry to docs/dev/debt/libSceAgc.md.

Tested

  • Automated tests in core/libs/prx/libSceAgc/tests/Commands.cpp:
    • Patching ACQUIRE_MEM packets emitted by both sceAgcDcbAcquireMem and sceAgcAcbAcquireMem.
    • Validated engine bit toggling and parity across values (engine = 0, 1, 2, 3, 4, 0xff).
    • Verified non-ACQUIRE_MEM packets return 0x8a6c000c and leave payload unmodified.
    • Verified ACQUIRE_MEM packets with non-default lengths are patched without rejection.
    • Negative cases: null pointer and misaligned pointer throw.
    • Executed ctest --test-dir /tmp/anyps5_build -R agc_commands (100% passed).
    • Executed ctest --test-dir /tmp/anyps5_build -R agc_initialization (100% passed).
    • Executed python3 core/libs/tests/test_public_headers.py --audit-only (12,368 exports verified).
    • Executed python3 tools/check_conventions.py (all checks 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 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4769038871 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1060). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-07T06:49:07Z. --- ### What Implements `sceAgcAcquireMemSetEngine` in `libSceAgc` following the PS5 12.70 module (`0xd450`). Provenance & Semantics: - Identified via SHA-1 NID matching (NID `W0WEyog0f74`) from compatibility analysis of *New Joe & Mac Caveman Ninja* (`PPSA02801`). - Behavior follows the PS5 12.70 module (`0xd450`): validates that the packet opcode byte is `0x58` (returns `0x8a6c000c` if not, leaving packet untouched), leaves packet length unchecked, and patches bit 31 of word 1 using `(engine << 31u)`. - Reconciles with the canonical public declaration `int sceAgcAcquireMemSetEngine(std::uint32_t* packet, std::uint8_t engine)` in `core/libs/prx/libSceAgc/include/Agc.hpp`. - Retains null and misaligned pointer refusals. - Added technical debt entry to `docs/dev/debt/libSceAgc.md`. ### Tested - Automated tests in `core/libs/prx/libSceAgc/tests/Commands.cpp`: - Patching `ACQUIRE_MEM` packets emitted by both `sceAgcDcbAcquireMem` and `sceAgcAcbAcquireMem`. - Validated engine bit toggling and parity across values (`engine = 0, 1, 2, 3, 4, 0xff`). - Verified non-ACQUIRE_MEM packets return `0x8a6c000c` and leave payload unmodified. - Verified ACQUIRE_MEM packets with non-default lengths are patched without rejection. - Negative cases: null pointer and misaligned pointer throw. - Executed `ctest --test-dir /tmp/anyps5_build -R agc_commands` (100% passed). - Executed `ctest --test-dir /tmp/anyps5_build -R agc_initialization` (100% passed). - Executed `python3 core/libs/tests/test_public_headers.py --audit-only` (12,368 exports verified). - Executed `python3 tools/check_conventions.py` (all checks 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 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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
popcoder565 commented 2026-10-09 19:42:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T19:42:16Z.


Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), RTX 3060 Laptop (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head ef1a412d, merged onto main 8b393b6e in one build with 31 other PRs that had no Windows run.

  • This PR's tests pass: agc_commands.
  • Full ctest in that build: 520 of 521. The one failure is guest_offline_imports, broken by #2359 (reported there).

No title was run.

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6088015956 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1060#issuecomment-6088015956). Originally posted by [popcoder565](https://github.com/popcoder565) on 2026-10-09T19:42:16Z. --- Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), RTX 3060 Laptop (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head `ef1a412d`, merged onto `main` 8b393b6e in one build with 31 other PRs that had no Windows run. - This PR's tests pass: `agc_commands`. - Full ctest in that build: 520 of 521. The one failure is `guest_offline_imports`, broken by #2359 (reported there). No title was run. _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
frankea commented 2026-10-10 04:14:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by frankea on 2026-10-10T04:14:58Z.


Windows run of this PR alone on current main. Head ef1a412d merged onto c72d5ce1 (clean); Windows 11 10.0.26200, RTX 4090 (NVIDIA 616.92, subgroup 32, so every GPU execution test runs), MinGW-w64 GCC 15.2.0 r7, Release, BUILD_TESTING=ON.

  • Full ctest: 573 of 573 passed. 3 skipped for the environment (video_out_flip_lifetime, video_out_flip_controls, guest_video_out_wqhd_detection_no_vulkan), same as main on this machine.
  • SDL_DIRECTINPUT_ENABLED=0 was set for the run because of #1042; it does not touch this PR's code.

No title was run. Tested with AI assistance (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6093661313 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1060#issuecomment-6093661313). Originally posted by [frankea](https://github.com/frankea) on 2026-10-10T04:14:58Z. --- Windows run of this PR alone on current `main`. Head `ef1a412d` merged onto `c72d5ce1` (clean); Windows 11 10.0.26200, RTX 4090 (NVIDIA 616.92, subgroup 32, so every GPU execution test runs), MinGW-w64 GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`. - Full ctest: 573 of 573 passed. 3 skipped for the environment (`video_out_flip_lifetime`, `video_out_flip_controls`, `guest_video_out_wqhd_detection_no_vulkan`), same as `main` on this machine. - `SDL_DIRECTINPUT_ENABLED=0` was set for the run because of #1042; it does not touch this PR's code. No title was run. Tested with AI assistance (Claude Code).
blawesom commented 2026-10-11 08:55:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T08:55:25Z.


Hi! This PR currently conflicts with main, so I rebased it onto the latest main (d3e84f85, includes #3296). The only conflict was the extern-declaration list in core/libs/prx/libSceAgc/tests/Commands.cpp, resolved by keeping both sides' declarations. It builds and agc_command_tests passes locally.

If it helps, the rebased branch is available to pull:

git fetch https://github.com/blawesom/AnyPS5 rebase/pr-1060
git reset --hard FETCH_HEAD

Feel free to ignore this if you'd rather rebase yourself.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107335350 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1060#issuecomment-6107335350). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-11T08:55:25Z. --- Hi! This PR currently conflicts with `main`, so I rebased it onto the latest `main` (`d3e84f85`, includes #3296). The only conflict was the extern-declaration list in `core/libs/prx/libSceAgc/tests/Commands.cpp`, resolved by keeping both sides' declarations. It builds and `agc_command_tests` passes locally. If it helps, the rebased branch is available to pull: ``` git fetch https://github.com/blawesom/AnyPS5 rebase/pr-1060 git reset --hard FETCH_HEAD ``` Feel free to ignore this if you'd rather rebase yourself.
Kikoarl commented 2026-10-11 10:58:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-11T10:58:25Z.


@blawesom Thank you for the heads-up and resolving the declarations in Commands.cpp! Rebased cleanly onto latest main, verified agc_commands tests pass, and pushed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6108306164 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1060#issuecomment-6108306164). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-11T10:58:25Z. --- @blawesom Thank you for the heads-up and resolving the declarations in Commands.cpp! Rebased cleanly onto latest main, verified agc_commands tests pass, and pushed.
BunnyFl commented 2026-10-31 15:20:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-10-31T15:20:41Z.

Review: APPROVED


Checked against firmware 13.42's libSceAgc.sprx at head 134717ebf5: sceAgcAcquireMemSetEngine does what this PR implements, on every input I ran. Read from the disassembly and run under an emulator, not on a console.

13.42 body (export at 0xd500, 0x2b bytes; the thread's 12.70 address was 0xd450):

  • d500-d512: the opcode byte at packet+1 must be 0x58, else it returns 0x8a6c000c with the packet unchanged. The length isn't read.
  • d514-d527: dword 1 becomes (dword1 & 0x7fffffff) | ((uint8_t)engine << 31) on a 32-bit register, so only the engine's low bit lands, and it returns 0.

This is the same as the 12.70 reading here and as the code at this head.

Run. I compared the module with this PR's logic on 140 cases: five header words (0x58 with two lengths, 0x59, 0x10, and a 0x58 byte without the type bits), four dword-1 values (0x1234, 0x80001234, 0xffffffff, 0) and engines 0, 1, 2, 3, 4, 0xff and 0x1ff. All 140 gave the same result and dword 1, dword 0 and the next two words were never written, and three runs gave identical output.

The one difference is a pointer the module doesn't check: a null packet faulted on the first read in the harness, and a packet one byte off was read as given (its opcode byte then came from the next byte, giving 0x8a6c000c). This PR throws for both, as asked earlier in the thread.

The whole diff looks right to me: the implementation, the test (DCB and ACB packets, the custom-length packet, the non-ACQUIRE_MEM packet left unchanged, the null and misaligned refusals) and the debt move.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5723526100 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1060#pullrequestreview-5723526100). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-10-31T15:20:41Z. **Review:** APPROVED --- Checked against firmware 13.42's `libSceAgc.sprx` at head `134717ebf5`: `sceAgcAcquireMemSetEngine` does what this PR implements, on every input I ran. Read from the disassembly and run under an emulator, not on a console. **13.42 body** (export at `0xd500`, 0x2b bytes; the thread's 12.70 address was `0xd450`): - `d500`-`d512`: the opcode byte at `packet+1` must be `0x58`, else it returns `0x8a6c000c` with the packet unchanged. The length isn't read. - `d514`-`d527`: dword 1 becomes `(dword1 & 0x7fffffff) | ((uint8_t)engine << 31)` on a 32-bit register, so only the engine's low bit lands, and it returns 0. This is the same as the 12.70 reading here and as the code at this head. **Run.** I compared the module with this PR's logic on 140 cases: five header words (`0x58` with two lengths, `0x59`, `0x10`, and a `0x58` byte without the type bits), four dword-1 values (`0x1234`, `0x80001234`, `0xffffffff`, 0) and engines 0, 1, 2, 3, 4, `0xff` and `0x1ff`. All 140 gave the same result and dword 1, dword 0 and the next two words were never written, and three runs gave identical output. The one difference is a pointer the module doesn't check: a null packet faulted on the first read in the harness, and a packet one byte off was read as given (its opcode byte then came from the next byte, giving `0x8a6c000c`). This PR throws for both, as asked earlier in the thread. The whole diff looks right to me: the implementation, the test (DCB and ACB packets, the custom-length packet, the non-`ACQUIRE_MEM` packet left unchanged, the null and misaligned refusals) and the debt move. AI-assisted: yes (Claude Code)
XairRrR commented 2026-11-03 23:44:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T23:44:21Z.

Review: APPROVED


Reviewed — approved

sceAgcAcquireMemSetEngine now matches the module behaviour described in the thread: it checks only the opcode byte, returns 0x8a6c000c and leaves the packet unchanged when that byte isn't 0x58, and writes the engine's low bit into bit 31 of dword 1. The PR merges and builds cleanly, its tests pass, and the extended test fails when the production change is reverted.

What I ran

Head 134717ebf58a309ca14b5f5340e2ab8ae0866980, main 1c8c0efc8c41314402e6966da5bef6ea3d639d10, merged with --no-ff (tree 20c09cd624fb7988fa04f029c46418007e61d6cc), Debian 13 VM (Intel Xeon Gold 6136), GCC 14.2.0, Release, Ninja.

git diff --check 1c8c0efc8c41314402e6966da5bef6ea3d639d10...134717ebf58a309ca14b5f5340e2ab8ae0866980
python3 tools/check_conventions.py --base 1c8c0efc8c41314402e6966da5bef6ea3d639d10
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_commands|agc_initialization|public_headers)$"
# negative control
git show 1c8c0efc8c41:core/libs/prx/libSceAgc/Patch/src/WaitRegMem.cpp > core/libs/prx/libSceAgc/Patch/src/WaitRegMem.cpp
git show 1c8c0efc8c41:core/libs/prx/libSceAgc/Unimplemented.cpp > core/libs/prx/libSceAgc/Unimplemented.cpp
ninja -C build -j32 -l32 libs
ctest --test-dir build --output-on-failure -R "^agc_commands$"
# restore the merged files
git show 20c09cd624fb:<same two paths> > <path>
ninja -C build -j32 -l32 libs
ctest --test-dir build -R "^agc_commands$"
git status --porcelain

Results

Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Configure / build / libs (script) ok
agc_commands, agc_initialization passed (0.01 s each)
public_headers passed (60.7 s on this VM; the PR doesn't change it)
Script test run (976 tests) no new failures and no timeouts; the one known failure (unwrap_self_..._destination_directory_group) also fails on main and isn't related
Validation layer comparison (script) the layer loaded in 21 of 21 tests; the only VUID lines are in agc_driver_image_gather_volume, marked "test not run on main" because the baseline is an older main that doesn't have that test. This PR doesn't touch the AGC driver, the shader recompiler or VideoOut, so those lines don't come from it
Worktree after the control git status --porcelain empty

Negative control

I restored Patch/src/WaitRegMem.cpp and Unimplemented.cpp from main and kept the new tests. After rebuilding libs, agc_commands fails:

output
1/1 Test #964: agc_commands .....................***Failed    0.01 sec
sceAgcAcquireMemSetEngine not implemented

With the merged files restored and rebuilt, agc_commands passes again.

Findings

Blocking

None.

Non-blocking

  • The debt entry describes the implemented behaviour instead of the gap. At docs/dev/debt/libSceAgc.md:6, the entry repeats what the code does. CONTRIBUTING.md asks an entry to state first what differs from the console. The one difference left is the pointer check. At WaitRegMem.cpp:100, a null or misaligned packet throws. The module doesn't check the pointer at all: it reads a null pointer and faults, and it reads a misaligned pointer as given, as BunnyFl's 13.42 run showed. Suggested fix: reduce the entry to that difference, e.g. "a null or non-4-byte-aligned packet throws; the module (12.70 0xd450, 13.42 0xd500) dereferences it unchecked". Refusing these pointers is consistent with the other Patch functions and was requested earlier in the thread, so the code itself should stay as it is.
  • The description cites the debt file inconsistently. The checklist links TechnicalDebt.md, while the entry went to docs/dev/debt/libSceAgc.md, as fogydes noted. This is cosmetic.

On earlier comments:

  • fogydes's report of missing checklist lines (Oct 29) no longer applies. The current description has Fixes, Unblocks and GPUs tested.
  • The code matches the semantics fma-rc and oneandonlydean asked for. engine is promoted from uint8_t to uint32_t before << 31, so only bit 0 lands and the shift is well defined. The test runs engines 2, 3, 4 and 0xff and confirms this.

Not verified

  • I didn't compare the behaviour against a console or the module binary. The module semantics come from the thread (fma-rc's reading of 12.70, BunnyFl's 13.42 disassembly and emulator run, JJenkx's 65,536-case run).
  • I didn't run anything on Windows or a GPU. This is a CPU-side packet patch with no GPU path.
  • No title was run.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5761080718 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1060#pullrequestreview-5761080718). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T23:44:21Z. **Review:** APPROVED --- # Reviewed — approved `sceAgcAcquireMemSetEngine` now matches the module behaviour described in the thread: it checks only the opcode byte, returns `0x8a6c000c` and leaves the packet unchanged when that byte isn't 0x58, and writes the engine's low bit into bit 31 of dword 1. The PR merges and builds cleanly, its tests pass, and the extended test fails when the production change is reverted. ## What I ran Head `134717ebf58a309ca14b5f5340e2ab8ae0866980`, `main` `1c8c0efc8c41314402e6966da5bef6ea3d639d10`, merged with `--no-ff` (tree `20c09cd624fb7988fa04f029c46418007e61d6cc`), Debian 13 VM (Intel Xeon Gold 6136), GCC 14.2.0, Release, Ninja. ``` git diff --check 1c8c0efc8c41314402e6966da5bef6ea3d639d10...134717ebf58a309ca14b5f5340e2ab8ae0866980 python3 tools/check_conventions.py --base 1c8c0efc8c41314402e6966da5bef6ea3d639d10 ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^(agc_commands|agc_initialization|public_headers)$" # negative control git show 1c8c0efc8c41:core/libs/prx/libSceAgc/Patch/src/WaitRegMem.cpp > core/libs/prx/libSceAgc/Patch/src/WaitRegMem.cpp git show 1c8c0efc8c41:core/libs/prx/libSceAgc/Unimplemented.cpp > core/libs/prx/libSceAgc/Unimplemented.cpp ninja -C build -j32 -l32 libs ctest --test-dir build --output-on-failure -R "^agc_commands$" # restore the merged files git show 20c09cd624fb:<same two paths> > <path> ninja -C build -j32 -l32 libs ctest --test-dir build -R "^agc_commands$" git status --porcelain ``` ## Results | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Configure / build / `libs` (script) | ok | | `agc_commands`, `agc_initialization` | passed (0.01 s each) | | `public_headers` | passed (60.7 s on this VM; the PR doesn't change it) | | Script test run (976 tests) | no new failures and no timeouts; the one known failure (`unwrap_self_..._destination_directory_group`) also fails on `main` and isn't related | | Validation layer comparison (script) | the layer loaded in 21 of 21 tests; the only VUID lines are in `agc_driver_image_gather_volume`, marked "test not run on main" because the baseline is an older `main` that doesn't have that test. This PR doesn't touch the AGC driver, the shader recompiler or VideoOut, so those lines don't come from it | | Worktree after the control | `git status --porcelain` empty | ## Negative control I restored `Patch/src/WaitRegMem.cpp` and `Unimplemented.cpp` from `main` and kept the new tests. After rebuilding `libs`, `agc_commands` fails: <details><summary>output</summary> ``` 1/1 Test #964: agc_commands .....................***Failed 0.01 sec sceAgcAcquireMemSetEngine not implemented ``` </details> With the merged files restored and rebuilt, `agc_commands` passes again. ## Findings ### Blocking None. ### Non-blocking - **The debt entry describes the implemented behaviour instead of the gap.** At [docs/dev/debt/libSceAgc.md:6](https://github.com/boykopovar/AnyPS5/blob/134717ebf58a309ca14b5f5340e2ab8ae0866980/docs/dev/debt/libSceAgc.md#L6-L6), the entry repeats what the code does. CONTRIBUTING.md asks an entry to state first what differs from the console. The one difference left is the pointer check. At [WaitRegMem.cpp:100](https://github.com/boykopovar/AnyPS5/blob/134717ebf58a309ca14b5f5340e2ab8ae0866980/core/libs/prx/libSceAgc/Patch/src/WaitRegMem.cpp#L99-L101), a null or misaligned `packet` throws. The module doesn't check the pointer at all: it reads a null pointer and faults, and it reads a misaligned pointer as given, as BunnyFl's 13.42 run showed. Suggested fix: reduce the entry to that difference, e.g. "a null or non-4-byte-aligned packet throws; the module (12.70 0xd450, 13.42 0xd500) dereferences it unchecked". Refusing these pointers is consistent with the other `Patch` functions and was requested earlier in the thread, so the code itself should stay as it is. - **The description cites the debt file inconsistently.** The checklist links `TechnicalDebt.md`, while the entry went to `docs/dev/debt/libSceAgc.md`, as fogydes noted. This is cosmetic. On earlier comments: - fogydes's report of missing checklist lines (Oct 29) no longer applies. The current description has `Fixes`, `Unblocks` and `GPUs tested`. - The code matches the semantics fma-rc and oneandonlydean asked for. `engine` is promoted from `uint8_t` to `uint32_t` before `<< 31`, so only bit 0 lands and the shift is well defined. The test runs engines 2, 3, 4 and 0xff and confirms this. ## Not verified - I didn't compare the behaviour against a console or the module binary. The module semantics come from the thread (fma-rc's reading of 12.70, BunnyFl's 13.42 disassembly and emulator run, JJenkx's 65,536-case run). - I didn't run anything on Windows or a GPU. This is a CPU-side packet patch with no GPU path. - No title was run. <!-- anyps5-bots job=2504 head=134717ebf58a309ca14b5f5340e2ab8ae0866980 -->
BunnyFl commented 2026-11-04 20:44:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-04T20:44:09Z.

Review: APPROVED


@Kikoarl re-checked at 8163f83295 — still approved.

The only commit after my approval of 134717ebf5 is the merge of main (8163f83295). Against main the PR's code and test lines are unchanged: WaitRegMem.cpp, Unimplemented.cpp and tests/Commands.cpp carry the same +/- lines as before. The one difference is in docs/dev/debt/libSceAgc.md, where main had already split sceAgcCbMemsetExclusive out of the shared entry, so the PR now just removes the one-line sceAgcAcquireMemSetEngine entry.

What I ran

Windows 11 Pro 10.0.26300, WinLibs GCC 15.2, Release, this head merged cleanly onto main b611e634f7 (97c40eba69):

  • agc_initialization and agc_commands: 2 of 2 pass.
  • Negative control: the same tree with core/libs/prx/libSceAgc/Patch/src/WaitRegMem.cpp and core/libs/prx/libSceAgc/Unimplemented.cpp from main fails agc_commands.
  • tools/pr_overlap.py --branch on this head: 5 open PRs share files. The 2 it couldn't compare share only docs/dev/debt/libSceAgc.md: #14085 edits the sceAgcAcbAtomicGds_0900 and workload entries, and #14212 only adds blank lines between entries. Neither touches the sceAgcAcquireMemSetEngine entry.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5775493350 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1060#pullrequestreview-5775493350). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-04T20:44:09Z. **Review:** APPROVED --- @Kikoarl re-checked at `8163f83295` — still approved. The only commit after my approval of `134717ebf5` is the merge of `main` (`8163f83295`). Against `main` the PR's code and test lines are unchanged: `WaitRegMem.cpp`, `Unimplemented.cpp` and `tests/Commands.cpp` carry the same +/- lines as before. The one difference is in `docs/dev/debt/libSceAgc.md`, where `main` had already split `sceAgcCbMemsetExclusive` out of the shared entry, so the PR now just removes the one-line `sceAgcAcquireMemSetEngine` entry. ## What I ran Windows 11 Pro 10.0.26300, WinLibs GCC 15.2, Release, this head merged cleanly onto `main` `b611e634f7` (`97c40eba69`): - `agc_initialization` and `agc_commands`: 2 of 2 pass. - Negative control: the same tree with `core/libs/prx/libSceAgc/Patch/src/WaitRegMem.cpp` and `core/libs/prx/libSceAgc/Unimplemented.cpp` from `main` fails `agc_commands`. - `tools/pr_overlap.py --branch` on this head: 5 open PRs share files. The 2 it couldn't compare share only `docs/dev/debt/libSceAgc.md`: #14085 edits the `sceAgcAcbAtomicGds_0900` and workload entries, and #14212 only adds blank lines between entries. Neither touches the `sceAgcAcquireMemSetEngine` entry.
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!1060
No description provided.