feat(libSceGnmDriver): expose base draw default state #18206

Open
DonRyuzaki wants to merge 4 commits from upstream-pr/18206 into main
DonRyuzaki commented 2026-11-10 21:00:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DonRyuzaki on 2026-11-10T21:00:37Z.


What

GTA V (CUSA00419, bring-up #18084) imports NID Idffwf3yh8s as sceGnmDrawInitDefaultHardwareState from the regular libSceGnmDriver. Current main provides that name only from libSceGnmDriverForNeoMode, so the regular PRX leaves the import unresolved. Add a regular-provider export, using _nid_disambig1 to keep its host symbol distinct while retaining the guest NID.

Share the existing 256-dword draw-state writer with sceGnmDrawInitDefaultHardwareState175, selecting SC_MODE_CNTL_1 = 0x06000000 for the unversioned function and preserving 0x06020000 for 175. Both refuse a buffer shorter than 256 dwords without writing. The pinned shadPS4 writer and packet arrays use this signature and sequence; their base and 175 arrays differ in only that mode word. The existing GNM technical debt records that these packets have not been checked on a console. Null and invalid-pointer behavior is also unmeasured; this follows the existing regular 175 writer's size-first path, without a new success fallback.

This change is independent of #18087's _padebug dependency mapping. It removes one regular-library import gap; the title was not retested and still has the other local conversion/runtime dependencies listed in #18084. No title-start or in-game claim is made.

Tested

Latest refresh (15 November 2026): current head 21ec57969d7deec7fbd045670cfdd5960617067e includes upstream main eef73731fc926d18e3e8b19849ed42511a1adb09 and merged #20844, which fixes the shared ICU test linker error that caused the preceding Windows Build failure. This PR’s patch relative to main remains confined to its intended files. The diff check and tools/check_conventions.py passed on this current head. The GNM driver targets built and guest_gnm_driver plus guest_gnm_driver_init_modes passed (2/2) on prior head 3235048a3b356d9afc8df3bfcad684e72000a06f. The current-head Build, Progress report, and Emscripten portability workflows passed; previous evidence below applies to its stated older heads.

  • Ubuntu 24.04 LTS in WSL2, GCC 13.3.0, Release, two compiler jobs at nice priority. Baseline upstream 2d27859b056cf252cb76ce8e564905f5d143583c: built the regular GNM library and guest test (144 steps) and the NID-patched regular PRX (1,371 aggregate dependency steps). The existing guest_gnm_driver passed. Its patched regular PRX (SHA-256 796e157100911a363675889860f8f2e0f357553e68d4234317dec767c8ea489e) exported neighboring 175 NID QhnyReteJ1M but not Idffwf3yh8s.
  • Negative control: applied only this PR's public declaration and behavioral guest test to that unchanged baseline production source. The test compiled, then failed to link twice on undefined sceGnmDrawInitDefaultHardwareState_nid_disambig1.
  • Fixed source on that same baseline: full libs plus guest-test build passed (811 steps; 407 patched PRXs). guest_gnm_driver passed 3/3, gnm_driver_packets and gnm_driver_submit_wait passed 3/3 each, and public_headers passed (407 libraries, 33,858 exports). The regular PRX (SHA-256 ab0fe5e48f92a7908f5ed90ece2bf51ef16cc8badb505c1c60f868f1e9acec04) exported both NIDs; a separate dynamic lookup and call of Idffwf3yh8s on that PRX returned 256 complete packet dwords with the base mode and left the next dword untouched. The source files were byte-identical to the rebased commit below.
  • Prior validated branch head b491fb2bc5c4e669e4dfe4aa75324d7154080656 is based on 02c52411e5b4df59e192301818182a228a9d353b. The intervening main commits changed no GNM implementation, guest-test, or GNM-debt files. Rebuilt the guest test and NID-patched regular PRX from the final source (639 steps); guest_gnm_driver passed 3/3, public_headers passed (407 libraries, 33,860 exports), and dynamic NID lookup/call passed again. check_conventions.py --base origin/main and git diff --check passed on this head.
  • The submission smoke ran on WSL2 llvmpipe. A requested Vulkan validation layer was unavailable there, so no validation-layer or physical-GPU claim is made. The real GTA V title and console behavior were not tested.
  • pr_overlap.py --branch was attempted but could not start because gh is unavailable. I manually compared the open #16882, #17711, #17942, #6977 and #18087 changes/comments; none implements this regular-provider export. #17942 touches a nearby API hunk and may need a routine rebase if it merges first.

Rebased-head validation (November 10)

The current head is c763323258dceaf91c8d4bf1b6a16ceaf72144a2, rebased onto upstream 4306c608e2a552d5c96f11679332a222a4683ef9 with the two worker-spin fixes. The feature patch is unchanged. On this exact source, the full Linux libs target and guest_gnm_driver_tests rebuilt successfully (831 pending steps, two below-normal compiler jobs). guest_gnm_driver and public_headers each passed three consecutive runs (6/6, no skips); the changed source files matched this head byte-for-byte. The earlier dynamic NID and packet test was on the prior head and has not been repeated on this rebase. Emscripten portability, Progress report and Conventions passed on the new head; the hosted Windows job passed. Hosted Linux and specialized PR jobs were skipped.

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: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5248824287 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18206). Originally posted by [DonRyuzaki](https://github.com/DonRyuzaki) on 2026-11-10T21:00:37Z. --- ### What GTA V (CUSA00419, [bring-up #18084](https://github.com/boykopovar/AnyPS5/discussions/18084)) imports NID `Idffwf3yh8s` as `sceGnmDrawInitDefaultHardwareState` from the regular `libSceGnmDriver`. Current `main` provides that name only from `libSceGnmDriverForNeoMode`, so the regular PRX leaves the import unresolved. Add a regular-provider export, using `_nid_disambig1` to keep its host symbol distinct while retaining the guest NID. Share the existing 256-dword draw-state writer with `sceGnmDrawInitDefaultHardwareState175`, selecting `SC_MODE_CNTL_1 = 0x06000000` for the unversioned function and preserving `0x06020000` for 175. Both refuse a buffer shorter than 256 dwords without writing. The pinned [shadPS4 writer](https://github.com/shadps4-emu/shadPS4/blob/a808e7626e3c7de8d0f0fda6a91f620b42f6c762/src/core/libraries/gnmdriver/gnmdriver.cpp) and [packet arrays](https://github.com/shadps4-emu/shadPS4/blob/a808e7626e3c7de8d0f0fda6a91f620b42f6c762/src/core/libraries/gnmdriver/gnmdriver_init.h) use this signature and sequence; their base and 175 arrays differ in only that mode word. The existing [GNM technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/debt/libSceGnmDriver.md) records that these packets have not been checked on a console. Null and invalid-pointer behavior is also unmeasured; this follows the existing regular 175 writer's size-first path, without a new success fallback. This change is independent of #18087's `_padebug` dependency mapping. It removes one regular-library import gap; the title was not retested and still has the other local conversion/runtime dependencies listed in #18084. No title-start or in-game claim is made. ### Tested **Latest refresh (15 November 2026):** current head `21ec57969d7deec7fbd045670cfdd5960617067e` includes upstream main `eef73731fc926d18e3e8b19849ed42511a1adb09` and merged [#20844](https://github.com/boykopovar/AnyPS5/pull/20844), which fixes the shared ICU test linker error that caused the preceding Windows Build failure. This PR’s patch relative to main remains confined to its intended files. The diff check and `tools/check_conventions.py` passed on this current head. The GNM driver targets built and `guest_gnm_driver` plus `guest_gnm_driver_init_modes` passed (2/2) on prior head `3235048a3b356d9afc8df3bfcad684e72000a06f`. The current-head [Build](https://github.com/boykopovar/AnyPS5/actions/runs/43745238481), Progress report, and Emscripten portability workflows passed; previous evidence below applies to its stated older heads. - Ubuntu 24.04 LTS in WSL2, GCC 13.3.0, Release, two compiler jobs at nice priority. Baseline upstream `2d27859b056cf252cb76ce8e564905f5d143583c`: built the regular GNM library and guest test (144 steps) and the NID-patched regular PRX (1,371 aggregate dependency steps). The existing `guest_gnm_driver` passed. Its patched regular PRX (SHA-256 `796e157100911a363675889860f8f2e0f357553e68d4234317dec767c8ea489e`) exported neighboring 175 NID `QhnyReteJ1M` but not `Idffwf3yh8s`. - Negative control: applied only this PR's public declaration and behavioral guest test to that unchanged baseline production source. The test compiled, then failed to link twice on undefined `sceGnmDrawInitDefaultHardwareState_nid_disambig1`. - Fixed source on that same baseline: full `libs` plus guest-test build passed (811 steps; 407 patched PRXs). `guest_gnm_driver` passed 3/3, `gnm_driver_packets` and `gnm_driver_submit_wait` passed 3/3 each, and `public_headers` passed (407 libraries, 33,858 exports). The regular PRX (SHA-256 `ab0fe5e48f92a7908f5ed90ece2bf51ef16cc8badb505c1c60f868f1e9acec04`) exported both NIDs; a separate dynamic lookup and call of `Idffwf3yh8s` on that PRX returned 256 complete packet dwords with the base mode and left the next dword untouched. The source files were byte-identical to the rebased commit below. - Prior validated branch head `b491fb2bc5c4e669e4dfe4aa75324d7154080656` is based on `02c52411e5b4df59e192301818182a228a9d353b`. The intervening main commits changed no GNM implementation, guest-test, or GNM-debt files. Rebuilt the guest test and NID-patched regular PRX from the final source (639 steps); `guest_gnm_driver` passed 3/3, `public_headers` passed (407 libraries, 33,860 exports), and dynamic NID lookup/call passed again. `check_conventions.py --base origin/main` and `git diff --check` passed on this head. - The submission smoke ran on WSL2 llvmpipe. A requested Vulkan validation layer was unavailable there, so no validation-layer or physical-GPU claim is made. The real GTA V title and console behavior were not tested. - `pr_overlap.py --branch` was attempted but could not start because `gh` is unavailable. I manually compared the open #16882, #17711, #17942, #6977 and #18087 changes/comments; none implements this regular-provider export. #17942 touches a nearby API hunk and may need a routine rebase if it merges first. ### Rebased-head validation (November 10) The current head is `c763323258dceaf91c8d4bf1b6a16ceaf72144a2`, rebased onto upstream `4306c608e2a552d5c96f11679332a222a4683ef9` with the two worker-spin fixes. The feature patch is unchanged. On this exact source, the full Linux `libs` target and `guest_gnm_driver_tests` rebuilt successfully (831 pending steps, two below-normal compiler jobs). `guest_gnm_driver` and `public_headers` each passed three consecutive runs (6/6, no skips); the changed source files matched this head byte-for-byte. The earlier dynamic NID and packet test was on the prior head and has not been repeated on this rebase. Emscripten portability, Progress report and Conventions passed on the new head; the [hosted Windows job](https://github.com/boykopovar/AnyPS5/actions/runs/42911599664/job/130163431982) passed. Hosted Linux and specialized PR jobs were skipped. ### 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: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-10 21:04:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-10T21:04:32Z.

Review: COMMENTED


Reviewed — looks good

The new entry point shares the existing packet writer and changes only SC_MODE_CNTL_1; I found no code-level blocker, but I’m leaving a comment until the Windows job completes.

What I ran

Reviewed head b491fb2bc5c4e669e4dfe4aa75324d7154080656 against live main d66e6aac01bdf52b7a0a97b255a4110e2efe03a3; the merge preview is clean. The PR API still showed base 0aa98c0a07c74b1ebc8b9389185b6ff1d2978b38; live main had advanced to d66e6aac01bdf52b7a0a97b255a4110e2efe03a3, which the precheck used. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 18206 --output-dir /tmp/anyps5-review-18206-current
git diff --check d66e6aac01bdf52b7a0a97b255a4110e2efe03a3...b491fb2bc5c4e669e4dfe4aa75324d7154080656
python3 tools/pr_stack_check.py 18206 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-review-18206-current/stack
gh api repos/boykopovar/AnyPS5/commits/b491fb2bc5c4e669e4dfe4aa75324d7154080656/check-runs

I read all three changed files. No local build or CTest was run.

Results

Check Result
Diff whitespace, conventions, export audit, and merge preview Passed; the audit computes NID Idffwf3yh8s for the new symbol.
C++ guest tests and final PRX/NID lookup The author reports the exact-head build, guest_gnm_driver 3/3, related packet tests, public-header audit, and dynamic lookup/call passed; I did not reproduce them locally.
Hosted CI Windows remains in progress. Conventions, labels, intake, report, eligibility, and portability passed; Linux and specialized jobs were skipped.
Recorded local output

Diff check:

(no output; exit 0)

Conventions:

All conventions checks passed.

Merge preview:

PR #18206: clean against current base d66e6aac01bdf52b7a0a97b255a4110e2efe03a3.

Hosted checks at the time of review:

windows: in_progress
library-portability: success
eligibility: success
report: success
conventions: success
labels: success
intake: success
linux: skipped
relinker: skipped
relinker-asan: skipped
edge-watch: skipped
pipe-write: skipped
write-watch: skipped
register-context: skipped

Findings

Blocking

None found.

Non-blocking

None.

Sources

Not verified

  • The author-reported build/test results were not independently reproduced here; no local build or CTest was run.
  • Windows is still running; Linux and specialized hosted jobs were skipped. No PS5 or console behavior was tested.
  • Null and invalid-pointer behavior remains unmeasured, as noted in the PR description.

To get this to a good state

No code changes are requested. Let the Windows job finish; I will refresh its result before changing this review status.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5849369327 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18206#pullrequestreview-5849369327). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-10T21:04:32Z. **Review:** COMMENTED --- # Reviewed — looks good The new entry point shares the existing packet writer and changes only `SC_MODE_CNTL_1`; I found no code-level blocker, but I’m leaving a comment until the Windows job completes. ## What I ran Reviewed head `b491fb2bc5c4e669e4dfe4aa75324d7154080656` against live `main` `d66e6aac01bdf52b7a0a97b255a4110e2efe03a3`; the merge preview is clean. The PR API still showed base `0aa98c0a07c74b1ebc8b9389185b6ff1d2978b38`; live `main` had advanced to `d66e6aac01bdf52b7a0a97b255a4110e2efe03a3`, which the precheck used. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 18206 --output-dir /tmp/anyps5-review-18206-current git diff --check d66e6aac01bdf52b7a0a97b255a4110e2efe03a3...b491fb2bc5c4e669e4dfe4aa75324d7154080656 python3 tools/pr_stack_check.py 18206 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-review-18206-current/stack gh api repos/boykopovar/AnyPS5/commits/b491fb2bc5c4e669e4dfe4aa75324d7154080656/check-runs ``` I read all three changed files. No local build or CTest was run. ## Results | Check | Result | |---|---| | Diff whitespace, conventions, export audit, and merge preview | Passed; the audit computes NID `Idffwf3yh8s` for the new symbol. | | C++ guest tests and final PRX/NID lookup | The author reports the exact-head build, `guest_gnm_driver` 3/3, related packet tests, public-header audit, and dynamic lookup/call passed; I did not reproduce them locally. | | Hosted CI | Windows remains in progress. Conventions, labels, intake, report, eligibility, and portability passed; Linux and specialized jobs were skipped. | <details> <summary>Recorded local output</summary> Diff check: ```text (no output; exit 0) ``` Conventions: ```text All conventions checks passed. ``` Merge preview: ```text PR #18206: clean against current base d66e6aac01bdf52b7a0a97b255a4110e2efe03a3. ``` Hosted checks at the time of review: ```text windows: in_progress library-portability: success eligibility: success report: success conventions: success labels: success intake: success linux: skipped relinker: skipped relinker-asan: skipped edge-watch: skipped pipe-write: skipped write-watch: skipped register-context: skipped ``` </details> ## Findings ### Blocking None found. ### Non-blocking None. ## Sources - [New regular GNM export and shared packet writer](https://github.com/boykopovar/AnyPS5/blob/b491fb2bc5c4e669e4dfe4aa75324d7154080656/core/libs/prx/libSceGnmDriver/Export.cpp) - [Export declaration](https://github.com/boykopovar/AnyPS5/blob/b491fb2bc5c4e669e4dfe4aa75324d7154080656/core/libs/prx/libSceGnmDriver/include/Api.hpp) - [Packet and mode-value assertions](https://github.com/boykopovar/AnyPS5/blob/b491fb2bc5c4e669e4dfe4aa75324d7154080656/core/libs/tests/GuestGnmDriver.cpp) ## Not verified - The author-reported build/test results were not independently reproduced here; no local build or CTest was run. - Windows is still running; Linux and specialized hosted jobs were skipped. No PS5 or console behavior was tested. - Null and invalid-pointer behavior remains unmeasured, as noted in the PR description. ## To get this to a good state No code changes are requested. Let the Windows job finish; I will refresh its result before changing this review status.
MarcZX10 commented 2026-11-12 21:18:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T21:18:00Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

Head reviewed: c763323258dceaf91c8d4bf1b6a16ceaf72144a2 (PR #18206, base main). The change adds a regular-library export for sceGnmDrawInitDefaultHardwareState and moves the 256-dword writer into a shared helper that the 175 export also uses.

What I ran

Read-only repository reads at the pinned head with repo_read.py. No build and no test run in this review.

python3 repo_read.py search _nid_disambig1
python3 repo_read.py search Idffwf3yh8s
python3 repo_read.py cat core/libs/prx/libSceGnmDriver/Export.cpp 1 110
python3 repo_read.py cat core/libs/prx/libSceGnmDriver/include/Api.hpp 1 20
python3 repo_read.py cat core/libs/tests/GuestGnmDriver.cpp 1 52

The NID searches returned no matches. That is expected, because the source names functions and does not contain their NID hashes.

Results

Check Result Note
Read of changed code passed Helper, both exports and the new test block
Build and guest tests not run Read-only review
Author-reported test runs not verified Stated in the PR body, not rerun here

Findings

Blocking

None.

Non-blocking

None.

Checked and no defect found:

  • core/libs/prx/libSceGnmDriver/Export.cpp:110-119: the shared helper keeps the old 175 order (CONTEXT_CONTROL, CLEAR_STATE, ACQUIRE_MEM, state, NOP pad) and returns 0 before writing when the buffer is under 256 dwords. The only difference from the old 175 body is the mode word, now a parameter.
  • core/libs/prx/libSceGnmDriver/Export.cpp:404-409: the unversioned export passes 0x6000000 and the 175 export passes 0x6020000, so 175 behaviour is unchanged.
  • core/libs/tests/GuestGnmDriver.cpp:62-78: the new checks compare the base and 175 outputs word by word and allow only the SC_MODE_CNTL_1 value to differ. The header layout they read matches Header at Export.cpp:76-78.

Not verified

  • The NID mapping: that Idffwf3yh8s is the NID of the base name. The author's dynamic lookup ran on the prior head and was not repeated on the rebase.
  • The 0x6000000 value and the packet sequence against the shadPS4 links in the PR body. I did not open those external links.
  • Null and invalid-pointer behaviour. The PR says this is unmeasured, and the path matches the existing 175 writer.
  • Console and title behaviour (GTA V). Not tested, as the PR states.
  • Author-reported runs (WSL2 llvmpipe, the hosted Windows job). Not run by me.
  • Files read: Export.cpp lines 1-110 at head plus the changed hunks; Api.hpp lines 1-20 at head plus the changed line; GuestGnmDriver.cpp lines 1-52 at head plus the new block. The rest of each file is unchanged by this diff and was not read.

To get this to a good state

Nothing is required.

Optional: rerun the dynamic NID lookup and call on the current head, since the PR body says it was last run on the prior head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5882162027 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18206#pullrequestreview-5882162027). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-12T21:18:00Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. Head reviewed: `c763323258dceaf91c8d4bf1b6a16ceaf72144a2` (PR #18206, base `main`). The change adds a regular-library export for `sceGnmDrawInitDefaultHardwareState` and moves the 256-dword writer into a shared helper that the 175 export also uses. ## What I ran Read-only repository reads at the pinned head with `repo_read.py`. No build and no test run in this review. ``` python3 repo_read.py search _nid_disambig1 python3 repo_read.py search Idffwf3yh8s python3 repo_read.py cat core/libs/prx/libSceGnmDriver/Export.cpp 1 110 python3 repo_read.py cat core/libs/prx/libSceGnmDriver/include/Api.hpp 1 20 python3 repo_read.py cat core/libs/tests/GuestGnmDriver.cpp 1 52 ``` The NID searches returned no matches. That is expected, because the source names functions and does not contain their NID hashes. ## Results | Check | Result | Note | | --- | --- | --- | | Read of changed code | passed | Helper, both exports and the new test block | | Build and guest tests | not run | Read-only review | | Author-reported test runs | not verified | Stated in the PR body, not rerun here | ## Findings **Blocking** None. **Non-blocking** None. Checked and no defect found: - `core/libs/prx/libSceGnmDriver/Export.cpp:110-119`: the shared helper keeps the old 175 order (CONTEXT_CONTROL, CLEAR_STATE, ACQUIRE_MEM, state, NOP pad) and returns 0 before writing when the buffer is under 256 dwords. The only difference from the old 175 body is the mode word, now a parameter. - `core/libs/prx/libSceGnmDriver/Export.cpp:404-409`: the unversioned export passes `0x6000000` and the 175 export passes `0x6020000`, so 175 behaviour is unchanged. - `core/libs/tests/GuestGnmDriver.cpp:62-78`: the new checks compare the base and 175 outputs word by word and allow only the `SC_MODE_CNTL_1` value to differ. The header layout they read matches `Header` at `Export.cpp:76-78`. ## Not verified - The NID mapping: that `Idffwf3yh8s` is the NID of the base name. The author's dynamic lookup ran on the prior head and was not repeated on the rebase. - The `0x6000000` value and the packet sequence against the shadPS4 links in the PR body. I did not open those external links. - Null and invalid-pointer behaviour. The PR says this is unmeasured, and the path matches the existing 175 writer. - Console and title behaviour (GTA V). Not tested, as the PR states. - Author-reported runs (WSL2 llvmpipe, the hosted Windows job). Not run by me. - Files read: `Export.cpp` lines 1-110 at head plus the changed hunks; `Api.hpp` lines 1-20 at head plus the changed line; `GuestGnmDriver.cpp` lines 1-52 at head plus the new block. The rest of each file is unchanged by this diff and was not read. ## To get this to a good state Nothing is required. Optional: rerun the dynamic NID lookup and call on the current head, since the PR body says it was last run on the prior head.
MarcZX10 commented 2026-11-21 13:51:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T13:51:19Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the inspected implementation and tests support merging.

What I ran

  • Reviewed head 21ec57969d7deec7fbd045670cfdd5960617067e against the prepared diff. I did not run commands or tests.
  • Read all changed files listed in the manifest: core/libs/prx/libSceGnmDriver/Export.cpp, core/libs/prx/libSceGnmDriver/include/Api.hpp, and core/libs/tests/GuestGnmDriver.cpp.
  • The prepared review folder did not include files.json; the directory listing confirms the three manifest files were included. No changed files were excluded.

Results

Check Result Note
Diff and changed code review passed All three changed files read
Automated tests not run Author reports prior and CI runs
Console behavior not run Description reports no console testing

Findings

Blocking

None.

Non-blocking

None.

Not verified

I did not run tests, builds, or checks. The author-reported automated results were not independently verified. Physical-console behavior and null or invalid-pointer behavior remain unverified, as noted in the description.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6005663234 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18206#pullrequestreview-6005663234). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T13:51:19Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the inspected implementation and tests support merging. ## What I ran - Reviewed head `21ec57969d7deec7fbd045670cfdd5960617067e` against the prepared diff. I did not run commands or tests. - Read all changed files listed in the manifest: `core/libs/prx/libSceGnmDriver/Export.cpp`, `core/libs/prx/libSceGnmDriver/include/Api.hpp`, and `core/libs/tests/GuestGnmDriver.cpp`. - The prepared review folder did not include `files.json`; the directory listing confirms the three manifest files were included. No changed files were excluded. ## Results | Check | Result | Note | |---|---|---| | Diff and changed code review | passed | All three changed files read | | Automated tests | not run | Author reports prior and CI runs | | Console behavior | not run | Description reports no console testing | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified I did not run tests, builds, or checks. The author-reported automated results were not independently verified. Physical-console behavior and null or invalid-pointer behavior remain unverified, as noted in the description. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 17:42:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T17:42:03Z.

Review: COMMENTED


guest_gnm_driver and guest_gnm_driver_init_modes passed with 21ec57969d integrated into a Linux release build. The new regular-provider draw-state checks covered a short buffer, the 256-dword packet stream, the untouched trailing word, and the expected mode-register difference from the 175 variant.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6175204696 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18206#pullrequestreview-6175204696). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T17:42:03Z. **Review:** COMMENTED --- `guest_gnm_driver` and `guest_gnm_driver_init_modes` passed with `21ec57969d` integrated into a Linux release build. The new regular-provider draw-state checks covered a short buffer, the 256-dword packet stream, the untouched trailing word, and the expected mode-register difference from the 175 variant. 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/18206:upstream-pr/18206'
git switch 'upstream-pr/18206'

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