perf(agc): keep draw pipeline for satisfied waits #7153

Merged
MarcZX10 merged 5 commits from upstream-pr/7153 into main 2026-10-19 20:22:23 +00:00
MarcZX10 commented 2026-10-17 14:12:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T14:12:56Z.


What

When the draw pipeline is busy, retain it across WAIT_REG_MEM only if the awaited guest range does not overlap pending pipeline writes and the wait predicate is already satisfied. The wait range is validated before the unchecked read, matching the normal wait path. Overlapping or unsatisfied waits still drain the pipeline.

Adds an execution regression that blocks unrelated queued work, submits an already-satisfied WAIT_REG_MEM, and verifies that a following label can queue behind the blocker instead of forcing a drain.

The predicate follows the fix proposal in #7138 by @utajum; this PR adds a current-main implementation and execution regression. This addresses the wait-drain finding in #7138 only. The shader, GPU, and other CPU findings in that report are outside this change.

Tested

  • git diff --check — pass.
  • python3 tools/check_conventions.py --base upstream/main — pass.
  • Attempted CMake configure with Ninja and BUILD_TESTING=ON; configuration stopped because the SDL2 submodule has no CMakeLists.txt and SDL XRandR support is unavailable. The changed C++ target and runtime regression were not built or run locally.
  • The reporter's #7138 same-machine c2/c3 captures exercise this same wait predicate on e09dbc2b4 + #6842: packet 0x3c drains fell from 12,304 to 0, and their untraced scene result changed from 26.4 ms to 24.5 ms. Those measurements are from the issue report, not a run of this PR head. Traces and full summary lines are attached at https://github.com/utajum/AnyPS5/releases/tag/perf-ppsa28997.

Checklist

  • Based on current main (47a266cf9); no other open PR implements this wait predicate
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none (partial response to #7138)
  • Unblocks: none
  • GPUs tested: n/a for local tests; reference GPU performance evidence is attributed above
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4900774664 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T14:12:56Z. --- ### What When the draw pipeline is busy, retain it across WAIT_REG_MEM only if the awaited guest range does not overlap pending pipeline writes and the wait predicate is already satisfied. The wait range is validated before the unchecked read, matching the normal wait path. Overlapping or unsatisfied waits still drain the pipeline. Adds an execution regression that blocks unrelated queued work, submits an already-satisfied WAIT_REG_MEM, and verifies that a following label can queue behind the blocker instead of forcing a drain. The predicate follows the fix proposal in #7138 by @utajum; this PR adds a current-main implementation and execution regression. This addresses the wait-drain finding in #7138 only. The shader, GPU, and other CPU findings in that report are outside this change. ### Tested - `git diff --check` — pass. - `python3 tools/check_conventions.py --base upstream/main` — pass. - Attempted CMake configure with Ninja and `BUILD_TESTING=ON`; configuration stopped because the SDL2 submodule has no `CMakeLists.txt` and SDL XRandR support is unavailable. The changed C++ target and runtime regression were not built or run locally. - The reporter's #7138 same-machine c2/c3 captures exercise this same wait predicate on `e09dbc2b4 + #6842`: packet `0x3c` drains fell from 12,304 to 0, and their untraced scene result changed from 26.4 ms to 24.5 ms. Those measurements are from the issue report, not a run of this PR head. Traces and full summary lines are attached at https://github.com/utajum/AnyPS5/releases/tag/perf-ppsa28997. ### Checklist - [x] Based on current `main` (`47a266cf9`); no other open PR implements this wait predicate - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none (partial response to #7138) - [x] Unblocks: none - [x] GPUs tested: n/a for local tests; reference GPU performance evidence is attributed above - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-17 14:35:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T14:35:06Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 4448 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 5115 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 5431 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/tests/execution/PipelinedFill.cpp
PR 6292 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 6501 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 6615 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 6946 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 6947 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 7978 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6235151682 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#issuecomment-6235151682). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-17T14:35:06Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 5115](https://www.github.com/boykopovar/AnyPS5/pull/5115) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/PipelinedFill.cpp` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` | | [PR 7978](https://www.github.com/boykopovar/AnyPS5/pull/7978) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp` |
oneandonlydean commented 2026-10-17 14:41:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T14:41:52Z.


@MarcZX100 full CI on f558cade3 fails on Linux in this PR's own test, agc_driver_pipelined_fill (run 39040576371; Windows skips it without a device):

[gpu] rejected submission of 15 dwords ...
AGC driver: WAIT_REG_MEM at DWORD 0: invalid packet size

tests/execution/PipelinedFill.cpp builds both WAIT_REG_MEM packets (around lines 173 and 201) with header 0xc0063c00, which declares 8 dwords, but writes only 7. Pm4.cpp requires exactly 7 for WAIT_REG_MEM, so the following packet's header gets read as the 8th dword and the submission is rejected. Every other test uses 0xc0053c00. The first site was already there in d934a0dce, so the test's assertions haven't run on a device yet.

Ask: change 0xc0063c00u to 0xc0053c00u at both sites and confirm the test passes on a real device (Passed, not Skipped). We'll run full CI on the new head. The production change in PacketExecution.cpp is unaffected; its review still stands.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6235223910 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#issuecomment-6235223910). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T14:41:52Z. --- @MarcZX100 full CI on f558cade3 fails on Linux in this PR's own test, `agc_driver_pipelined_fill` (run 39040576371; Windows skips it without a device): ``` [gpu] rejected submission of 15 dwords ... AGC driver: WAIT_REG_MEM at DWORD 0: invalid packet size ``` `tests/execution/PipelinedFill.cpp` builds both WAIT_REG_MEM packets (around lines 173 and 201) with header `0xc0063c00`, which declares 8 dwords, but writes only 7. `Pm4.cpp` requires exactly 7 for WAIT_REG_MEM, so the following packet's header gets read as the 8th dword and the submission is rejected. Every other test uses `0xc0053c00`. The first site was already there in d934a0dce, so the test's assertions haven't run on a device yet. Ask: change `0xc0063c00u` to `0xc0053c00u` at both sites and confirm the test passes on a real device (Passed, not Skipped). We'll run full CI on the new head. The production change in PacketExecution.cpp is unaffected; its review still stands.
MarcZX10 commented 2026-10-17 14:49:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T14:49:07Z.


Fixed both WAIT_REG_MEM headers in PipelinedFill.cpp from 0xc0063c00 to 0xc0053c00 in commit 903f380ba. Each packet now declares the seven dwords it actually contains, so the following label packet is no longer consumed as an eighth WAIT_REG_MEM dword. git diff --check passes. I could not run the AGC test locally: CMake configuration stops because this checkout lacks the SDL2 submodule and XRandR development support, and this environment has no GPU for the requested device run. I have not claimed a passing runtime result; please rerun the Linux test and, if available, the device-backed test on this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6235300887 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#issuecomment-6235300887). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T14:49:07Z. --- Fixed both WAIT_REG_MEM headers in `PipelinedFill.cpp` from `0xc0063c00` to `0xc0053c00` in commit `903f380ba`. Each packet now declares the seven dwords it actually contains, so the following label packet is no longer consumed as an eighth WAIT_REG_MEM dword. `git diff --check` passes. I could not run the AGC test locally: CMake configuration stops because this checkout lacks the SDL2 submodule and XRandR development support, and this environment has no GPU for the requested device run. I have not claimed a passing runtime result; please rerun the Linux test and, if available, the device-backed test on this head.
TheSovietWaffle commented 2026-10-17 15:22:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TheSovietWaffle on 2026-10-17T15:22:10Z.


First build and run of this head, since the description has none: head 903f380ba as-is, Release, Windows 10 Pro 22H2 (19045), WinLibs GCC 15.2.0 r7, NVIDIA GeForce RTX 3080 (617.42) chosen with ANYPS5_GPU.

  • agc_driver_pipelined_fill builds and passes 5 of 5 (not skipped).
  • Negative control: the same head with only PacketExecution.cpp reverted to the merge-base 47a266cf9 (test kept) fails 3 of 3 with a satisfied WAIT_REG_MEM drained unrelated queued work, so the new cases cover the change.

Not checked: the rest of the AGC suite, titles, the #7138 timings on this head.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6235672973 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#issuecomment-6235672973). Originally posted by [TheSovietWaffle](https://github.com/TheSovietWaffle) on 2026-10-17T15:22:10Z. --- First build and run of this head, since the description has none: head `903f380ba` as-is, Release, Windows 10 Pro 22H2 (19045), WinLibs GCC 15.2.0 r7, NVIDIA GeForce RTX 3080 (617.42) chosen with `ANYPS5_GPU`. - `agc_driver_pipelined_fill` builds and passes 5 of 5 (not skipped). - Negative control: the same head with only `PacketExecution.cpp` reverted to the merge-base `47a266cf9` (test kept) fails 3 of 3 with `a satisfied WAIT_REG_MEM drained unrelated queued work`, so the new cases cover the change. Not checked: the rest of the AGC suite, titles, the #7138 timings on this head. AI-assisted: yes (Claude Code).
MarcZX10 commented 2026-10-17 15:24:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T15:24:51Z.


Thanks for testing the latest head on the RTX 3080. That confirms agc_driver_pipelined_fill runs on a real device and passes 5/5; the negative control also confirms the test catches the behavior change. The remaining gap is the #7138 timing comparison, which your note correctly leaves unchecked.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6235713826 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#issuecomment-6235713826). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T15:24:51Z. --- Thanks for testing the latest head on the RTX 3080. That confirms `agc_driver_pipelined_fill` runs on a real device and passes 5/5; the negative control also confirms the test catches the behavior change. The remaining gap is the #7138 timing comparison, which your note correctly leaves unchecked.
jotitadev commented 2026-10-17 16:23:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-17T16:23:26Z.

Review: COMMENTED


A Linux run of 903f380ba on lavapipe, the CI device where f558cade3 failed, and on NVIDIA. It also checks the overlap half of the predicate, which the negative control above (the whole PacketExecution.cpp reverted) does not separate.

Machine: Ubuntu 26.04, i7-8700, GCC 15.2, Release, BUILD_TESTING=ON. NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same host. Head 903f380ba merged onto main 84b0d2f24 (clean). ANYPS5_NO_SHADER_CACHE=1, -j1 --timeout 30.

Run lavapipe RTX 3070
agc_driver_pipelined_fill Passed 2/2, not skipped (-V: "pipelined fill tests passed") Passed 4/4
same, PacketExecution.cpp from main fails 1/1: a satisfied WAIT_REG_MEM drained unrelated queued work fails 2/2, same message
same, PR with only if (DrawPipeline::Queue0().Overlaps(awaited, bytes)) return false; removed fails 1/1: a satisfied WAIT_REG_MEM skipped an overlapping queued write fails 3/3, same message
^agc (649 tests) 649/649 (main: 649/649) 649/649 (main: 648/649; the failure is a CPU timing flake in agc_async_log_fatal that passes 5/5 alone)

So each of the two new checks fails on its own: the first one without the change, the second one when a satisfied wait keeps the pipeline over an overlapping queued write.

Not run: Windows, AMD, any title, the #7138 timings.

GPUs tested: lavapipe (Mesa 26.0.3) and NVIDIA GeForce RTX 3070 (595.99.02), Ubuntu 26.04

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5558746946 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#pullrequestreview-5558746946). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-17T16:23:26Z. **Review:** COMMENTED --- A Linux run of `903f380ba` on lavapipe, the CI device where `f558cade3` failed, and on NVIDIA. It also checks the overlap half of the predicate, which the negative control above (the whole `PacketExecution.cpp` reverted) does not separate. **Machine:** Ubuntu 26.04, i7-8700, GCC 15.2, Release, `BUILD_TESTING=ON`. NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same host. Head `903f380ba` merged onto `main` `84b0d2f24` (clean). `ANYPS5_NO_SHADER_CACHE=1`, `-j1 --timeout 30`. | Run | lavapipe | RTX 3070 | |---|---|---| | `agc_driver_pipelined_fill` | Passed 2/2, not skipped (`-V`: "pipelined fill tests passed") | Passed 4/4 | | same, `PacketExecution.cpp` from `main` | fails 1/1: `a satisfied WAIT_REG_MEM drained unrelated queued work` | fails 2/2, same message | | same, PR with only `if (DrawPipeline::Queue0().Overlaps(awaited, bytes)) return false;` removed | fails 1/1: `a satisfied WAIT_REG_MEM skipped an overlapping queued write` | fails 3/3, same message | | `^agc` (649 tests) | 649/649 (`main`: 649/649) | 649/649 (`main`: 648/649; the failure is a CPU timing flake in `agc_async_log_fatal` that passes 5/5 alone) | So each of the two new checks fails on its own: the first one without the change, the second one when a satisfied wait keeps the pipeline over an overlapping queued write. Not run: Windows, AMD, any title, the #7138 timings. GPUs tested: lavapipe (Mesa 26.0.3) and NVIDIA GeForce RTX 3070 (595.99.02), Ubuntu 26.04 Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-17 16:40:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T16:40:21Z.


Thanks for the Linux retest and the two isolated controls. This confirms the focused test passes on lavapipe and NVIDIA, fails against main when the optimization is absent, and fails when only the overlap guard is removed. That directly validates both sides of the predicate; the #7138 title timing comparison remains unverified.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6236845720 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#issuecomment-6236845720). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T16:40:21Z. --- Thanks for the Linux retest and the two isolated controls. This confirms the focused test passes on lavapipe and NVIDIA, fails against main when the optimization is absent, and fails when only the overlap guard is removed. That directly validates both sides of the predicate; the #7138 title timing comparison remains unverified.
simonbronk commented 2026-10-17 22:08:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-17T22:08:27Z.


Tested on Onimusha's menu: no measurable change in this scene.

Setup: Onimusha: Way of the Sword (PPSA27836), boot to the language menu with no input, APS5_TRACE_SECONDS=60:30, warm cache. Windows 11 26200, RTX 5070 (617.42), 3840x2160. Base main 84b0d2f24 + #6557 #6727 #6762 (5c521efea), 6 runs (3 before and 3 after the PR runs). The PR is merged on top of it (clean merge), 3 runs.

  • Base frame p50 (ms): 84.5, 82.6, 81.8, 81.5, 77.9, 83.5 (mean 82.0); p90 84.3-93.6.
  • With this PR, p50: 82.4, 82.5, 82.5. Within the base's run-to-run range.

This scene may simply not exercise the path this PR speeds up. Summary lines and traces available on request. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6241966125 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#issuecomment-6241966125). Originally posted by [simonbronk](https://github.com/simonbronk) on 2026-10-17T22:08:27Z. --- Tested on Onimusha's menu: no measurable change in this scene. Setup: Onimusha: Way of the Sword (PPSA27836), boot to the language menu with no input, `APS5_TRACE_SECONDS=60:30`, warm cache. Windows 11 26200, RTX 5070 (617.42), 3840x2160. Base `main` 84b0d2f24 + #6557 #6727 #6762 (5c521efea), 6 runs (3 before and 3 after the PR runs). The PR is merged on top of it (clean merge), 3 runs. - Base frame p50 (ms): 84.5, 82.6, 81.8, 81.5, 77.9, 83.5 (mean 82.0); p90 84.3-93.6. - With this PR, p50: 82.4, 82.5, 82.5. Within the base's run-to-run range. This scene may simply not exercise the path this PR speeds up. Summary lines and traces available on request. AI-assisted: yes.
MarcZX10 commented 2026-10-18 00:14:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T00:14:04Z.


Thanks for the controlled Onimusha comparison. I’ve recorded this as a no-measurable-change result for that menu scene: the three PR p50 runs (82.4–82.5 ms) are within the six-run base range (77.9–84.5 ms). It does not establish whether this scene exercises the satisfied-wait path, so I will keep the PR’s performance claim limited to the predicate regression and the #7138 capture evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6243602095 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#issuecomment-6243602095). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T00:14:04Z. --- Thanks for the controlled Onimusha comparison. I’ve recorded this as a no-measurable-change result for that menu scene: the three PR p50 runs (82.4–82.5 ms) are within the six-run base range (77.9–84.5 ms). It does not establish whether this scene exercises the satisfied-wait path, so I will keep the PR’s performance claim limited to the predicate regression and the #7138 capture evidence.
MarcZX10 commented 2026-10-18 05:37:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T05:37:39Z.


Thanks for the matched lavapipe and RTX 3070 runs. The negative controls isolate both cases: the unchanged packet path drains unrelated queued work, and removing the overlap predicate skips an overlapping queued write. The full AGC suite results and the main-only timing flake are clearly distinguished.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6246170094 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#issuecomment-6246170094). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T05:37:39Z. --- Thanks for the matched lavapipe and RTX 3070 runs. The negative controls isolate both cases: the unchanged packet path drains unrelated queued work, and removing the overlap predicate skips an overlapping queued write. The full AGC suite results and the main-only timing flake are clearly distinguished.
github-actions[bot] commented 2026-10-18 21:12:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T21:12:18Z.


This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255204279 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#issuecomment-6255204279). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T21:12:18Z. --- <!-- pr-labels-perf --> This pull request is labeled `perf`, so it needs the summary line of a capture on `main` and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both `aps5-summary.jsonl` lines, attach the two traces and add the output of `tools/trace_digest.py`.
oneandonlydean commented 2026-10-20 03:22:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T03:22:00Z.


Hi @MarcZX10, agc_driver_pipelined_fill fails occasionally on Linux CI with "a satisfied WAIT_REG_MEM skipped an overlapping queued write" (CI 39040576371 on 18 Oct, 39353294932 attempt 2 on 20 Oct, both on unrelated PRs). Reading main, I can't find a path where an overlapping queued write is skipped: Overlaps includes the running commit, and Drain waits for items.empty(). So I suspect the observation rather than the driver. Could you split that Require into its two halves (drain observed within the window / label queued before the release) and print DrainRequestsByOpcode(0x3c) and Outstanding() when it fails? Then the next occurrence shows which one it is. If it's the 3 s window, waiting on the drain counter without a deadline (the 20 s submit check already bounds it) would remove the load sensitivity.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6282571893 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7153#issuecomment-6282571893). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T03:22:00Z. --- Hi @MarcZX10, `agc_driver_pipelined_fill` fails occasionally on Linux CI with "a satisfied WAIT_REG_MEM skipped an overlapping queued write" (CI 39040576371 on 18 Oct, 39353294932 attempt 2 on 20 Oct, both on unrelated PRs). Reading main, I can't find a path where an overlapping queued write is skipped: `Overlaps` includes the running commit, and `Drain` waits for `items.empty()`. So I suspect the observation rather than the driver. Could you split that Require into its two halves (drain observed within the window / label queued before the release) and print `DrainRequestsByOpcode(0x3c)` and `Outstanding()` when it fails? Then the next occurrence shows which one it is. If it's the 3 s window, waiting on the drain counter without a deadline (the 20 s submit check already bounds it) would remove the load sensitivity.
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!7153
No description provided.