fix(libSceGnmDriver): report type-0 packets and optionally wait at each submission #9676

Merged
ntamas94 merged 17 commits from upstream-pr/9676 into main 2026-11-06 22:24:50 +00:00
ntamas94 commented 2026-10-22 07:45:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ntamas94 on 2026-10-22T07:45:12Z.


What

Two changes to the Gnm command-buffer path, found while bringing up Gang Beasts (CUSA04865, Unity, my own dump). Each commit stands alone.

  1. Type-0 and type-1 packets in a command buffer. The Gnm lowering threw on any packet that was not type 3 with no more than the stream name; #9432 now drops type-2 filler. A type-0 packet (a register write by base index and count) or a type-1 packet now throws with its type, header and dword position. Neither is applied or skipped: a type-0 payload carries register state, and no title has shown what it carries here, so stepping over it would drop that state without a trace (Get-fix's and MarcZX10's question on the earlier version, which skipped it). Gang Beasts produces a header dword of 1 itself: it binds a 16-byte V# over an 8-byte allocateFromCommandBuffer block, and its compute dispatch stores 1 at offset 8, which is the next packet's header. With the queue several milliseconds behind, that store lands after the title has rebuilt the buffer for the next frame (traced with a watch on that dword and timestamps on submits and dispatches). The title therefore needs APS5_GNM_SUBMIT_WAIT_IDLE=1 (2); with it the store lands before the rebuild and the throw does not fire. The error itself does not name that case, since a dword of 1 is also a valid type-0 write; the debt entry explains it.

  2. APS5_GNM_SUBMIT_WAIT_IDLE=1. Each sceGnmSubmitCommandBuffers and sceGnmSubmitAndFlipCommandBuffers after the first waits for the work already queued, so the GPU trails the title by at most one submission. Without it, Gang Beasts' rebuilds of command buffers and descriptor tables race with work that has not run yet. Besides (1), this shows up as draws whose S# slot holds T# words, a V# slot holding an S#, and a sampler descriptor that reads as unnormalized with clamp mode 7. With the knob, runs of up to ten minutes through the menus, character select, loading and a full match had none of these, with no change in the menu frame rate (vsync-bound, 59.94 FPS). It is off by default, because a submission whose packets wait on a label the title writes only after a later submission would never finish. The wait is gated on work having been queued, not on the per-frame flag that sceGnmSubmitDone clears, so the first submission of a frame waits for the previous frame's work too (MarcZX10's review found the earlier gate skipped exactly that submission). APS5_SYNC_FLIP=1 also removed the packet clobber in three menu runs. The knob has a row in docs/dev/ENVIRONMENT.md, and the debt file of libSceGnmDriver describes both changes.

This moves the Gnm commits of Get-fix/AnyPS5#3 (opened against ps4/limbo-gpu) to main on top of #9432, as Get-fix asked there. #9431 and #9432 are merged, and the branch has current main merged in, so its diff against main is this PR's own change: the packet-type error, the submission wait, tests/Submit.cpp, include/CommandStream.hpp and the debt and environment entries. #9432 landed with the libSceGnmDriver.hpp umbrella this branch had added, so this branch now uses main's.

Tested

Windows 11 Pro (10.0.26200), WinLibs GCC, NVIDIA GeForce RTX 2080 (driver 617.14), Release build with BUILD_TESTING=ON, on this branch with current main (921621976c) merged in; #9431 and #9432 are merged:

  • gnm_driver_packets (new, no GPU) walks a draw and a constant stream through MergeEngines: type-2 filler is dropped from both streams and the NOPs come out unchanged; a type-1 header throws with type 1, 0x40000000, dword 2 of 4; a truncated type-3 packet throws. #9432's guest_gnm_driver, whose typeZero case expects the throw, still passes.
  • gnm_driver_submit_wait (new, GPU) submits a first frame whose work waits on a label the CPU writes, calls sceGnmSubmitDone, then submits the next frame from another thread with APS5_GNM_SUBMIT_WAIT_IDLE set: that call must still be blocked 500 ms later, return once the label is written, and find the first frame's work done. With the wait gated on the per-frame flag it fails (the first submission of the next frame did not wait for the work queued before sceGnmSubmitDone).
  • gnm_driver_packets, gnm_driver_submit_wait, guest_gnm_driver and the 27 video_out_flip_* tests pass on the merge head, three runs each; public_headers and its 64 compile batches pass.
  • public_headers and its 64 compile batches pass.
  • tools/check_test_registration.py build: both tests registered.
  • Earlier, on Get-fix/AnyPS5#3 with the rest of my bring-up branch (#7941): Gang Beasts plays a full round with APS5_GNM_SUBMIT_WAIT_IDLE=1: the menu, character select, a level (Wheel) with correct lighting and physics, the end of the match and the return to character select.
  • tools/check_conventions.py --base main (921621976c) with this title and description: no findings.
  • Paired validation-layer run: main 921621976c (100% tests passed out of 24, the depth, display-buffer and graphics tests of this stack; main has neither libSceGnmDriver nor these tests) and this branch with that main merged in (100% tests passed out of 3: gnm_driver_packets, gnm_driver_submit_wait, guest_gnm_driver) with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and VK_LOADER_DEBUG=warn,error, ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader's adding layers "VK_LAYER_KHRONOS_validation" line (60 and 2 times) and neither reports was not found but was requested by env var VK_INSTANCE_LAYERS; VUID- ids on main: 0, on this branch: 0, new on this branch: 0.

Linux was not run locally.

Checklist

  • Based on current main; no other open PR implements the same functions (current main 921621976c merged in; searched open boykopovar/AnyPS5 PRs for Gnm packet types and submission waits on 2026-10-22)
  • 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 (#9431 and #9432 are merged)
  • Fixes: none
  • Unblocks: CUSA04865 #7941
  • GPUs tested: NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4963907735 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676). Originally posted by [ntamas94](https://github.com/ntamas94) on 2026-10-22T07:45:12Z. --- ### What Two changes to the Gnm command-buffer path, found while bringing up Gang Beasts (CUSA04865, Unity, my own dump). Each commit stands alone. 1. **Type-0 and type-1 packets in a command buffer.** The Gnm lowering threw on any packet that was not type 3 with no more than the stream name; #9432 now drops type-2 filler. A type-0 packet (a register write by base index and count) or a type-1 packet now throws with its type, header and dword position. Neither is applied or skipped: a type-0 payload carries register state, and no title has shown what it carries here, so stepping over it would drop that state without a trace (Get-fix's and MarcZX10's question on the earlier version, which skipped it). Gang Beasts produces a header dword of 1 itself: it binds a 16-byte V# over an 8-byte `allocateFromCommandBuffer` block, and its compute dispatch stores 1 at offset 8, which is the next packet's header. With the queue several milliseconds behind, that store lands after the title has rebuilt the buffer for the next frame (traced with a watch on that dword and timestamps on submits and dispatches). The title therefore needs `APS5_GNM_SUBMIT_WAIT_IDLE=1` (2); with it the store lands before the rebuild and the throw does not fire. The error itself does not name that case, since a dword of 1 is also a valid type-0 write; the debt entry explains it. 2. **`APS5_GNM_SUBMIT_WAIT_IDLE=1`.** Each `sceGnmSubmitCommandBuffers` and `sceGnmSubmitAndFlipCommandBuffers` after the first waits for the work already queued, so the GPU trails the title by at most one submission. Without it, Gang Beasts' rebuilds of command buffers and descriptor tables race with work that has not run yet. Besides (1), this shows up as draws whose S# slot holds T# words, a V# slot holding an S#, and a sampler descriptor that reads as unnormalized with clamp mode 7. With the knob, runs of up to ten minutes through the menus, character select, loading and a full match had none of these, with no change in the menu frame rate (vsync-bound, 59.94 FPS). It is off by default, because a submission whose packets wait on a label the title writes only after a later submission would never finish. The wait is gated on work having been queued, not on the per-frame flag that `sceGnmSubmitDone` clears, so the first submission of a frame waits for the previous frame's work too (MarcZX10's review found the earlier gate skipped exactly that submission). `APS5_SYNC_FLIP=1` also removed the packet clobber in three menu runs. The knob has a row in `docs/dev/ENVIRONMENT.md`, and the debt file of `libSceGnmDriver` describes both changes. This moves the Gnm commits of Get-fix/AnyPS5#3 (opened against `ps4/limbo-gpu`) to `main` on top of #9432, as Get-fix asked there. #9431 and #9432 are merged, and the branch has current `main` merged in, so its diff against `main` is this PR's own change: the packet-type error, the submission wait, `tests/Submit.cpp`, `include/CommandStream.hpp` and the debt and environment entries. #9432 landed with the `libSceGnmDriver.hpp` umbrella this branch had added, so this branch now uses `main`'s. ### Tested Windows 11 Pro (10.0.26200), WinLibs GCC, NVIDIA GeForce RTX 2080 (driver 617.14), Release build with `BUILD_TESTING=ON`, on this branch with current `main` (921621976c) merged in; #9431 and #9432 are merged: - `gnm_driver_packets` (new, no GPU) walks a draw and a constant stream through `MergeEngines`: type-2 filler is dropped from both streams and the NOPs come out unchanged; a type-1 header throws with `type 1`, `0x40000000`, `dword 2 of 4`; a truncated type-3 packet throws. #9432's `guest_gnm_driver`, whose `typeZero` case expects the throw, still passes. - `gnm_driver_submit_wait` (new, GPU) submits a first frame whose work waits on a label the CPU writes, calls `sceGnmSubmitDone`, then submits the next frame from another thread with `APS5_GNM_SUBMIT_WAIT_IDLE` set: that call must still be blocked 500 ms later, return once the label is written, and find the first frame's work done. With the wait gated on the per-frame flag it fails (`the first submission of the next frame did not wait for the work queued before sceGnmSubmitDone`). - `gnm_driver_packets`, `gnm_driver_submit_wait`, `guest_gnm_driver` and the 27 `video_out_flip_*` tests pass on the merge head, three runs each; `public_headers` and its 64 compile batches pass. - `public_headers` and its 64 compile batches pass. - `tools/check_test_registration.py build`: both tests registered. - Earlier, on Get-fix/AnyPS5#3 with the rest of my bring-up branch (#7941): Gang Beasts plays a full round with `APS5_GNM_SUBMIT_WAIT_IDLE=1`: the menu, character select, a level (Wheel) with correct lighting and physics, the end of the match and the return to character select. - `tools/check_conventions.py --base main` (921621976c) with this title and description: no findings. - Paired validation-layer run: `main` 921621976c (100% tests passed out of 24, the depth, display-buffer and graphics tests of this stack; `main` has neither `libSceGnmDriver` nor these tests) and this branch with that `main` merged in (100% tests passed out of 3: `gnm_driver_packets`, `gnm_driver_submit_wait`, `guest_gnm_driver`) with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `VK_LOADER_DEBUG=warn,error`, `ctest -V`, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader's `adding layers "VK_LAYER_KHRONOS_validation"` line (60 and 2 times) and neither reports `was not found but was requested by env var VK_INSTANCE_LAYERS`; `VUID-` ids on `main`: 0, on this branch: 0, new on this branch: 0. Linux was not run locally. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions (current `main` 921621976c merged in; searched open boykopovar/AnyPS5 PRs for Gnm packet types and submission waits on 2026-10-22) - [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 (#9431 and #9432 are merged) - [x] Fixes: none - [x] Unblocks: CUSA04865 #7941 - [x] GPUs tested: NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200) - [x] AI-assisted: yes
fogydes commented 2026-10-22 08:54:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-22T08:54:09Z.


Verified against the branch: PacketAt decodes the count field exactly as the driver's own Header() writes it (body dwords in bits [29:16] as count - 1, so total = ((header >> 16) & 0x3fff) + 2 for type 0 and the shared type 3 path, total = 1 for type 2, and an explicit throw for type 1 carrying header, dword index and stream length), the advance happens before the type-0 continue so no step can be skipped or looped, and the truncation check dominates the payload walk. The wait reuses AgcDriverWaitIdle_nid_postfix under g_submitMutex after the first submission, gated behind a documented-as-presence env knob with the right entry in docs/dev/ENVIRONMENT.md. That's a real portability improvement over the bare type-1 message and gets type-0 payloads out of the parser's way like the Linux radeon walker the debt entry cites.

The gap I'd want addressed before merge: the total-test count for this PR is zero and stays zero — libSceGnmDriver has no test target at all (no add_test, no test sources in its CMakeLists), and the body acknowledges the claimed behavior is validated only by Gang Beasts runs. Every branch added here is host-testable without a GPU: PacketAt's four outcomes (type 0 step, type 2 step, type 1 throw, truncation throw), the CE/DE counter handling stepping, and the first-vs-subsequent wait gate including g_frameStarted reset which makes the first submission of the next frame not wait — the "GPU trails by at most one submission" promise has a hole at exactly that frame boundary (previous frame's work can still be queued when SubmitDone resets the flag), and the debt entry describes the promise without the exception. Repo pattern exists (Guest*/agc_driver_* targets); a small test(…) addition forcing type 0/2 packets through sceGnmSubmitCommandBuffers would pin the walk that this PR is really about.

Minor: the PR contains two topics (the packet-walk fix and the wait knob) in one PR with both checklist topics ticked; the body discloses the pairing, but two commits being separable is the usual signal to land the fix first and the feat behind it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336786998 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676#issuecomment-6336786998). Originally posted by [fogydes](https://github.com/fogydes) on 2026-10-22T08:54:09Z. --- Verified against the branch: `PacketAt` decodes the count field exactly as the driver's own `Header()` writes it (body dwords in bits [29:16] as `count - 1`, so `total = ((header >> 16) & 0x3fff) + 2` for type 0 and the shared type 3 path, `total = 1` for type 2, and an explicit throw for type 1 carrying header, dword index and stream length), the advance happens before the type-0 `continue` so no step can be skipped or looped, and the truncation check dominates the payload walk. The wait reuses `AgcDriverWaitIdle_nid_postfix` under `g_submitMutex` after the first submission, gated behind a documented-as-presence env knob with the right entry in `docs/dev/ENVIRONMENT.md`. That's a real portability improvement over the bare type-1 message and gets type-0 payloads out of the parser's way like the Linux radeon walker the debt entry cites. The gap I'd want addressed before merge: **the total-test count for this PR is zero and stays zero** — `libSceGnmDriver` has no test target at all (no `add_test`, no test sources in its CMakeLists), and the body acknowledges the claimed behavior is validated only by Gang Beasts runs. Every branch added here is host-testable without a GPU: `PacketAt`'s four outcomes (type 0 step, type 2 step, type 1 throw, truncation throw), the CE/DE counter handling stepping, and the first-vs-subsequent wait gate including `g_frameStarted` reset which makes the first submission of the next frame not wait — the "GPU trails by at most one submission" promise has a hole at exactly that frame boundary (previous frame's work can still be queued when SubmitDone resets the flag), and the debt entry describes the promise without the exception. Repo pattern exists (`Guest*`/`agc_driver_*` targets); a small `test(…)` addition forcing type 0/2 packets through `sceGnmSubmitCommandBuffers` would pin the walk that this PR is really about. Minor: the PR contains two topics (the packet-walk fix and the wait knob) in one PR with both checklist topics ticked; the body discloses the pairing, but two commits being separable is the usual signal to land the `fix` first and the `feat` behind it.
MarcZX10 commented 2026-10-22 08:55:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T08:55:53Z.

Review: CHANGES_REQUESTED


I independently checked the submission-wait path and confirmed a correctness gap in the new APS5_GNM_SUBMIT_WAIT_IDLE behavior. SubmitLocked waits only when g_frameStarted is true (line 233), but sceGnmSubmitDone resets it to false without waiting (line 451). Therefore the first submission after every sceGnmSubmitDone bypasses the wait; if the title submits only once per frame, no submission ever takes the wait path and queued work can accumulate across frames. This contradicts the stated bounded-lag behavior and leaves the descriptor/command-buffer reuse race possible. Please track whether any work is outstanding independently of the per-frame initialization flag, wait before a new frame’s first submission when prior work remains, and add a focused regression for submit → submit-done → next-frame submit. The existing detailed comment on this PR also notes that the packet walker and pacing change currently have no automated tests; the new path needs coverage beyond the reported title run.

The branch is also currently CONFLICTING with main; #9432, which this PR depends on, is itself conflicting. Please coordinate/rebase after resolving the dependency and rerun checks on the resulting merge commit. Existing CI shown here has conventions/intake/labels only; no product or relinker build is reported. The author’s Gang Beasts testing is useful evidence, but it does not cover the frame-boundary case above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5611638892 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676#pullrequestreview-5611638892). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T08:55:53Z. **Review:** CHANGES_REQUESTED --- I independently checked the submission-wait path and confirmed a correctness gap in the new `APS5_GNM_SUBMIT_WAIT_IDLE` behavior. `SubmitLocked` waits only when `g_frameStarted` is true (line 233), but `sceGnmSubmitDone` resets it to false without waiting (line 451). Therefore the first submission after every `sceGnmSubmitDone` bypasses the wait; if the title submits only once per frame, no submission ever takes the wait path and queued work can accumulate across frames. This contradicts the stated bounded-lag behavior and leaves the descriptor/command-buffer reuse race possible. Please track whether any work is outstanding independently of the per-frame initialization flag, wait before a new frame’s first submission when prior work remains, and add a focused regression for submit → submit-done → next-frame submit. The existing detailed comment on this PR also notes that the packet walker and pacing change currently have no automated tests; the new path needs coverage beyond the reported title run. The branch is also currently `CONFLICTING` with `main`; #9432, which this PR depends on, is itself conflicting. Please coordinate/rebase after resolving the dependency and rerun checks on the resulting merge commit. Existing CI shown here has conventions/intake/labels only; no product or relinker build is reported. The author’s Gang Beasts testing is useful evidence, but it does not cover the frame-boundary case above.
ntamas94 commented 2026-10-22 10:13:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ntamas94 on 2026-10-22T10:13:57Z.


Thanks, both of you. The frame-boundary gap is real and is fixed on the branch: the wait is now gated on work having been queued (g_workQueued, set after every submission and left alone by sceGnmSubmitDone) instead of the per-frame flag, so the first submission of a frame waits for the previous frame's work as well.

Tests, both registered: gnm_driver_packets (no GPU) walks a draw and a constant stream through MergeEngines and checks a type-2 dword, a type-0 packet whose data looks like an EVENT_WRITE_EOP header, the type-1 throw with header and position, and truncated type-3 and type-0 packets; gnm_driver_submit_wait (GPU) gates a first frame's work on a label the CPU writes, calls sceGnmSubmitDone, submits the next frame from another thread and checks that the call is still blocked 500 ms later and returns only once that work has run. Each fails with its part of the change reverted. PacketAt and MergeEngines moved into a header for that; no behaviour change there.

On the two topics: I kept them in one PR because the title needs both and the second commit carries the knob only; if you prefer, I can split the fix into its own PR and base the feat on it.

The branch conflicts with main through #9432 and #9431 (Graphics/src/State.cpp); I will rebase once Get-fix has rebased them. Paired validation-layer run, now in the description: main (100% tests passed, main build 7e2ba73e4) and this branch (100% tests passed) with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and VK_LOADER_DEBUG=warn,error, ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader's adding layers "VK_LAYER_KHRONOS_validation" line (78 and 2 times) and neither reports was not found but was requested by env var VK_INSTANCE_LAYERS; VUID- ids on main: 0, on this branch: 0, new on this branch: 0.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6338283660 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676#issuecomment-6338283660). Originally posted by [ntamas94](https://github.com/ntamas94) on 2026-10-22T10:13:57Z. --- Thanks, both of you. The frame-boundary gap is real and is fixed on the branch: the wait is now gated on work having been queued (`g_workQueued`, set after every submission and left alone by `sceGnmSubmitDone`) instead of the per-frame flag, so the first submission of a frame waits for the previous frame's work as well. Tests, both registered: `gnm_driver_packets` (no GPU) walks a draw and a constant stream through `MergeEngines` and checks a type-2 dword, a type-0 packet whose data looks like an EVENT_WRITE_EOP header, the type-1 throw with header and position, and truncated type-3 and type-0 packets; `gnm_driver_submit_wait` (GPU) gates a first frame's work on a label the CPU writes, calls `sceGnmSubmitDone`, submits the next frame from another thread and checks that the call is still blocked 500 ms later and returns only once that work has run. Each fails with its part of the change reverted. `PacketAt` and `MergeEngines` moved into a header for that; no behaviour change there. On the two topics: I kept them in one PR because the title needs both and the second commit carries the knob only; if you prefer, I can split the `fix` into its own PR and base the `feat` on it. The branch conflicts with `main` through #9432 and #9431 (`Graphics/src/State.cpp`); I will rebase once Get-fix has rebased them. Paired validation-layer run, now in the description: `main` (100% tests passed, main build 7e2ba73e4) and this branch (100% tests passed) with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `VK_LOADER_DEBUG=warn,error`, `ctest -V`, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader's `adding layers "VK_LAYER_KHRONOS_validation"` line (78 and 2 times) and neither reports `was not found but was requested by env var VK_INSTANCE_LAYERS`; `VUID-` ids on `main`: 0, on this branch: 0, new on this branch: 0. AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Get-fix commented 2026-10-22 11:06:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Get-fix on 2026-10-22T11:06:55Z.


@ntamas94 a heads-up so this doesn't surprise you. On #9432, MarcZX10 asked for type-2 filler packets to be accepted, with tests. #9432 now drops them in both streams (057384487), and since your 197594cfe did that first, I added you as co-author. #9430 to #9432 were also rebased onto main 7e2ba73e4. When you rebase this PR onto the new #9432 head, the type-2 half of 197594cfe is already there.

One question on the other half: a type-0 packet writes registers (base index plus count), so stepping over it drops that state without a trace. Could it throw with its header instead, or be applied, until a title shows what it carries?

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6339235462 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676#issuecomment-6339235462). Originally posted by [Get-fix](https://github.com/Get-fix) on 2026-10-22T11:06:55Z. --- @ntamas94 a heads-up so this doesn't surprise you. On #9432, MarcZX10 asked for type-2 filler packets to be accepted, with tests. #9432 now drops them in both streams (057384487), and since your 197594cfe did that first, I added you as co-author. #9430 to #9432 were also rebased onto `main` 7e2ba73e4. When you rebase this PR onto the new #9432 head, the type-2 half of 197594cfe is already there. One question on the other half: a type-0 packet writes registers (base index plus count), so stepping over it drops that state without a trace. Could it throw with its header instead, or be applied, until a title shows what it carries? AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-22 12:29:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T12:29:25Z.

Review: CHANGES_REQUESTED


The latest head addresses my prior frame-boundary finding: g_workQueued survives sceGnmSubmitDone, and the new submit-wait regression covers the next frame's first submission. The added tests are a useful improvement, and the body now reports paired validation-layer runs with no VUIDs on either side. I also ran git diff --check successfully. I did not run the C++ tests locally because this checkout has no configured build tree and the filesystem has no free space.

One correctness question remains in the type-0 handling. PacketAt now determines the packet length and MergeEngines skips the whole packet. A type-0 packet carries register writes, so skipping it also drops those writes and can change the state seen by following type-3 commands. Please either apply the supported type-0 register writes, or reject unsupported type-0 packets with header/position context until the affected behavior is understood. Add a regression demonstrating the chosen behavior for register writes and following commands.

This branch is still stacked over open #9431/#9432 and the current merge-tree conflicts with main in libSceAgcDriver/CMakeLists.txt. The title test described in this PR was run on the earlier Get-fix bring-up branch, not against current main. Please coordinate/rebase the dependency stack and verify the CUSA04865 stop on current main with a log before treating the title-specific checklist as satisfied.

I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5614129959 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676#pullrequestreview-5614129959). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T12:29:25Z. **Review:** CHANGES_REQUESTED --- The latest head addresses my prior frame-boundary finding: `g_workQueued` survives `sceGnmSubmitDone`, and the new submit-wait regression covers the next frame's first submission. The added tests are a useful improvement, and the body now reports paired validation-layer runs with no VUIDs on either side. I also ran `git diff --check` successfully. I did not run the C++ tests locally because this checkout has no configured build tree and the filesystem has no free space. One correctness question remains in the type-0 handling. `PacketAt` now determines the packet length and `MergeEngines` skips the whole packet. A type-0 packet carries register writes, so skipping it also drops those writes and can change the state seen by following type-3 commands. Please either apply the supported type-0 register writes, or reject unsupported type-0 packets with header/position context until the affected behavior is understood. Add a regression demonstrating the chosen behavior for register writes and following commands. This branch is still stacked over open #9431/#9432 and the current merge-tree conflicts with main in `libSceAgcDriver/CMakeLists.txt`. The title test described in this PR was run on the earlier Get-fix bring-up branch, not against current main. Please coordinate/rebase the dependency stack and verify the CUSA04865 stop on current main with a log before treating the title-specific checklist as satisfied. I’ve noticed that holding this PR because of #5239 isn’t necessary. It’s fine for PRs to keep coming in; they’ll be handled in due course. Please disregard my earlier request to hold or defer it.
ntamas94 commented 2026-10-22 13:22:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ntamas94 on 2026-10-22T13:22:00Z.


Rebased onto #9432's new head (f2928f44d, on main 7e2ba73e4); thanks for the heads-up, Get-fix, and for the co-author line. #9432 now drops the type-2 filler, so what remained of the first commit here is the type-0 half, and both of you are right that skipping a register write drops state without a trace. It no longer skips: a type-0 packet, like a type-1 one, throws with its type, header and dword position, and a header dword of 1 names the case Gang Beasts produces (a title store that landed on a rebuilt buffer; APS5_GNM_SUBMIT_WAIT_IDLE=1 keeps the queue ahead of it, so with the knob the throw does not fire). Applying type-0 writes waits until a title shows what one carries; the debt entry says so. The conflicts were in PacketAt, the two MergeEngines loops, the test CMake block and the debt file; the resolution keeps #9432's IsFiller, its CheckSubmission rules and its guest_gnm_driver test, whose typeZero case is unchanged and passes. gnm_driver_packets now checks the type-0 throw with its header and position, the header-of-1 message and the type-1 throw; it and gnm_driver_submit_wait pass on the new base. The title and description say "report type-0 packets" now. Paired validation-layer run, now in the description: main (100% tests passed, main build 7e2ba73e4) and this branch (100% tests passed out of 3) with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and VK_LOADER_DEBUG=warn,error, ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader's adding layers "VK_LAYER_KHRONOS_validation" line (78 and 2 times) and neither reports was not found but was requested by env var VK_INSTANCE_LAYERS; VUID- ids on main: 0, on this branch: 0, new on this branch: 0. The Gang Beasts run reported so far is from the Get-fix bring-up branch; a run of the title on this stack over current main, with its log, follows separately.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341816537 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676#issuecomment-6341816537). Originally posted by [ntamas94](https://github.com/ntamas94) on 2026-10-22T13:22:00Z. --- Rebased onto #9432's new head (`f2928f44d`, on `main` `7e2ba73e4`); thanks for the heads-up, Get-fix, and for the co-author line. #9432 now drops the type-2 filler, so what remained of the first commit here is the type-0 half, and both of you are right that skipping a register write drops state without a trace. It no longer skips: a type-0 packet, like a type-1 one, throws with its type, header and dword position, and a header dword of 1 names the case Gang Beasts produces (a title store that landed on a rebuilt buffer; `APS5_GNM_SUBMIT_WAIT_IDLE=1` keeps the queue ahead of it, so with the knob the throw does not fire). Applying type-0 writes waits until a title shows what one carries; the debt entry says so. The conflicts were in `PacketAt`, the two `MergeEngines` loops, the test CMake block and the debt file; the resolution keeps #9432's `IsFiller`, its `CheckSubmission` rules and its `guest_gnm_driver` test, whose `typeZero` case is unchanged and passes. `gnm_driver_packets` now checks the type-0 throw with its header and position, the header-of-1 message and the type-1 throw; it and `gnm_driver_submit_wait` pass on the new base. The title and description say "report type-0 packets" now. Paired validation-layer run, now in the description: `main` (100% tests passed, main build 7e2ba73e4) and this branch (100% tests passed out of 3) with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `VK_LOADER_DEBUG=warn,error`, `ctest -V`, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: both logs carry the loader's `adding layers "VK_LAYER_KHRONOS_validation"` line (78 and 2 times) and neither reports `was not found but was requested by env var VK_INSTANCE_LAYERS`; `VUID-` ids on `main`: 0, on this branch: 0, new on this branch: 0. The Gang Beasts run reported so far is from the Get-fix bring-up branch; a run of the title on this stack over current `main`, with its log, follows separately. AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
XairRrR commented 2026-10-29 04:54:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T04:54:32Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The PR's own Gnm changes do what the description says, and the new tests pass and catch a revert of each part; but the head conflicts with main through its #9431/#9432 base, does not compile on Linux as it stands, and its test adds export declarations that current main rejects.

What I ran

  • PR head: 004c63b5015eefec18ee76552cc8550bb68e1976
  • main: 52c09d567d2fa453494dd720fcf53a98149468e4
  • PR base (#9432 head in this stack): f2928f44d427ff146e00b80683785feabdb5a16e; #9431's current head is eefa50841267cd0bd5352af17248139445fb0613 and is not an ancestor of this PR.

All of this ran in a clean worktree. The merge with main conflicted, so the build and tests ran on the PR head itself, with the local two-line assert change described under Blocking 2.

git fetch -q origin main pull/9676/head:refs/review/9676
git checkout -q --detach origin/main
git merge -q --no-ff --no-edit refs/review/9676          # conflicts, aborted
git checkout -q --detach refs/review/9676
git diff --check origin/main...refs/review/9676
python3 tools/check_conventions.py --base origin/main
python3 tools/check_conventions.py --base origin/main --title "<PR title>" --body <PR body>
cmake --build build -j10 --target gnm_driver_submit_tests guest_gnm_driver_tests   # fails, see Blocking 2
# local only: PipelineJournal.cpp asserts set to 792 / 116, then the same build
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \
  ctest --test-dir build -R '^(gnm_driver_packets|gnm_driver_submit_wait|guest_gnm_driver)$' -V --output-on-failure -j4
# main's core/libs/tests/test_public_headers.py read against the new tests/Submit.cpp declarations

Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08).

Results

Check Result
Merge into main Conflicts: Graphics/include/GuestTextureResource.hpp, Graphics/include/State.hpp, Graphics/src/DepthSurface.cpp, Graphics/src/State.cpp (all under core/libs/prx/libSceAgcDriver), docs/dev/debt/libSceVideoOut.md. All of them come from the #9431/#9432 commits; this PR's own six files merge cleanly.
git diff --check clean
check_conventions.py --base origin/main (with and without title/body) All conventions checks passed.
Build of PR head, Linux x86-64 GCC fails: two static_asserts in PipelineJournal.cpp
Build with the two asserts adjusted locally OK
gnm_driver_packets Passed (0.00 s)
gnm_driver_submit_wait (NVIDIA, validation layer) Passed (0.73 s)
guest_gnm_driver (from #9432) Passed (0.01 s)
Validation layer loaded yes (env var 'VK_INSTANCE_LAYERS' defined and adding layers "VK_LAYER_KHRONOS_validation", inserted as instance and device layer)
was not found but was requested by env var VK_INSTANCE_LAYERS 0
VUID- lines 0
Paired run on main not possible: main has no libSceGnmDriver and none of these tests
Build failure on the PR head
core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp:38:29: error: static assertion failed: State changed: update CanonicalPipelineState and the recipe codec
  • the comparison reduces to '(792 == 784)'
core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp:39:36: error: static assertion failed: ShaderStages changed: update the recipe codec
  • the comparison reduces to '(116 == 112)'

(translated from the French compiler locale)

ctest excerpt
1224: GnmDriver packet tests passed
1/3 Test #1224: gnm_driver_packets ...............   Passed    0.00 sec
1223: gnm driver tests passed
2/3 Test #1223: guest_gnm_driver .................   Passed    0.01 sec
1225: [src/VulkanDevice.cpp:1165 VulkanDevice] Selected GPU name=NVIDIA GeForce RTX 4070 Ti SUPER vendor=0x10de device=0x2705 subgroup=32
1225: GnmDriver submission wait tests passed
3/3 Test #1225: gnm_driver_submit_wait ...........   Passed    0.73 sec
100% tests passed out of 3

Negative control

The tests call GnmDriver::PacketAt/MergeEngines, which only exist with this change, so restoring Export.cpp wholesale would not link. I reverted each behaviour in core/libs/prx/libSceGnmDriver/Export.cpp separately and rebuilt each time:

Revert gnm_driver_packets gnm_driver_submit_wait
A: drop if (waitIdle && g_workQueued) AgcDriverWaitIdle_nid_postfix(); Passed Failed: the first submission of the next frame did not wait for the work queued before sceGnmSubmitDone
B: gate the wait on g_frameStarted (the earlier version MarcZX10 reviewed) Passed Failed
C: restore the base's unsupported PM4 packet type in the <stream> throw Failed: a type-0 packet did not throw with its header and position: GnmDriver: unsupported PM4 packet type in the draw command buffer Passed

Each test fails when its own part is reverted and passes otherwise. This confirms on Linux/NVIDIA that MarcZX10's frame-boundary finding is fixed on this head. After the controls I restored the PR file and rebuilt.

Findings

Blocking

  1. Conflicts with main. The merge stops in the five files listed above. All of them come from the stacked #9431/#9432 commits, so the author's comment that this PR adds no conflict of its own holds. Still, the branch cannot merge as it stands. #9431 has been rebased since (eefa508, now MERGEABLE), and this PR is still stacked on its older head 9437229e21. Fix: rebase onto #9432 once #9432 is rebased onto #9431's current head, then rerun the tests on the merge with main.

  2. The PR head does not compile on Linux x86-64 with libstdc++. PipelineJournal.cpp:38-39 still asserts sizeof(State) == 784 and sizeof(ShaderStages) == 112. The old #9431 commit in this stack adds bool legacyVertex to ShaderStages (State.hpp:35), which makes them 792 and 116. The asserts are guarded by __linux__ && __x86_64__ && __GLIBCXX__, which is why the Windows-only testing in the description did not hit them. #9431's current head has updated asserts, so the rebase in (1) should clear this. Until then, this head's Linux CI build would fail before reaching the Gnm code. "Linux was not run locally" is accurate, but this is the consequence. For this review I changed the two numbers locally to build and test the Gnm code. That change is not part of the PR.

  3. tests/Submit.cpp re-declares two exports, which current main forbids. Submit.cpp:23-24 declares extern "C" int APS5_VABI sceGnmSubmitCommandBuffers(...) and sceGnmSubmitDone() locally. CONTRIBUTING.md:6 on main requires exactly one declaration of each APS5_VABI export, in a header reachable from the library's <library>.hpp. It forbids duplicates in tests, and the public_headers test enforces this. The PR's base predates that rule, so the conventions check passes here. After a rebase, these two lines (and #9432's identical declarations in core/libs/tests/GuestGnmDriver.cpp) will fail public_headers with expected exactly one header declaration. Fix: declare the Gnm exports in a core/libs/prx/libSceGnmDriver/libSceGnmDriver.hpp umbrella, probably in #9432, and include it from Submit.cpp instead of declaring them.

Non-blocking

  1. The header == 1u hint diagnoses one title's cause for every title. Export.cpp:143-148 appends "a title store that landed on a rebuilt buffer; APS5_GNM_SUBMIT_WAIT_IDLE=1 keeps the queue ahead of it" whenever the header dword is exactly 1. That cause and that value come from the Gang Beasts trace. In general, a header of 1 is just a type-0 write of one dword at register index 1, and for another title the message would send the reader to the wrong knob. The behaviour is the same throw for every input, but AGENTS.md says not to special-case a value seen in one title's trace. Suggest dropping the suffix and keeping the type, header and position, which already identify the packet. The debt entry can keep the explanation. If the hint stays, the header == 1 expectation in gnm_driver_packets goes with it.
  2. The wait runs while holding g_submitMutex. Export.cpp:255-258: AgcDriverWaitIdle_nid_postfix() blocks sceGnmSubmitDone and every other submitting thread until the queue is idle. A label written by a thread that first takes that mutex would hang, which is the same class of hang the debt entry describes for labels written after a later submission. It is off by default and documented, so this is a note, not a request. A sentence in the "Submission pacing" entry that other submitting threads are blocked during the wait would cover it.
  3. oneandonlydean's two requests from 2026-10-27 (no tests pinning the valid type-0 form as throwing; the game names in the two new debt entries) are still open on this head: Submit.cpp still asserts the type-0 throws, and docs/dev/debt/libSceGnmDriver.md:15-16 still names Gang Beasts. I have nothing to add beyond noting that they are unaddressed.

Not verified

  • Anything on the merge with main: it conflicts, so build, tests and conventions ran on the PR head only.
  • public_headers was not run on this tree, because the PR's base predates the umbrella headers and the whole tree fails that test. Blocking 3 is from reading main's test against Submit.cpp.
  • No paired main run: main has neither libSceGnmDriver nor these tests.
  • Windows, lavapipe and other GPU vendors; sceGnmSubmitAndFlipCommandBuffers with the knob (the test only covers sceGnmSubmitCommandBuffers).
  • The Gang Beasts (CUSA04865) results: no title was run.

To get this to a good state

  1. Rebase onto #9432 after #9432 is rebased onto #9431's current head (eefa508) and main. Confirm that the Linux build passes (PipelineJournal.cpp asserts) and that the merge with main is clean.
  2. Move the two APS5_VABI declarations out of tests/Submit.cpp into the library's umbrella header, and run public_headers on the rebased tree.
  3. Consider dropping the header-of-1 hint from the exception text (Non-blocking 1), and resolve oneandonlydean's two requests.
  4. Rerun gnm_driver_packets, gnm_driver_submit_wait and guest_gnm_driver with the validation layer on the rebased merge.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693028144 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676#pullrequestreview-5693028144). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T04:54:32Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The PR's own Gnm changes do what the description says, and the new tests pass and catch a revert of each part; but the head conflicts with `main` through its #9431/#9432 base, does not compile on Linux as it stands, and its test adds export declarations that current `main` rejects. ## What I ran - PR head: `004c63b5015eefec18ee76552cc8550bb68e1976` - `main`: `52c09d567d2fa453494dd720fcf53a98149468e4` - PR base (#9432 head in this stack): `f2928f44d427ff146e00b80683785feabdb5a16e`; #9431's current head is `eefa50841267cd0bd5352af17248139445fb0613` and is not an ancestor of this PR. All of this ran in a clean worktree. The merge with `main` conflicted, so the build and tests ran on the PR head itself, with the local two-line assert change described under Blocking 2. ``` git fetch -q origin main pull/9676/head:refs/review/9676 git checkout -q --detach origin/main git merge -q --no-ff --no-edit refs/review/9676 # conflicts, aborted git checkout -q --detach refs/review/9676 git diff --check origin/main...refs/review/9676 python3 tools/check_conventions.py --base origin/main python3 tools/check_conventions.py --base origin/main --title "<PR title>" --body <PR body> cmake --build build -j10 --target gnm_driver_submit_tests guest_gnm_driver_tests # fails, see Blocking 2 # local only: PipelineJournal.cpp asserts set to 792 / 116, then the same build VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \ ctest --test-dir build -R '^(gnm_driver_packets|gnm_driver_submit_wait|guest_gnm_driver)$' -V --output-on-failure -j4 # main's core/libs/tests/test_public_headers.py read against the new tests/Submit.cpp declarations ``` Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08). ## Results | Check | Result | |---|---| | Merge into `main` | **Conflicts**: `Graphics/include/GuestTextureResource.hpp`, `Graphics/include/State.hpp`, `Graphics/src/DepthSurface.cpp`, `Graphics/src/State.cpp` (all under `core/libs/prx/libSceAgcDriver`), `docs/dev/debt/libSceVideoOut.md`. All of them come from the #9431/#9432 commits; this PR's own six files merge cleanly. | | `git diff --check` | clean | | `check_conventions.py --base origin/main` (with and without title/body) | `All conventions checks passed.` | | Build of PR head, Linux x86-64 GCC | **fails**: two `static_assert`s in `PipelineJournal.cpp` | | Build with the two asserts adjusted locally | OK | | `gnm_driver_packets` | Passed (0.00 s) | | `gnm_driver_submit_wait` (NVIDIA, validation layer) | Passed (0.73 s) | | `guest_gnm_driver` (from #9432) | Passed (0.01 s) | | Validation layer loaded | yes (`env var 'VK_INSTANCE_LAYERS' defined and adding layers "VK_LAYER_KHRONOS_validation"`, inserted as instance and device layer) | | `was not found but was requested by env var VK_INSTANCE_LAYERS` | 0 | | `VUID-` lines | 0 | | Paired run on `main` | not possible: `main` has no `libSceGnmDriver` and none of these tests | <details><summary>Build failure on the PR head</summary> ``` core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp:38:29: error: static assertion failed: State changed: update CanonicalPipelineState and the recipe codec • the comparison reduces to '(792 == 784)' core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp:39:36: error: static assertion failed: ShaderStages changed: update the recipe codec • the comparison reduces to '(116 == 112)' ``` (translated from the French compiler locale) </details> <details><summary>ctest excerpt</summary> ``` 1224: GnmDriver packet tests passed 1/3 Test #1224: gnm_driver_packets ............... Passed 0.00 sec 1223: gnm driver tests passed 2/3 Test #1223: guest_gnm_driver ................. Passed 0.01 sec 1225: [src/VulkanDevice.cpp:1165 VulkanDevice] Selected GPU name=NVIDIA GeForce RTX 4070 Ti SUPER vendor=0x10de device=0x2705 subgroup=32 1225: GnmDriver submission wait tests passed 3/3 Test #1225: gnm_driver_submit_wait ........... Passed 0.73 sec 100% tests passed out of 3 ``` </details> ## Negative control The tests call `GnmDriver::PacketAt`/`MergeEngines`, which only exist with this change, so restoring `Export.cpp` wholesale would not link. I reverted each behaviour in `core/libs/prx/libSceGnmDriver/Export.cpp` separately and rebuilt each time: | Revert | `gnm_driver_packets` | `gnm_driver_submit_wait` | |---|---|---| | A: drop `if (waitIdle && g_workQueued) AgcDriverWaitIdle_nid_postfix();` | Passed | **Failed**: `the first submission of the next frame did not wait for the work queued before sceGnmSubmitDone` | | B: gate the wait on `g_frameStarted` (the earlier version MarcZX10 reviewed) | Passed | **Failed** | | C: restore the base's `unsupported PM4 packet type in the <stream>` throw | **Failed**: `a type-0 packet did not throw with its header and position: GnmDriver: unsupported PM4 packet type in the draw command buffer` | Passed | Each test fails when its own part is reverted and passes otherwise. This confirms on Linux/NVIDIA that MarcZX10's frame-boundary finding is fixed on this head. After the controls I restored the PR file and rebuilt. ## Findings ### Blocking 1. **Conflicts with `main`.** The merge stops in the five files listed above. All of them come from the stacked #9431/#9432 commits, so the author's comment that this PR adds no conflict of its own holds. Still, the branch cannot merge as it stands. #9431 has been rebased since (`eefa508`, now `MERGEABLE`), and this PR is still stacked on its older head `9437229e21`. Fix: rebase onto #9432 once #9432 is rebased onto #9431's current head, then rerun the tests on the merge with `main`. 2. **The PR head does not compile on Linux x86-64 with libstdc++.** [`PipelineJournal.cpp:38-39`](https://github.com/boykopovar/AnyPS5/blob/004c63b5015eefec18ee76552cc8550bb68e1976/core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp#L38-L39) still asserts `sizeof(State) == 784` and `sizeof(ShaderStages) == 112`. The old #9431 commit in this stack adds `bool legacyVertex` to `ShaderStages` ([`State.hpp:35`](https://github.com/boykopovar/AnyPS5/blob/004c63b5015eefec18ee76552cc8550bb68e1976/core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp#L35)), which makes them 792 and 116. The asserts are guarded by `__linux__ && __x86_64__ && __GLIBCXX__`, which is why the Windows-only testing in the description did not hit them. #9431's current head has updated asserts, so the rebase in (1) should clear this. Until then, this head's Linux CI build would fail before reaching the Gnm code. "Linux was not run locally" is accurate, but this is the consequence. For this review I changed the two numbers locally to build and test the Gnm code. That change is not part of the PR. 3. **`tests/Submit.cpp` re-declares two exports, which current `main` forbids.** [`Submit.cpp:23-24`](https://github.com/boykopovar/AnyPS5/blob/004c63b5015eefec18ee76552cc8550bb68e1976/core/libs/prx/libSceGnmDriver/tests/Submit.cpp#L23-L24) declares `extern "C" int APS5_VABI sceGnmSubmitCommandBuffers(...)` and `sceGnmSubmitDone()` locally. [CONTRIBUTING.md:6](https://github.com/boykopovar/AnyPS5/blob/52c09d567d2fa453494dd720fcf53a98149468e4/CONTRIBUTING.md#L6) on `main` requires exactly one declaration of each `APS5_VABI` export, in a header reachable from the library's `<library>.hpp`. It forbids duplicates in tests, and the [`public_headers`](https://github.com/boykopovar/AnyPS5/blob/52c09d567d2fa453494dd720fcf53a98149468e4/core/libs/tests/test_public_headers.py#L138-L144) test enforces this. The PR's base predates that rule, so the conventions check passes here. After a rebase, these two lines (and #9432's identical declarations in `core/libs/tests/GuestGnmDriver.cpp`) will fail `public_headers` with `expected exactly one header declaration`. Fix: declare the Gnm exports in a `core/libs/prx/libSceGnmDriver/libSceGnmDriver.hpp` umbrella, probably in #9432, and include it from `Submit.cpp` instead of declaring them. ### Non-blocking 1. **The `header == 1u` hint diagnoses one title's cause for every title.** [`Export.cpp:143-148`](https://github.com/boykopovar/AnyPS5/blob/004c63b5015eefec18ee76552cc8550bb68e1976/core/libs/prx/libSceGnmDriver/Export.cpp#L143-L148) appends "a title store that landed on a rebuilt buffer; APS5_GNM_SUBMIT_WAIT_IDLE=1 keeps the queue ahead of it" whenever the header dword is exactly 1. That cause and that value come from the Gang Beasts trace. In general, a header of 1 is just a type-0 write of one dword at register index 1, and for another title the message would send the reader to the wrong knob. The behaviour is the same throw for every input, but AGENTS.md says not to special-case a value seen in one title's trace. Suggest dropping the suffix and keeping the type, header and position, which already identify the packet. The debt entry can keep the explanation. If the hint stays, the `header == 1` expectation in `gnm_driver_packets` goes with it. 2. **The wait runs while holding `g_submitMutex`.** [`Export.cpp:255-258`](https://github.com/boykopovar/AnyPS5/blob/004c63b5015eefec18ee76552cc8550bb68e1976/core/libs/prx/libSceGnmDriver/Export.cpp#L255-L258): `AgcDriverWaitIdle_nid_postfix()` blocks `sceGnmSubmitDone` and every other submitting thread until the queue is idle. A label written by a thread that first takes that mutex would hang, which is the same class of hang the debt entry describes for labels written after a later submission. It is off by default and documented, so this is a note, not a request. A sentence in the "Submission pacing" entry that other submitting threads are blocked during the wait would cover it. 3. oneandonlydean's two requests from 2026-10-27 (no tests pinning the valid type-0 form as throwing; the game names in the two new debt entries) are still open on this head: `Submit.cpp` still asserts the type-0 throws, and `docs/dev/debt/libSceGnmDriver.md:15-16` still names Gang Beasts. I have nothing to add beyond noting that they are unaddressed. ## Not verified - Anything on the merge with `main`: it conflicts, so build, tests and conventions ran on the PR head only. - `public_headers` was not run on this tree, because the PR's base predates the umbrella headers and the whole tree fails that test. Blocking 3 is from reading main's test against `Submit.cpp`. - No paired `main` run: `main` has neither `libSceGnmDriver` nor these tests. - Windows, lavapipe and other GPU vendors; `sceGnmSubmitAndFlipCommandBuffers` with the knob (the test only covers `sceGnmSubmitCommandBuffers`). - The Gang Beasts (CUSA04865) results: no title was run. ## To get this to a good state 1. Rebase onto #9432 after #9432 is rebased onto #9431's current head (`eefa508`) and `main`. Confirm that the Linux build passes (`PipelineJournal.cpp` asserts) and that the merge with `main` is clean. 2. Move the two `APS5_VABI` declarations out of `tests/Submit.cpp` into the library's umbrella header, and run `public_headers` on the rebased tree. 3. Consider dropping the header-of-1 hint from the exception text (Non-blocking 1), and resolve oneandonlydean's two requests. 4. Rerun `gnm_driver_packets`, `gnm_driver_submit_wait` and `guest_gnm_driver` with the validation layer on the rebased merge.
MarcZX10 commented 2026-10-29 09:06:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:06:29Z.

Review: DISMISSED


Re-check — changes requested\n\nI checked the current head 4765688e1d. It now rejects type-0 packets in PacketAt with packet type, header, stream and dword position; it does not silently skip register writes. I withdraw my earlier finding that MergeEngines drops type-0 writes. Removing tests that pin a valid-but-unimplemented type-0 packet to a throw is consistent with the repository test policy, so please do not restore those assertions.\n\nThe remaining integration blocker is that this branch is still based on main snapshot 830ccd121f, while current main is aaccd0ba39 (the head is over 7,000 commits behind). The title evidence and GPU validation in the description are also from the older bring-up stack. Please restack on current main while preserving the #9432 dependency and the separately scoped packet/reporting and submit-wait commits, then rerun gnm_driver_packets, gnm_driver_submit_wait and the focused Vulkan validation suite. Repeat the CUSA04865 run on the resulting dependency stack if the Unblocks checklist remains. The exact-head new change to tests/debt does not supply current-base integration evidence. I did not run these tests locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5695215205 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676#pullrequestreview-5695215205). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T09:06:29Z. **Review:** DISMISSED --- ## Re-check — changes requested\n\nI checked the current head 4765688e1dfeacd6aa9789eb4cbfd1042042f30a. It now rejects type-0 packets in PacketAt with packet type, header, stream and dword position; it does not silently skip register writes. I withdraw my earlier finding that MergeEngines drops type-0 writes. Removing tests that pin a valid-but-unimplemented type-0 packet to a throw is consistent with the repository test policy, so please do not restore those assertions.\n\nThe remaining integration blocker is that this branch is still based on main snapshot 830ccd121f, while current main is aaccd0ba39 (the head is over 7,000 commits behind). The title evidence and GPU validation in the description are also from the older bring-up stack. Please restack on current main while preserving the #9432 dependency and the separately scoped packet/reporting and submit-wait commits, then rerun gnm_driver_packets, gnm_driver_submit_wait and the focused Vulkan validation suite. Repeat the CUSA04865 run on the resulting dependency stack if the Unblocks checklist remains. The exact-head new change to tests/debt does not supply current-base integration evidence. I did not run these tests locally.
XairRrR commented 2026-10-29 10:22:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T10:22:17Z.

Review: CHANGES_REQUESTED


Re-checked — changes still requested

The branch now has current main merged in and merges cleanly, the title-specific hint and the type-0 test cases are gone, and the tests pass on the merge with main. But commit 003df54167 also moves SPIRV-Tools and SPIRV-Headers back to their older revisions, and public_headers still fails.

What changed since my last review

  • 4765688e1d removes the two type-0 expectations and the Type0 helper from tests/Submit.cpp, and replaces the game names in docs/dev/debt/libSceGnmDriver.md with CUSA04865.
  • ad5892ec31 and 358a6ddcd3 merge main (aaccd0ba39, then f7e84c4cf1) into the branch. #9431's old commits now match main.
  • 003df54167 drops the header == 1u suffix from the packet type error and adds a sentence about the submission lock to the "Submission pacing" debt entry. The same commit also changes the 3rdparty/SPIRV-Headers and 3rdparty/SPIRV-Tools pointers (New finding 1).
  • The author replied point by point. The description now explains the merge, the public_headers state and the removed type-0 cases.
  • MarcZX10 re-checked 4765688e1d and asked for a restack on current main. The merges answer the base part of that request.

What I ran

  • PR head: 358a6ddcd33876169b7815d3c13df98c12b8a22e
  • main: 89dce2838dfc7bd7c785ffd14e4e6aaf81bf8bc1
  • Merge commit tested: 93a4557b24c35ebbf91fe53ce77240f118b729e1 (clean merge)

All commands ran in a clean worktree. Builds and tests ran in a sandbox without network. Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08).

git fetch -q origin main pull/9676/head:refs/review/9676
git checkout -q --detach origin/main
git merge -q --no-ff --no-edit refs/review/9676
git diff --check origin/main...refs/review/9676
git diff origin/main...refs/review/9676 -- 3rdparty
python3 tools/check_conventions.py --base origin/main
cmake -S . -B build
cmake --build build -j10 --target libs
cmake --build build -j10 --target gnm_driver_submit_tests guest_gnm_driver_tests video_out_flip_tests
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \
  ctest --test-dir build -R '^(gnm_driver_packets|gnm_driver_submit_wait|guest_gnm_driver|video_out_flip_ps4)$' -V --output-on-failure -j4
ctest --test-dir build -R '^public_headers$' --output-on-failure          # merged tree, then origin/main
# negative controls on Export.cpp, see below

Results

Check Result
Merge into main clean
git diff --check clean
check_conventions.py --base origin/main All conventions checks passed.
Submodule pointers vs main changed: SPIRV-Tools 262bdab481 (v2025.5) → 7f2d9ee926 (v2025.4); SPIRV-Headers b824a462d4 → 01e0577914
Build libs (merged tree, Linux x86-64 GCC) OK. The Blocking 2 asserts no longer fail.
Build of the test targets OK
gnm_driver_packets Passed (0.00 s)
guest_gnm_driver Passed (0.01 s)
gnm_driver_submit_wait (NVIDIA, validation layer) Passed (0.86 s)
video_out_flip_ps4 Skipped: the sandbox's SDL offscreen driver has no Vulkan
Validation layer loaded yes, adding layers "VK_LAYER_KHRONOS_validation" twice
was not found but was requested by env var VK_INSTANCE_LAYERS 0
VUID- lines 0
public_headers, merged tree Failed
public_headers, main Passed
Paired GPU run on main not run: main has no libSceGnmDriver and none of these tests
public_headers on the merged tree
RuntimeError: Missing library umbrella headers: core/libs/prx/libSceGnmDriver/libSceGnmDriver.hpp
0% tests passed, 1 tests failed out of 1
	325 - public_headers (Failed)
Submodule change in 003df54167
$ git show --format='%h %p %s' 003df54167 -- 3rdparty
003df54167 ad5892ec31 fix(libSceGnmDriver): drop the title-specific hint from the packet type error
-Subproject commit b824a462d4256d720bebb40e78b9eb8f78bbb305
+Subproject commit 01e0577914a75a2569c846778c2f93aa8e6feddd
-Subproject commit 262bdab48146c937467f826699a40da0fdfc0f1a
+Subproject commit 7f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458
ctest excerpt (merged tree)
1/4 Test #1970: gnm_driver_packets ...............   Passed    0.00 sec
2/4 Test #1969: guest_gnm_driver .................   Passed    0.01 sec
3/4 Test #2329: video_out_flip_ps4 ...............***Skipped   0.03 sec
1971: GnmDriver submission wait tests passed
4/4 Test #1971: gnm_driver_submit_wait ...........   Passed    0.86 sec
100% tests passed out of 4

Negative control

Since my last review the tests only lost cases, so I redid the controls on the merge with main. Each time I reverted one behaviour in core/libs/prx/libSceGnmDriver/Export.cpp, rebuilt, ran the tests, and then restored the file and rebuilt:

Revert gnm_driver_packets gnm_driver_submit_wait
Drop if (waitIdle && g_workQueued) AgcDriverWaitIdle_nid_postfix(); Passed Failed: the first submission of the next frame did not wait for the work queued before sceGnmSubmitDone
Skip type-1 packets instead of throwing Failed: a type-1 packet did not throw with its header and position not run

Previous findings

  • Blocking 1 (conflicts with main): Resolved. The merge with main 89dce2838d is clean.
  • Blocking 2 (PipelineJournal.cpp asserts on Linux): Resolved. libs and the test targets build on Linux x86-64 GCC from the merged tree.
  • Blocking 3 (local export declarations / public_headers): Still open. Submit.cpp:23-24 still declares the two exports. On the merged tree public_headers fails earlier than that, with the missing-umbrella check, while it passes on main. I agree with the author that the header belongs in #9432. But this branch carries #9432's commits, and merging it as it stands would break public_headers on main. It stays blocking until #9432 adds the umbrella and this PR includes it.
  • Non-blocking 1 (header-of-1 hint): Resolved in 003df54167. Export.cpp:143-146 now reports only the type, header and position.
  • Non-blocking 2 (wait under g_submitMutex): Resolved. The "Submission pacing" entry now ends with "The wait holds the submission lock, so a label written by another thread after it takes that lock hangs the same way."
  • Non-blocking 3 (oneandonlydean's requests): Resolved in 4765688e1d. Both type-0 cases are gone, and the debt file uses CUSA04865 instead of the game names.

New findings

Blocking

  1. 003df54167 moves SPIRV-Tools from v2025.5 back to v2025.4 and SPIRV-Headers back to 01e0577914. The commit's subject only describes the error message, but it also changes both submodule pointers. The values match the pre-merge branch, which suggests stale submodule checkouts were committed along with the fix. 358a6ddcd3 keeps these values, so the PR's diff against main downgrades both dependencies. main fixed this same accident in 03bc1d1aa6 ("#6134 moved both submodules back to v2025.4 and 01e057791 by accident, which undid #5319"). Fix: set both pointers back to main's revisions, for example git checkout origin/main -- 3rdparty/SPIRV-Headers 3rdparty/SPIRV-Tools followed by a commit, and run git submodule update before the next git commit -a. git diff origin/main... -- 3rdparty should then be empty.

Non-blocking

  1. The PS4 sceVideoOutRegisterBuffers debt entry is stale on this branch. libSceVideoOut.md:29 still says the function "accepts only linear A8R8G8B8_SRGB (0x80000000) and A8B8G8R8_SRGB (0x80002200) buffers without options; tiled PS4 buffers throw". With #9432's commits, Buffer.cpp accepts tiling mode 0 and pixel format 0x88000000, and the new "PS4 tiled display buffers" entry on line 31 describes that. This comes from #9432 rather than this PR's own commits, so the fix belongs there: update line 29 to match.

Not verified

  • video_out_flip_ps4 (changed by #9432's commits) was skipped, because the sandbox has no display with Vulkan.
  • No paired GPU run on main: main has neither libSceGnmDriver nor these tests.
  • I built with the submodule revisions already checked out in the worktree (the older v2025.4 ones). I did not build with main's v2025.5 checkouts.
  • Windows, other GPU vendors, and sceGnmSubmitAndFlipCommandBuffers with the knob.
  • The CUSA04865 results. No title was run, and MarcZX10's point that those results come from the older stack is still open.

To get this to a good state

  1. Restore 3rdparty/SPIRV-Headers and 3rdparty/SPIRV-Tools to main's revisions (New Blocking 1).
  2. Add the libSceGnmDriver.hpp umbrella in #9432, move the two declarations in tests/Submit.cpp to an include of it, and confirm that public_headers passes on the merge with main.
  3. Optionally, update the stale sceVideoOutRegisterBuffers entry in #9432.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696152610 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676#pullrequestreview-5696152610). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T10:22:17Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes still requested The branch now has current `main` merged in and merges cleanly, the title-specific hint and the type-0 test cases are gone, and the tests pass on the merge with `main`. But commit `003df54167` also moves SPIRV-Tools and SPIRV-Headers back to their older revisions, and `public_headers` still fails. ## What changed since my last review - `4765688e1d` removes the two type-0 expectations and the `Type0` helper from `tests/Submit.cpp`, and replaces the game names in `docs/dev/debt/libSceGnmDriver.md` with CUSA04865. - `ad5892ec31` and `358a6ddcd3` merge `main` (`aaccd0ba39`, then `f7e84c4cf1`) into the branch. #9431's old commits now match `main`. - `003df54167` drops the `header == 1u` suffix from the packet type error and adds a sentence about the submission lock to the "Submission pacing" debt entry. The same commit also changes the `3rdparty/SPIRV-Headers` and `3rdparty/SPIRV-Tools` pointers (New finding 1). - The author replied point by point. The description now explains the merge, the `public_headers` state and the removed type-0 cases. - MarcZX10 re-checked `4765688e1d` and asked for a restack on current `main`. The merges answer the base part of that request. ## What I ran - PR head: `358a6ddcd33876169b7815d3c13df98c12b8a22e` - `main`: `89dce2838dfc7bd7c785ffd14e4e6aaf81bf8bc1` - Merge commit tested: `93a4557b24c35ebbf91fe53ce77240f118b729e1` (clean merge) All commands ran in a clean worktree. Builds and tests ran in a sandbox without network. Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08). ``` git fetch -q origin main pull/9676/head:refs/review/9676 git checkout -q --detach origin/main git merge -q --no-ff --no-edit refs/review/9676 git diff --check origin/main...refs/review/9676 git diff origin/main...refs/review/9676 -- 3rdparty python3 tools/check_conventions.py --base origin/main cmake -S . -B build cmake --build build -j10 --target libs cmake --build build -j10 --target gnm_driver_submit_tests guest_gnm_driver_tests video_out_flip_tests VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \ ctest --test-dir build -R '^(gnm_driver_packets|gnm_driver_submit_wait|guest_gnm_driver|video_out_flip_ps4)$' -V --output-on-failure -j4 ctest --test-dir build -R '^public_headers$' --output-on-failure # merged tree, then origin/main # negative controls on Export.cpp, see below ``` ## Results | Check | Result | |---|---| | Merge into `main` | clean | | `git diff --check` | clean | | `check_conventions.py --base origin/main` | `All conventions checks passed.` | | Submodule pointers vs `main` | **changed**: SPIRV-Tools `262bdab481` (v2025.5) → `7f2d9ee926` (v2025.4); SPIRV-Headers `b824a462d4` → `01e0577914` | | Build `libs` (merged tree, Linux x86-64 GCC) | OK. The Blocking 2 asserts no longer fail. | | Build of the test targets | OK | | `gnm_driver_packets` | Passed (0.00 s) | | `guest_gnm_driver` | Passed (0.01 s) | | `gnm_driver_submit_wait` (NVIDIA, validation layer) | Passed (0.86 s) | | `video_out_flip_ps4` | Skipped: the sandbox's SDL `offscreen` driver has no Vulkan | | Validation layer loaded | yes, `adding layers "VK_LAYER_KHRONOS_validation"` twice | | `was not found but was requested by env var VK_INSTANCE_LAYERS` | 0 | | `VUID-` lines | 0 | | `public_headers`, merged tree | **Failed** | | `public_headers`, `main` | Passed | | Paired GPU run on `main` | not run: `main` has no `libSceGnmDriver` and none of these tests | <details><summary>public_headers on the merged tree</summary> ``` RuntimeError: Missing library umbrella headers: core/libs/prx/libSceGnmDriver/libSceGnmDriver.hpp 0% tests passed, 1 tests failed out of 1 325 - public_headers (Failed) ``` </details> <details><summary>Submodule change in 003df54167</summary> ``` $ git show --format='%h %p %s' 003df54167 -- 3rdparty 003df54167 ad5892ec31 fix(libSceGnmDriver): drop the title-specific hint from the packet type error -Subproject commit b824a462d4256d720bebb40e78b9eb8f78bbb305 +Subproject commit 01e0577914a75a2569c846778c2f93aa8e6feddd -Subproject commit 262bdab48146c937467f826699a40da0fdfc0f1a +Subproject commit 7f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458 ``` </details> <details><summary>ctest excerpt (merged tree)</summary> ``` 1/4 Test #1970: gnm_driver_packets ............... Passed 0.00 sec 2/4 Test #1969: guest_gnm_driver ................. Passed 0.01 sec 3/4 Test #2329: video_out_flip_ps4 ...............***Skipped 0.03 sec 1971: GnmDriver submission wait tests passed 4/4 Test #1971: gnm_driver_submit_wait ........... Passed 0.86 sec 100% tests passed out of 4 ``` </details> ### Negative control Since my last review the tests only lost cases, so I redid the controls on the merge with `main`. Each time I reverted one behaviour in `core/libs/prx/libSceGnmDriver/Export.cpp`, rebuilt, ran the tests, and then restored the file and rebuilt: | Revert | `gnm_driver_packets` | `gnm_driver_submit_wait` | |---|---|---| | Drop `if (waitIdle && g_workQueued) AgcDriverWaitIdle_nid_postfix();` | Passed | **Failed**: `the first submission of the next frame did not wait for the work queued before sceGnmSubmitDone` | | Skip type-1 packets instead of throwing | **Failed**: `a type-1 packet did not throw with its header and position` | not run | ## Previous findings - **Blocking 1 (conflicts with `main`): Resolved.** The merge with `main` `89dce2838d` is clean. - **Blocking 2 (`PipelineJournal.cpp` asserts on Linux): Resolved.** `libs` and the test targets build on Linux x86-64 GCC from the merged tree. - **Blocking 3 (local export declarations / `public_headers`): Still open.** [`Submit.cpp:23-24`](https://github.com/boykopovar/AnyPS5/blob/358a6ddcd33876169b7815d3c13df98c12b8a22e/core/libs/prx/libSceGnmDriver/tests/Submit.cpp#L23-L24) still declares the two exports. On the merged tree `public_headers` fails earlier than that, with the [missing-umbrella check](https://github.com/boykopovar/AnyPS5/blob/89dce2838dfc7bd7c785ffd14e4e6aaf81bf8bc1/core/libs/tests/test_public_headers.py#L104-L108), while it passes on `main`. I agree with the author that the header belongs in #9432. But this branch carries #9432's commits, and merging it as it stands would break `public_headers` on `main`. It stays blocking until #9432 adds the umbrella and this PR includes it. - **Non-blocking 1 (header-of-1 hint): Resolved** in `003df54167`. [`Export.cpp:143-146`](https://github.com/boykopovar/AnyPS5/blob/358a6ddcd33876169b7815d3c13df98c12b8a22e/core/libs/prx/libSceGnmDriver/Export.cpp#L143-L146) now reports only the type, header and position. - **Non-blocking 2 (wait under `g_submitMutex`): Resolved.** The "Submission pacing" entry now ends with "The wait holds the submission lock, so a label written by another thread after it takes that lock hangs the same way." - **Non-blocking 3 (oneandonlydean's requests): Resolved** in `4765688e1d`. Both type-0 cases are gone, and the debt file uses CUSA04865 instead of the game names. ## New findings ### Blocking 1. **`003df54167` moves SPIRV-Tools from v2025.5 back to v2025.4 and SPIRV-Headers back to `01e0577914`.** The commit's subject only describes the error message, but it also changes both submodule pointers. The values match the pre-merge branch, which suggests stale submodule checkouts were committed along with the fix. `358a6ddcd3` keeps these values, so the PR's diff against `main` downgrades both dependencies. `main` fixed this same accident in [`03bc1d1aa6`](https://github.com/boykopovar/AnyPS5/commit/03bc1d1aa66c41bfd3cb3a6b9223fe0241bd680c) ("#6134 moved both submodules back to v2025.4 and 01e057791 by accident, which undid #5319"). Fix: set both pointers back to `main`'s revisions, for example `git checkout origin/main -- 3rdparty/SPIRV-Headers 3rdparty/SPIRV-Tools` followed by a commit, and run `git submodule update` before the next `git commit -a`. `git diff origin/main... -- 3rdparty` should then be empty. ### Non-blocking 1. **The PS4 `sceVideoOutRegisterBuffers` debt entry is stale on this branch.** [`libSceVideoOut.md:29`](https://github.com/boykopovar/AnyPS5/blob/358a6ddcd33876169b7815d3c13df98c12b8a22e/docs/dev/debt/libSceVideoOut.md#L29) still says the function "accepts only linear A8R8G8B8_SRGB (0x80000000) and A8B8G8R8_SRGB (0x80002200) buffers without options; tiled PS4 buffers throw". With #9432's commits, `Buffer.cpp` accepts tiling mode 0 and pixel format `0x88000000`, and the new "PS4 tiled display buffers" entry on line 31 describes that. This comes from #9432 rather than this PR's own commits, so the fix belongs there: update line 29 to match. ## Not verified - `video_out_flip_ps4` (changed by #9432's commits) was skipped, because the sandbox has no display with Vulkan. - No paired GPU run on `main`: `main` has neither `libSceGnmDriver` nor these tests. - I built with the submodule revisions already checked out in the worktree (the older v2025.4 ones). I did not build with `main`'s v2025.5 checkouts. - Windows, other GPU vendors, and `sceGnmSubmitAndFlipCommandBuffers` with the knob. - The CUSA04865 results. No title was run, and MarcZX10's point that those results come from the older stack is still open. ## To get this to a good state 1. Restore `3rdparty/SPIRV-Headers` and `3rdparty/SPIRV-Tools` to `main`'s revisions (New Blocking 1). 2. Add the `libSceGnmDriver.hpp` umbrella in #9432, move the two declarations in `tests/Submit.cpp` to an include of it, and confirm that `public_headers` passes on the merge with `main`. 3. Optionally, update the stale `sceVideoOutRegisterBuffers` entry in #9432.
XairRrR commented 2026-10-29 15:09:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T15:09:28Z.

Review: CHANGES_REQUESTED


Re-checked — changes still requested

The only new commit, dc047ce8b7, merges main bb04a4f1ea, and the PR's own diff against main is unchanged by it. The focused tests pass again on the merge with main, and the submodule finding no longer applies, but public_headers still fails.

What changed since my last review

  • dc047ce8b7 merges main bb04a4f1ea. I compared git diff 89dce2838d...358a6ddcd3 -- core docs with git diff origin/main...dc047ce8b7 -- core docs, and their added and removed lines are identical. The author resolved the conflict in docs/dev/debt/libSceVideoOut.md by keeping both entries; they are lines 31 and 32 at the new head.
  • git diff origin/main...dc047ce8b7 -- 3rdparty is now empty. See Previous finding "New Blocking 1" below for why.
  • The author reported in a comment that the tests and the paired validation run pass on the merge head. The NVIDIA CI comment on 358a6ddcd3 reports one new failure, public_headers, which matches my Blocking 3.

What I ran

  • PR head: dc047ce8b7fa061348d510749ec1d320991bdff8
  • main: bb04a4f1ea0175e9e4f149f0359a764d62ff3296
  • Merge commit tested: 153a331d55397640138d29b855214fd65c614d71 (clean merge)

All commands ran in a clean worktree, and builds and tests ran in a sandbox without network. Submodules were checked out at main's previous revisions (SPIRV-Tools 262bdab481, SPIRV-Headers b824a462d4). Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08).

git fetch -q origin main pull/9676/head:refs/review/9676
git diff 89dce2838d...358a6ddcd3 -- core docs     # compared with the next line
git diff origin/main...refs/review/9676 -- core docs
git diff origin/main...refs/review/9676 -- 3rdparty
git checkout -q --detach origin/main
git merge -q --no-ff --no-edit refs/review/9676
git diff --check origin/main...refs/review/9676
python3 tools/check_conventions.py --base origin/main
cmake -S . -B build
cmake --build build -j10 --target gnm_driver_submit_tests guest_gnm_driver_tests video_out_flip_tests
cmake --build build -j10 --target libs
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \
  ctest --test-dir build -R '^(gnm_driver_packets|gnm_driver_submit_wait|guest_gnm_driver|video_out_flip_.*)$' -V --output-on-failure -j4
ctest --test-dir build -R '^public_headers$' --output-on-failure     # merged tree, then origin/main

Results

Check Result
Merge into main clean
git diff --check clean
check_conventions.py --base origin/main All conventions checks passed.
Submodule pointers vs main unchanged
Build of libs and the three test targets OK
gnm_driver_packets Passed (0.00 s)
guest_gnm_driver Passed (0.01 s)
gnm_driver_submit_wait (NVIDIA, validation layer) Passed (0.87 s)
video_out_flip_decode Passed
Other 16 video_out_flip_* tests Skipped: the sandbox's SDL offscreen driver has no Vulkan
Validation layer loaded / was not found but was requested by env var VK_INSTANCE_LAYERS / VUID- lines yes / 0 / 0
public_headers, merged tree Failed
public_headers, main Passed
ctest excerpt (merged tree)
 2/20 Test #1983: gnm_driver_packets ...................   Passed    0.00 sec
 3/20 Test #1982: guest_gnm_driver .....................   Passed    0.01 sec
 1/20 Test #2356: video_out_flip_decode ................   Passed    0.00 sec
11/20 Test #2360: video_out_flip_ps4 ...................***Skipped   0.03 sec
20/20 Test #1984: gnm_driver_submit_wait ...............   Passed    0.87 sec
100% tests passed out of 20

1/1 Test #332: public_headers ...................***Failed    0.06 sec
RuntimeError: Missing library umbrella headers: core/libs/prx/libSceGnmDriver/libSceGnmDriver.hpp

Negative control: I did not rerun it. The PR's test and production changes are the same as at 358a6ddcd3, where reverting the wait and the type-1 throw each made its test fail.

Previous findings

  • Blocking 3 (public_headers / local export declarations): Still open. #9432 (head f2928f44d4) still has no libSceGnmDriver.hpp. Submit.cpp:23-24 still declares the two exports locally. On the merge with main, public_headers fails at the missing-umbrella check, while on main it passes.
  • New Blocking 1 (SPIRV-Tools and SPIRV-Headers moved back): No longer applies to this PR. main itself now points at the same revisions (SPIRV-Tools 7f2d9ee926, SPIRV-Headers 01e0577914). That came from 0a07101649, merged with #10437, so the PR's diff against main no longer touches 3rdparty. Fixing that belongs on main, not here.
  • Non-blocking 1 (stale PS4 sceVideoOutRegisterBuffers entry): Still open. It is still line 29 of docs/dev/debt/libSceVideoOut.md at the new head, and it comes from #9432's commits.
  • Blocking 1, Blocking 2 and the other non-blocking points were already resolved at 358a6ddcd3 and are unchanged.

New findings

Blocking

None.

Non-blocking

None.

Not verified

  • 16 of the 17 video_out_flip_* tests, which main's Buffer.cpp and Flip.cpp changes touch next to #9432's: they skipped here for lack of a Vulkan-capable display. The author reports that all 17 pass on Windows.
  • A paired GPU run on main: main has neither libSceGnmDriver nor these tests.
  • Windows, other GPU vendors, sceGnmSubmitAndFlipCommandBuffers with the knob, and the CUSA04865 results.

To get this to a good state

  1. Add the libSceGnmDriver.hpp umbrella in #9432, replace the two declarations in tests/Submit.cpp with an include of it, and confirm that public_headers passes on the merge with main.
  2. Optionally, update the stale sceVideoOutRegisterBuffers entry in #9432.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5700067916 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676#pullrequestreview-5700067916). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T15:09:28Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes still requested The only new commit, `dc047ce8b7`, merges `main` `bb04a4f1ea`, and the PR's own diff against `main` is unchanged by it. The focused tests pass again on the merge with `main`, and the submodule finding no longer applies, but `public_headers` still fails. ## What changed since my last review - `dc047ce8b7` merges `main` `bb04a4f1ea`. I compared `git diff 89dce2838d...358a6ddcd3 -- core docs` with `git diff origin/main...dc047ce8b7 -- core docs`, and their added and removed lines are identical. The author resolved the conflict in `docs/dev/debt/libSceVideoOut.md` by keeping both entries; they are lines 31 and 32 at the new head. - `git diff origin/main...dc047ce8b7 -- 3rdparty` is now empty. See Previous finding "New Blocking 1" below for why. - The author reported in a comment that the tests and the paired validation run pass on the merge head. The NVIDIA CI comment on `358a6ddcd3` reports one new failure, `public_headers`, which matches my Blocking 3. ## What I ran - PR head: `dc047ce8b7fa061348d510749ec1d320991bdff8` - `main`: `bb04a4f1ea0175e9e4f149f0359a764d62ff3296` - Merge commit tested: `153a331d55397640138d29b855214fd65c614d71` (clean merge) All commands ran in a clean worktree, and builds and tests ran in a sandbox without network. Submodules were checked out at `main`'s previous revisions (SPIRV-Tools `262bdab481`, SPIRV-Headers `b824a462d4`). Machine: Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08). ``` git fetch -q origin main pull/9676/head:refs/review/9676 git diff 89dce2838d...358a6ddcd3 -- core docs # compared with the next line git diff origin/main...refs/review/9676 -- core docs git diff origin/main...refs/review/9676 -- 3rdparty git checkout -q --detach origin/main git merge -q --no-ff --no-edit refs/review/9676 git diff --check origin/main...refs/review/9676 python3 tools/check_conventions.py --base origin/main cmake -S . -B build cmake --build build -j10 --target gnm_driver_submit_tests guest_gnm_driver_tests video_out_flip_tests cmake --build build -j10 --target libs VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \ ctest --test-dir build -R '^(gnm_driver_packets|gnm_driver_submit_wait|guest_gnm_driver|video_out_flip_.*)$' -V --output-on-failure -j4 ctest --test-dir build -R '^public_headers$' --output-on-failure # merged tree, then origin/main ``` ## Results | Check | Result | |---|---| | Merge into `main` | clean | | `git diff --check` | clean | | `check_conventions.py --base origin/main` | `All conventions checks passed.` | | Submodule pointers vs `main` | unchanged | | Build of `libs` and the three test targets | OK | | `gnm_driver_packets` | Passed (0.00 s) | | `guest_gnm_driver` | Passed (0.01 s) | | `gnm_driver_submit_wait` (NVIDIA, validation layer) | Passed (0.87 s) | | `video_out_flip_decode` | Passed | | Other 16 `video_out_flip_*` tests | Skipped: the sandbox's SDL `offscreen` driver has no Vulkan | | Validation layer loaded / `was not found but was requested by env var VK_INSTANCE_LAYERS` / `VUID-` lines | yes / 0 / 0 | | `public_headers`, merged tree | **Failed** | | `public_headers`, `main` | Passed | <details><summary>ctest excerpt (merged tree)</summary> ``` 2/20 Test #1983: gnm_driver_packets ................... Passed 0.00 sec 3/20 Test #1982: guest_gnm_driver ..................... Passed 0.01 sec 1/20 Test #2356: video_out_flip_decode ................ Passed 0.00 sec 11/20 Test #2360: video_out_flip_ps4 ...................***Skipped 0.03 sec 20/20 Test #1984: gnm_driver_submit_wait ............... Passed 0.87 sec 100% tests passed out of 20 1/1 Test #332: public_headers ...................***Failed 0.06 sec RuntimeError: Missing library umbrella headers: core/libs/prx/libSceGnmDriver/libSceGnmDriver.hpp ``` </details> Negative control: I did not rerun it. The PR's test and production changes are the same as at `358a6ddcd3`, where reverting the wait and the type-1 throw each made its test fail. ## Previous findings - **Blocking 3 (`public_headers` / local export declarations): Still open.** #9432 (head `f2928f44d4`) still has no `libSceGnmDriver.hpp`. [`Submit.cpp:23-24`](https://github.com/boykopovar/AnyPS5/blob/dc047ce8b7fa061348d510749ec1d320991bdff8/core/libs/prx/libSceGnmDriver/tests/Submit.cpp#L23-L24) still declares the two exports locally. On the merge with `main`, `public_headers` fails at the [missing-umbrella check](https://github.com/boykopovar/AnyPS5/blob/bb04a4f1ea0175e9e4f149f0359a764d62ff3296/core/libs/tests/test_public_headers.py#L104-L108), while on `main` it passes. - **New Blocking 1 (SPIRV-Tools and SPIRV-Headers moved back): No longer applies to this PR.** `main` itself now points at the same revisions (SPIRV-Tools `7f2d9ee926`, SPIRV-Headers `01e0577914`). That came from [`0a07101649`](https://github.com/boykopovar/AnyPS5/commit/0a071016498f3a6b09a6bfb4c11fd448c046c5bf), merged with #10437, so the PR's diff against `main` no longer touches `3rdparty`. Fixing that belongs on `main`, not here. - **Non-blocking 1 (stale PS4 `sceVideoOutRegisterBuffers` entry): Still open.** It is still line 29 of `docs/dev/debt/libSceVideoOut.md` at the new head, and it comes from #9432's commits. - Blocking 1, Blocking 2 and the other non-blocking points were already resolved at `358a6ddcd3` and are unchanged. ## New findings ### Blocking None. ### Non-blocking None. ## Not verified - 16 of the 17 `video_out_flip_*` tests, which `main`'s `Buffer.cpp` and `Flip.cpp` changes touch next to #9432's: they skipped here for lack of a Vulkan-capable display. The author reports that all 17 pass on Windows. - A paired GPU run on `main`: `main` has neither `libSceGnmDriver` nor these tests. - Windows, other GPU vendors, `sceGnmSubmitAndFlipCommandBuffers` with the knob, and the CUSA04865 results. ## To get this to a good state 1. Add the `libSceGnmDriver.hpp` umbrella in #9432, replace the two declarations in `tests/Submit.cpp` with an include of it, and confirm that `public_headers` passes on the merge with `main`. 2. Optionally, update the stale `sceVideoOutRegisterBuffers` entry in #9432.
XairRrR commented 2026-11-02 23:54:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-02T23:54:41Z.

Review: APPROVED


Re-checked — approved

The new commits add the libSceGnmDriver.hpp umbrella header (108fd28b0e) and update the stale PS4 sceVideoOutRegisterBuffers debt entry (a8d92e97a3), and main was merged three more times. With these changes public_headers passes, and both open findings from my last review are resolved.

What changed since my last review

  • 108fd28b0e: adds core/libs/prx/libSceGnmDriver/libSceGnmDriver.hpp, which includes include/Api.hpp (45 APS5_VABI declarations, matching the 45 definitions in Export.cpp) and include/CommandStream.hpp. tests/Submit.cpp and core/libs/tests/GuestGnmDriver.cpp now include the umbrella instead of declaring exports themselves. sceVideoOutCursorSetHotSpot is now declared in VideoOut.hpp:14. Its definition still calls NotImplemented_nid_no_patch.
  • a8d92e97a3: the PS4 sceVideoOutRegisterBuffers entry (libSceVideoOut.md line 31 at head) no longer says that tiled PS4 buffers throw. It now refers to the "PS4 tiled display buffers" entry.
  • 103ea478ad, eda2cd6a7e, 3a8380c116: merges of main. In the range-diff, commits 1–12 are unchanged.
  • The author's comments report passing runs on each merge head. I accept those as author-reported. BunnyFl's Windows/AMD comment reports the same 32 tests passing, which matches what I see here.

What I ran

PR head 3a8380c116f7d427377c76590947b75f51b3a82a, main 5cb015caaaaf83f8ee431414ee6a457b5b307d49, merged tree 39b8476ffbbde39c8fcbc9df3dd31dc2b81a5421. Debian 13 VM, GCC 14.2.0, lavapipe (Mesa 26.1.6, LLVM 19), no GPU.

git diff --check 5cb015caaa...3a8380c116
python3 tools/check_conventions.py --base 5cb015caaa
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R '^(public_headers|guest_gnm_driver|gnm_driver_packets|gnm_driver_submit_wait|video_out_flip_.*|agc_driver_image_sample_lod_clamp_shader_lane|unwrap_self.*)$'
# control for the AGC failure: the PR's libSceVideoOut production files restored from main
git show 5cb015caaa:<path> > <path>   # Unimplemented.cpp, include/{Buffer,VideoOut,VideoOutDriver}.hpp, src/Buffer.cpp
ninja -C build agc_driver_image_sample_lod_clamp_tests
ctest --test-dir build -R '^agc_driver_image_sample_lod_clamp_shader_lane$'
git show 39b8476ffb:<path> > <path>   # restored, rebuilt, git status --porcelain empty
Check Result
git diff --check clean
check_conventions.py All conventions checks passed.
Build, libs OK (script)
public_headers Passed (55.7 s on this loaded VM; it failed at my last review)
gnm_driver_packets, guest_gnm_driver, gnm_driver_submit_wait (lavapipe) Passed
video_out_flip_decode Passed; the other 26 video_out_flip_* were skipped (no Vulkan-capable display in the sandbox)
Validation layer (script, 42 tests) layer loaded in 42/42, 0 new VUID-
agc_driver_image_sample_lod_clamp_shader_lane Fails, and fails the same way with the PR's VideoOut production files reverted. The PR does not touch libSceAgcDriver, core/shader or tools, so this failure comes from main (the baseline 096c45570f is 227 commits older)
unwrap_self_..._destination_directory_group Fails with os.chown EINVAL in the sandbox. This is a Python tool test, and the PR changes nothing under tools/, so it is environmental and not caused by the PR
guest_net_ctl skip, known failures Same as on main

Previous findings

  • Blocking 3 (public_headers, local export declarations): Resolved. The umbrella header exists, Submit.cpp includes it, and public_headers passes on the merged tree.
  • Non-blocking 1 (stale PS4 sceVideoOutRegisterBuffers entry): Resolved. See line 31 linked above.
  • New Blocking 1 (submodules): still no longer applies. Blocking 1, Blocking 2 and the other points were resolved earlier, and those commits are unchanged.

New findings

Blocking

None.

Non-blocking

None. The bot already noted that #13994 overlaps on sceVideoOutCursorSetHotSpot. Whichever of #13994 and #9432/this PR lands second needs to drop its duplicate declaration.

Not verified

  • Negative control: I did not rerun it. The new commits change no test assertions or production behaviour, only where declarations live. At my previous review, reverting the wait and the type-1 throw each made its test fail.
  • 26 of the 27 video_out_flip_* tests (skipped here, no display with Vulkan). The author and BunnyFl report that they pass on Windows.
  • sceGnmSubmitAndFlipCommandBuffers with APS5_GNM_SUBMIT_WAIT_IDLE, and the CUSA04865 run on current main.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5745114131 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9676#pullrequestreview-5745114131). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-02T23:54:41Z. **Review:** APPROVED --- # Re-checked — approved The new commits add the `libSceGnmDriver.hpp` umbrella header (108fd28b0e) and update the stale PS4 `sceVideoOutRegisterBuffers` debt entry (a8d92e97a3), and `main` was merged three more times. With these changes `public_headers` passes, and both open findings from my last review are resolved. ## What changed since my last review - `108fd28b0e`: adds `core/libs/prx/libSceGnmDriver/libSceGnmDriver.hpp`, which includes `include/Api.hpp` (45 `APS5_VABI` declarations, matching the 45 definitions in `Export.cpp`) and `include/CommandStream.hpp`. `tests/Submit.cpp` and `core/libs/tests/GuestGnmDriver.cpp` now include the umbrella instead of declaring exports themselves. `sceVideoOutCursorSetHotSpot` is now declared in `VideoOut.hpp:14`. Its definition still calls `NotImplemented_nid_no_patch`. - `a8d92e97a3`: the PS4 `sceVideoOutRegisterBuffers` entry ([libSceVideoOut.md line 31 at head](https://github.com/boykopovar/AnyPS5/blob/3a8380c116f7d427377c76590947b75f51b3a82a/docs/dev/debt/libSceVideoOut.md#L31-L31)) no longer says that tiled PS4 buffers throw. It now refers to the "PS4 tiled display buffers" entry. - `103ea478ad`, `eda2cd6a7e`, `3a8380c116`: merges of `main`. In the range-diff, commits 1–12 are unchanged. - The author's comments report passing runs on each merge head. I accept those as author-reported. BunnyFl's Windows/AMD comment reports the same 32 tests passing, which matches what I see here. ## What I ran PR head `3a8380c116f7d427377c76590947b75f51b3a82a`, `main` `5cb015caaaaf83f8ee431414ee6a457b5b307d49`, merged tree `39b8476ffbbde39c8fcbc9df3dd31dc2b81a5421`. Debian 13 VM, GCC 14.2.0, lavapipe (Mesa 26.1.6, LLVM 19), no GPU. ``` git diff --check 5cb015caaa...3a8380c116 python3 tools/check_conventions.py --base 5cb015caaa ctest --test-dir build -j8 --test-load 32 --output-on-failure -R '^(public_headers|guest_gnm_driver|gnm_driver_packets|gnm_driver_submit_wait|video_out_flip_.*|agc_driver_image_sample_lod_clamp_shader_lane|unwrap_self.*)$' # control for the AGC failure: the PR's libSceVideoOut production files restored from main git show 5cb015caaa:<path> > <path> # Unimplemented.cpp, include/{Buffer,VideoOut,VideoOutDriver}.hpp, src/Buffer.cpp ninja -C build agc_driver_image_sample_lod_clamp_tests ctest --test-dir build -R '^agc_driver_image_sample_lod_clamp_shader_lane$' git show 39b8476ffb:<path> > <path> # restored, rebuilt, git status --porcelain empty ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | `All conventions checks passed.` | | Build, `libs` | OK (script) | | `public_headers` | **Passed** (55.7 s on this loaded VM; it failed at my last review) | | `gnm_driver_packets`, `guest_gnm_driver`, `gnm_driver_submit_wait` (lavapipe) | Passed | | `video_out_flip_decode` | Passed; the other 26 `video_out_flip_*` were skipped (no Vulkan-capable display in the sandbox) | | Validation layer (script, 42 tests) | layer loaded in 42/42, 0 new `VUID-` | | `agc_driver_image_sample_lod_clamp_shader_lane` | Fails, and fails the same way with the PR's VideoOut production files reverted. The PR does not touch `libSceAgcDriver`, `core/shader` or `tools`, so this failure comes from `main` (the baseline `096c45570f` is 227 commits older) | | `unwrap_self_..._destination_directory_group` | Fails with `os.chown` EINVAL in the sandbox. This is a Python tool test, and the PR changes nothing under `tools/`, so it is environmental and not caused by the PR | | `guest_net_ctl` skip, known failures | Same as on `main` | ## Previous findings - **Blocking 3 (`public_headers`, local export declarations): Resolved.** The umbrella header exists, `Submit.cpp` includes it, and `public_headers` passes on the merged tree. - **Non-blocking 1 (stale PS4 `sceVideoOutRegisterBuffers` entry): Resolved.** See line 31 linked above. - New Blocking 1 (submodules): still no longer applies. Blocking 1, Blocking 2 and the other points were resolved earlier, and those commits are unchanged. ## New findings ### Blocking None. ### Non-blocking None. The bot already noted that #13994 overlaps on `sceVideoOutCursorSetHotSpot`. Whichever of #13994 and #9432/this PR lands second needs to drop its duplicate declaration. ## Not verified - Negative control: I did not rerun it. The new commits change no test assertions or production behaviour, only where declarations live. At my previous review, reverting the wait and the type-1 throw each made its test fail. - 26 of the 27 `video_out_flip_*` tests (skipped here, no display with Vulkan). The author and BunnyFl report that they pass on Windows. - `sceGnmSubmitAndFlipCommandBuffers` with `APS5_GNM_SUBMIT_WAIT_IDLE`, and the CUSA04865 run on current `main`. <!-- anyps5-bots job=2880 head=3a8380c116f7d427377c76590947b75f51b3a82a -->
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!9676
No description provided.