fix(agc): drain queued writes before reading shader callees and call tables #11442

Open
Sam-mon7 wants to merge 4 commits from upstream-pr/11442 into main
Sam-mon7 commented 2026-10-26 13:32:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Sam-mon7 on 2026-10-26T13:32:49Z.


What

ReadRawShader drains queue 0 when a queued draw-pipeline item writes the shader code it is about to read. The user-data callees, call-table descriptors and tables that LinkUserDataCallees links were read without that check.

ReadUserDataCallee and ReadGuestBytes (which reads call-table descriptors and tables) now apply the same overlap check and drain first. All three paths use one helper, DrainShaderWrites, which replaces the lambda that was in ReadRawShader.

Reachability on current main:

  • Compute: every production caller of InvocationFor already drains queue 0 first, or runs on a thread where DrawPipeline::Active() is false (traced in the review thread). The new drains do not fire there.
  • GCN vertex stages: LinkUserDataCallees also links them (as @Amoenus pointed out). On a draw-cache miss, materializeDrawStage reaches InvocationFor on the queue-0 worker while earlier pipelined draws, DMA or fills can still be outstanding, and nothing before it drains the callee or table bytes. So the new drains can fire on that path. GCN mode is enabled only by AgcDriverUseGcnShaders_nid_postfix, and nothing in this tree calls it.
  • So this is defensive ordering. No failure reachable on main today has been demonstrated.

agc_driver_queued_shader_calls exercises the linking API directly with an overlapping queued producer that rewrites a callee, a call-table descriptor or a table entry until the drain, and checks the linked invocation against one built after the drain. Its red/green result verifies that ordering contract rather than reproducing a failure through packet execution or Driver::dispatch.

Noticed while working on Demon's Souls (PPSA01341) on a local branch; the change is generic.

Tested

Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0, Release, NVIDIA GeForce RTX 4070 (driver 610.88), Khronos validation layer 1.4.363. Merged current main 0d5e03be8c into the branch as merge commit 84c3b32b3a. It had two conflicts:

  • libSceAgcDriver/CMakeLists.txt (the per-test fragment split): resolved with tools/agc_test_split.py resolve. The test keeps ANYPS5_NO_SHADER_CACHE=1;APS5_PIPELINED_DRAWS=8 and TIMEOUT 30, now in tests/cmake/agc_driver_queued_shader_calls_tests.cmake.

  • ReadUserDataCallee: #10140's early return on an unreadable page is kept, with the drain ahead of it.

  • Focused tests, ctest -R 'agc_driver_(queued|prepared_shader|user_data|callee|call_table|draw_write_ranges|pipelined|gated_dispatch|copied_writer|draw_cache|finisher_label|same_queue_label|unimported_label|write_data_written)' -V -j2 with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:

    • main 0d5e03be8c: 69/69 pass.
    • Merged head 84c3b32b3a: 70/70 pass. That is the same tests plus agc_driver_queued_shader_calls.
    • Neither log contains VUID- or a missing-layer message, and no test was skipped. VK_LOADER_DEBUG=layer shows the validation layer inserted at instance and device level.
  • Red/green on the new base: with main's ShaderRegistry.cpp, the new test fails in each case when run one case at a time (shader invocation ignored queued callee write, ... descriptor write, ... table write). With this change, all three cases pass (Shader calls observed queued code, descriptor and table writes).

  • python tools/check_conventions.py --base upstream/main, python tools/check_test_registration.py build and git diff --check pass on the merged head.

Overlap and landing order

The overlap report lists #9899, #10103 and #10140 for ShaderRegistry.cpp. I checked each against the current heads (git merge-tree and reading the diffs):

  • #10103 (open, approved): agreed order #10103 first, then this PR (#10103 comment; its description records it). The two PRs conflict only in ReadRawShader. When #10103 lands I'll merge main, keep its (address, retained) signature and retained-snapshot selection, and replace its local drain lambda with DrainShaderWrites ahead of the cached/retained comparison and the uncached page reads. This is merge order only; neither depends on the other functionally.
  • #9899 (open): @savvaniss agreed either order and no Depends on, since neither PR relies on the other (#9899 comment). There is a small textual conflict in ReadRawShader (its CheckRange move next to the removed lambda). It also has one semantic interaction: #9899's link reuse re-reads callee words in LinkUserDataCallees (the unchanged compare) with a plain GuestMemory::Read. To keep this PR's guarantee, that read needs DrainShaderWrites(address, words.size() * 4) first. Whichever PR lands second adds it in its merge.
  • #10140: merged on 2026-10-30 (673fa865f4), before this PR, so its recorded order (this PR first) no longer applies. Its ReadUserDataCallee change conflicted with this PR and is resolved in 84c3b32b3a as described above.

#9899 and #10103 merge cleanly with each other and with current main.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #10103 (merge order only, agreed with @Amoenus; #9899 either order, agreed with @savvaniss)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4070, driver 610.88, Windows 11 Pro 10.0.26200
  • AI-assisted: yes (Claude Code and Codex)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved the consistency of shader and guest-memory reads while graphics work is in progress, helping prevent results from reflecting outdated queued data.
  • Tests
    • Added coverage to check that shader invocations see consistent code and related data before and after queued writes are processed.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5018299452 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11442). Originally posted by [Sam-mon7](https://github.com/Sam-mon7) on 2026-10-26T13:32:49Z. --- ### What `ReadRawShader` drains queue 0 when a queued draw-pipeline item writes the shader code it is about to read. The user-data callees, call-table descriptors and tables that `LinkUserDataCallees` links were read without that check. `ReadUserDataCallee` and `ReadGuestBytes` (which reads call-table descriptors and tables) now apply the same overlap check and drain first. All three paths use one helper, `DrainShaderWrites`, which replaces the lambda that was in `ReadRawShader`. Reachability on current `main`: - Compute: every production caller of `InvocationFor` already drains queue 0 first, or runs on a thread where `DrawPipeline::Active()` is false (traced in the review thread). The new drains do not fire there. - GCN vertex stages: `LinkUserDataCallees` also links them (as @Amoenus pointed out). On a draw-cache miss, `materializeDrawStage` reaches `InvocationFor` on the queue-0 worker while earlier pipelined draws, DMA or fills can still be outstanding, and nothing before it drains the callee or table bytes. So the new drains can fire on that path. GCN mode is enabled only by `AgcDriverUseGcnShaders_nid_postfix`, and nothing in this tree calls it. - So this is defensive ordering. No failure reachable on `main` today has been demonstrated. `agc_driver_queued_shader_calls` exercises the linking API directly with an overlapping queued producer that rewrites a callee, a call-table descriptor or a table entry until the drain, and checks the linked invocation against one built after the drain. Its red/green result verifies that ordering contract rather than reproducing a failure through packet execution or `Driver::dispatch`. Noticed while working on Demon's Souls (PPSA01341) on a local branch; the change is generic. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0, Release, NVIDIA GeForce RTX 4070 (driver 610.88), Khronos validation layer 1.4.363. Merged current `main` `0d5e03be8c` into the branch as merge commit `84c3b32b3a`. It had two conflicts: - `libSceAgcDriver/CMakeLists.txt` (the per-test fragment split): resolved with `tools/agc_test_split.py resolve`. The test keeps `ANYPS5_NO_SHADER_CACHE=1;APS5_PIPELINED_DRAWS=8` and `TIMEOUT 30`, now in `tests/cmake/agc_driver_queued_shader_calls_tests.cmake`. - `ReadUserDataCallee`: #10140's early return on an unreadable page is kept, with the drain ahead of it. - Focused tests, `ctest -R 'agc_driver_(queued|prepared_shader|user_data|callee|call_table|draw_write_ranges|pipelined|gated_dispatch|copied_writer|draw_cache|finisher_label|same_queue_label|unimported_label|write_data_written)' -V -j2` with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`: - `main` `0d5e03be8c`: 69/69 pass. - Merged head `84c3b32b3a`: 70/70 pass. That is the same tests plus `agc_driver_queued_shader_calls`. - Neither log contains `VUID-` or a missing-layer message, and no test was skipped. `VK_LOADER_DEBUG=layer` shows the validation layer inserted at instance and device level. - Red/green on the new base: with `main`'s `ShaderRegistry.cpp`, the new test fails in each case when run one case at a time (`shader invocation ignored queued callee write`, `... descriptor write`, `... table write`). With this change, all three cases pass (`Shader calls observed queued code, descriptor and table writes`). - `python tools/check_conventions.py --base upstream/main`, `python tools/check_test_registration.py build` and `git diff --check` pass on the merged head. ### Overlap and landing order The overlap report lists #9899, #10103 and #10140 for `ShaderRegistry.cpp`. I checked each against the current heads (`git merge-tree` and reading the diffs): - **#10103** (open, approved): agreed order **#10103 first, then this PR** ([#10103 comment](https://github.com/boykopovar/AnyPS5/pull/10103#issuecomment-6501982516); its description records it). The two PRs conflict only in `ReadRawShader`. When #10103 lands I'll merge `main`, keep its `(address, retained)` signature and retained-snapshot selection, and replace its local `drain` lambda with `DrainShaderWrites` ahead of the cached/retained comparison and the uncached page reads. This is merge order only; neither depends on the other functionally. - **#9899** (open): @savvaniss agreed either order and no `Depends on`, since neither PR relies on the other ([#9899 comment](https://github.com/boykopovar/AnyPS5/pull/9899#issuecomment-6520240359)). There is a small textual conflict in `ReadRawShader` (its `CheckRange` move next to the removed lambda). It also has one semantic interaction: #9899's link reuse re-reads callee words in `LinkUserDataCallees` (the `unchanged` compare) with a plain `GuestMemory::Read`. To keep this PR's guarantee, that read needs `DrainShaderWrites(address, words.size() * 4)` first. Whichever PR lands second adds it in its merge. - **#10140**: merged on 2026-10-30 (`673fa865f4`), before this PR, so its recorded order (this PR first) no longer applies. Its `ReadUserDataCallee` change conflicted with this PR and is resolved in `84c3b32b3a` as described above. #9899 and #10103 merge cleanly with each other and with current `main`. ### 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 - [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: #10103 (merge order only, agreed with @Amoenus; #9899 either order, agreed with @savvaniss) <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: NVIDIA GeForce RTX 4070, driver 610.88, Windows 11 Pro 10.0.26200 <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes (Claude Code and Codex) <!-- yes / no --> 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit - **Bug Fixes** - Improved the consistency of shader and guest-memory reads while graphics work is in progress, helping prevent results from reflecting outdated queued data. - **Tests** - Added coverage to check that shader invocations see consistent code and related data before and after queued writes are processed. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
MarcZX10 commented 2026-10-26 13:44:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T13:44:05Z.

Review: APPROVED


Reviewed head e7da862d03403e694ffa6a1f8f9d1e19d1a3fb92 against current main bf77a9e9cba4b02c358779b35295176dd9cae164. The new shared drain preserves the prior raw-shader read behavior and is applied before reading user-data callees, call-table descriptors and table bytes; each range is bounded to the bytes actually read. The regression test holds an overlapping queued producer and checks all three read paths against a post-drain invocation. The test target is picked up by the existing execution-test glob and registered by the shared CMake loop; its timeout/environment properties are set explicitly. The changed paths merge cleanly with current main, and tools/check_conventions.py --base upstream/main --head upstream/pr-11442 plus git diff --check upstream/main...upstream/pr-11442 pass.

The PR reports 66 focused Windows/Vulkan-validation tests passing and no VUIDs; I did not independently run that GPU suite. Hosted policy checks pass, while product/relinker jobs are skipped by path policy. I found no blocking issue in the change.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5652909071 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11442#pullrequestreview-5652909071). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T13:44:05Z. **Review:** APPROVED --- Reviewed head `e7da862d03403e694ffa6a1f8f9d1e19d1a3fb92` against current `main` `bf77a9e9cba4b02c358779b35295176dd9cae164`. The new shared drain preserves the prior raw-shader read behavior and is applied before reading user-data callees, call-table descriptors and table bytes; each range is bounded to the bytes actually read. The regression test holds an overlapping queued producer and checks all three read paths against a post-drain invocation. The test target is picked up by the existing execution-test glob and registered by the shared CMake loop; its timeout/environment properties are set explicitly. The changed paths merge cleanly with current main, and `tools/check_conventions.py --base upstream/main --head upstream/pr-11442` plus `git diff --check upstream/main...upstream/pr-11442` pass. The PR reports 66 focused Windows/Vulkan-validation tests passing and no VUIDs; I did not independently run that GPU suite. Hosted policy checks pass, while product/relinker jobs are skipped by path policy. I found no blocking issue in the change.
MarcZX10 commented 2026-10-26 14:44:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T14:44:41Z.

Review: CHANGES_REQUESTED


Rechecked exact head e7da862d03403e694ffa6a1f8f9d1e19d1a3fb92 against live main 2dbe9b99f577f5fad8ee675932a0603439e5eb2a. The earlier 66/66 focused Vulkan run was reported against 7b415520b6; since then main changed the AGC CMake registration and tests/ShaderMemory.cpp. The merged tree is clean, and I found no change to this PR’s ShaderRegistry.cpp or QueuedShaderCalls.cpp logic in that interval, but the required main-vs-change validation does not cover the current tree yet.

Please sync the branch to current main, preserve the test registrations, and rerun the same focused suite with the validation layer on current main and the resulting head. Update the tested base/head in the PR description. Local current-main conventions and whitespace checks pass; the merge-tree preview is clean. Hosted product/build jobs are skipped by path policy, and I did not independently run the GPU tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5653858242 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11442#pullrequestreview-5653858242). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T14:44:41Z. **Review:** CHANGES_REQUESTED --- Rechecked exact head `e7da862d03403e694ffa6a1f8f9d1e19d1a3fb92` against live `main` `2dbe9b99f577f5fad8ee675932a0603439e5eb2a`. The earlier 66/66 focused Vulkan run was reported against `7b415520b6`; since then `main` changed the AGC CMake registration and `tests/ShaderMemory.cpp`. The merged tree is clean, and I found no change to this PR’s `ShaderRegistry.cpp` or `QueuedShaderCalls.cpp` logic in that interval, but the required main-vs-change validation does not cover the current tree yet. Please sync the branch to current `main`, preserve the test registrations, and rerun the same focused suite with the validation layer on current `main` and the resulting head. Update the tested base/head in the PR description. Local current-main conventions and whitespace checks pass; the merge-tree preview is clean. Hosted product/build jobs are skipped by path policy, and I did not independently run the GPU tests.
adriadam10 commented 2026-10-27 10:17:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-27T10:17:48Z.

Review: CHANGES_REQUESTED


The change itself looks right: DrainShaderWrites is applied before each callee page, call-table descriptor and table read, bounded to the bytes read, and agc_driver_queued_shader_calls fails without it (the queued producer only releases after a drain, so the old code times out and throws).

One open point, the one @MarcZX10 requested on this head: the tested base (7b415520b6) is behind main. Please merge current main, rerun the focused suite with the validation layer on main and on the result, and update the base/head in Tested. @ycbuzi's run on main 48c160c58b (RTX 4070 SUPER, GTX 1650 SUPER, AMD iGPU, control failing on main) is good supporting evidence, but the numbers in the description should match the head you push.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5665457205 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11442#pullrequestreview-5665457205). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-27T10:17:48Z. **Review:** CHANGES_REQUESTED --- The change itself looks right: `DrainShaderWrites` is applied before each callee page, call-table descriptor and table read, bounded to the bytes read, and `agc_driver_queued_shader_calls` fails without it (the queued producer only releases after a drain, so the old code times out and throws). One open point, the one @MarcZX10 requested on this head: the tested base (`7b415520b6`) is behind `main`. Please merge current `main`, rerun the focused suite with the validation layer on `main` and on the result, and update the base/head in **Tested**. @ycbuzi's run on `main` `48c160c58b` (RTX 4070 SUPER, GTX 1650 SUPER, AMD iGPU, control failing on `main`) is good supporting evidence, but the numbers in the description should match the head you push.
MarcZX10 commented 2026-10-29 08:15:25 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Re-reviewed current head d68f894df506cb7f80d48be4424dc0092fc5d599 and the latest reachability clarification.

The clarification resolves the earlier question: this is a defensive ordering change, and the author found no production route on main that reaches compute linking with overlapping queue-0 work pending. That does not by itself make the change incorrect; the bounded InvocationFor test documents the ordering contract. I would keep the change if it is useful as that defensive guarantee.

Two integration items remain before merge:

  1. The PR is based on e2a51188396df488b222521ac517cae715b3652c, while live main is 4c7d275bef89d309313d16bc2bc05d37a1b50be2. The current merge preview is clean, but main has since changed ShaderRegistry.cpp and the AGC CMake test registrations. Please sync to current main, preserve the queued shader-call test registration/environment, and rerun the focused validation-layer suite on the exact current-main base and resulting head. The reported 65/65 and 66/66 comparison is useful evidence for the prior base, not the current integration.
  2. The current overlap report lists this PR with #9899, #10103 and #10140 in ShaderRegistry.cpp. Please manually confirm the interactions and record the agreed landing order/dependencies on both sides where the overlap rule requires it. #10103’s author documents a clean source-only merge with #9899, but I found no recorded agreement covering this PR and all three overlaps.

Checks I ran: current-main git merge-tree --write-tree is clean (36b1914bb6568cc2a90eb367865a706b7b225cee), git diff --check passes, and current-main conventions pass. I did not run the GPU tests locally; this environment has no Vulkan device. The author-reported hardware results remain attributed to the author.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694632232 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11442#pullrequestreview-5694632232). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T08:15:25Z. **Review:** CHANGES_REQUESTED --- Re-reviewed current head `d68f894df506cb7f80d48be4424dc0092fc5d599` and the latest reachability clarification. The clarification resolves the earlier question: this is a defensive ordering change, and the author found no production route on `main` that reaches compute linking with overlapping queue-0 work pending. That does not by itself make the change incorrect; the bounded `InvocationFor` test documents the ordering contract. I would keep the change if it is useful as that defensive guarantee. Two integration items remain before merge: 1. The PR is based on `e2a51188396df488b222521ac517cae715b3652c`, while live `main` is `4c7d275bef89d309313d16bc2bc05d37a1b50be2`. The current merge preview is clean, but main has since changed `ShaderRegistry.cpp` and the AGC CMake test registrations. Please sync to current main, preserve the queued shader-call test registration/environment, and rerun the focused validation-layer suite on the exact current-main base and resulting head. The reported 65/65 and 66/66 comparison is useful evidence for the prior base, not the current integration. 2. The current overlap report lists this PR with #9899, #10103 and #10140 in `ShaderRegistry.cpp`. Please manually confirm the interactions and record the agreed landing order/dependencies on both sides where the overlap rule requires it. #10103’s author documents a clean source-only merge with #9899, but I found no recorded agreement covering this PR and all three overlaps. Checks I ran: current-main `git merge-tree --write-tree` is clean (`36b1914bb6568cc2a90eb367865a706b7b225cee`), `git diff --check` passes, and current-main conventions pass. I did not run the GPU tests locally; this environment has no Vulkan device. The author-reported hardware results remain attributed to the author.
MarcZX10 commented 2026-11-14 07:36:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T07:36:52Z.

Review: COMMENTED


Reviewed — no blocking findings

The change appears sound from the inspected code, but I could not run the reported checks, so a formal approval is not justified.

What I ran

Reviewed head 84c3b32b3a0c738b076c39fd7f1311c25356f30f using repo_read.py. No tests or build commands were run; the test results in the description are author-reported.

Results

Check Result Note
Changed code review passed All three changed files read
Reported tests and checks not run Results supplied by the author

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

I read every changed file listed in the manifest: ShaderRegistry.cpp, agc_driver_queued_shader_calls_tests.cmake, and QueuedShaderCalls.cpp. No changed files were excluded. Builds, automated tests, and the author-reported red/green runs were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5902744921 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11442#pullrequestreview-5902744921). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T07:36:52Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The change appears sound from the inspected code, but I could not run the reported checks, so a formal approval is not justified. ## What I ran Reviewed head `84c3b32b3a0c738b076c39fd7f1311c25356f30f` using `repo_read.py`. No tests or build commands were run; the test results in the description are author-reported. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | All three changed files read | | Reported tests and checks | not run | Results supplied by the author | ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [ShaderRegistry.cpp at reviewed head](https://github.com/boykopovar/AnyPS5/blob/84c3b32b3a0c738b076c39fd7f1311c25356f30f/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp) - [QueuedShaderCalls.cpp at reviewed head](https://github.com/boykopovar/AnyPS5/blob/84c3b32b3a0c738b076c39fd7f1311c25356f30f/core/libs/prx/libSceAgcDriver/tests/execution/QueuedShaderCalls.cpp) - [Queued shader calls test configuration at reviewed head](https://github.com/boykopovar/AnyPS5/blob/84c3b32b3a0c738b076c39fd7f1311c25356f/core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_queued_shader_calls_tests.cmake) ## Not verified I read every changed file listed in the manifest: `ShaderRegistry.cpp`, `agc_driver_queued_shader_calls_tests.cmake`, and `QueuedShaderCalls.cpp`. No changed files were excluded. Builds, automated tests, and the author-reported red/green runs were not independently verified. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-12-01 14:14:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T14:14:04Z.

Review: APPROVED


Reviewed — looks good

The queued-write drains run before callee and call-table data are read, and the new test covers overlapping writes to all three targets.

What I ran

Reviewed head 985c295fd48048764805e01cca0fe3397e9227f3. Read the prepared description, commits, diff, manifest, and all three reviewed files. Used repo_read.py to search for InvocationFor; did not run tests or builds. No merged-preview check was run.

sed -n '1,180p' description.md
sed -n '1,180p' commits.md
cat manifest.json files.json diff.patch
python3 repo_read.py search InvocationFor

Results

Check Result Note
Changed files reviewed passed All three reviewed files read
Tests not run Description reports 70/70 on merged head
Build and merged preview not run Not run for this review

Negative control

Not run. The description reports red/green results for the new test; I did not independently verify them.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

The reported tests and red/green results were not independently run. Production caller reachability, hardware behavior, and excluded files were not verified; files.json lists no excluded files.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6133012639 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11442#pullrequestreview-6133012639). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-01T14:14:04Z. **Review:** APPROVED --- # Reviewed — looks good The queued-write drains run before callee and call-table data are read, and the new test covers overlapping writes to all three targets. ## What I ran Reviewed head `985c295fd48048764805e01cca0fe3397e9227f3`. Read the prepared description, commits, diff, manifest, and all three reviewed files. Used `repo_read.py` to search for `InvocationFor`; did not run tests or builds. No merged-preview check was run. ```text sed -n '1,180p' description.md sed -n '1,180p' commits.md cat manifest.json files.json diff.patch python3 repo_read.py search InvocationFor ``` ## Results | Check | Result | Note | |---|---|---| | Changed files reviewed | passed | All three reviewed files read | | Tests | not run | Description reports 70/70 on merged head | | Build and merged preview | not run | Not run for this review | ## Negative control Not run. The description reports red/green results for the new test; I did not independently verify them. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [ShaderRegistry.cpp at reviewed head](https://github.com/boykopovar/AnyPS5/blob/985c295fd48048764805e01cca0fe3397e9227f3/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp#L86) — shared drain helper and calls before callee and guest-byte reads. - [QueuedShaderCalls.cpp at reviewed head](https://github.com/boykopovar/AnyPS5/blob/985c295fd48048764805e01cca0fe3397e9227f3/core/libs/prx/libSceAgcDriver/tests/execution/QueuedShaderCalls.cpp#L48) — exercises queued writes to a callee, descriptor, and call table. ## Not verified The reported tests and red/green results were not independently run. Production caller reachability, hardware behavior, and excluded files were not verified; `files.json` lists no excluded files. ## To get this to a good state Nothing is required.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.

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

git switch 'main'
git merge --no-ff 'upstream-pr/11442'
git switch 'upstream-pr/11442'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/11442'
git switch 'upstream-pr/11442'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/11442'
git switch 'main'
git merge --squash 'upstream-pr/11442'
git switch 'main'
git merge --ff-only 'upstream-pr/11442'
git switch 'main'
git merge 'upstream-pr/11442'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!11442
No description provided.