fix(agc): yield the queue-idle storage write-back to new work #13621

Merged
beardsciences merged 1 commit from upstream-pr/13621 into main 2026-10-31 10:03:08 +00:00
beardsciences commented 2026-10-30 19:53:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by beardsciences on 2026-10-30T19:53:15Z.


What

Queue 0's idle store (VulkanDevice::StoreIdleResults, from #3777, with the 50 ms quiet period of #4410) wrote every pending storage image back to guest memory in one pass. Once a pass started it could not stop, and a title's next flip waited behind it in Driver::holdFlipBehindWorker.

In MediEvil: Resurrection (PPSA07550), Sony's PSP emulator plays the intro movies at about 25 fps, so the gap between two frames is 40–65 ms and now and then passes 50 ms. Each time, the idle store wrote back about 15 upscaled 3840x2176 render targets (0x1fe0000 bytes each, about 0.5 GB), took about 0.6 s, and the movie froze for that long, 17–21 times a minute (runs below). Found with all-thread stack dumps during the freezes (the emulator thread in sceAgcDriverSubmitDcb → holdFlipBehindWorker, queue 0 in StorageTexture::FlushAllPending("idle") → writeBackLayers) and APS5_TRACE_FLUSH.

The change:

  • StorageTexture::FlushAllPendingUntil(reason, stop) stores the pending images 4 MiB at a time through FlushPending, so an image tracked in 64 KiB block units is stored in pieces with the units it already has; it calls stop before each piece and returns whether everything was stored.
  • StoreIdleResults takes that stop; queue 0 passes "queue 0 has queued work, or another queue is running". What is left stays pending and is stored at the next idle period, as any pending image already is.

The quiet period stays at 50 ms. A title that polls guest memory for an image result without a flush, wait or later submission (#3272, the case #3777 was added for) still gets every result as before: nothing submits, so nothing stops the store. What changes is the idle store of a title that keeps submitting: it no longer delays that title's next frame by more than one 4 MiB piece. A title whose frame gaps pass 50 ms can still start a store between two frames, and the next frame then waits for the piece in progress (the 85–97 ms frames in the runs below); recorded in docs/dev/debt/libSceAgcDriver.md.

New test agc_driver_idle_store_yields: two pending images, a store asked to stop after the first check stores exactly one and leaves the other pending; one 8 MiB image with results at row 0 and row 1000, a store asked to stop after one piece leaves the second piece's results pending; the following stores bring both results to guest memory. Negative controls: with the stop check removed it fails ("a store asked to stop after one image reported that every image was stored"), 2/2; with the whole image as one piece it fails ("a store asked to stop after one piece reported that the large image was stored"), 2/2.

Overlap: #10940 adds a VkDevice argument to FlushPending and FlushAllPending and passes state->device in StoreIdleResults; whichever merges second passes it through FlushAllPendingUntil as well. #10750 adds APS5_NO_IDLE_STORE on the neighbouring lines of the queue worker. #9673 adds its own entry to docs/dev/debt/libSceAgcDriver.md at the line this one is added before; whichever merges second keeps both entries. tools/pr_overlap.py --branch confirms only #9673 and #10940; the 86 open pull requests it could not compare (they conflict with main) were compared by hand against their merge base: none of them changes StoreIdleResults, FlushAllPending, the quiet period or the idle-store condition except #10750 and #10940 above, and the rest change other lines of the same files. Neither #10750 nor #10940 changes when an idle store starts or whether it can stop.

The same 25 s of the movie from presented-frame dumps (APS5_DUMP_FRAMES, played back at the times they were presented), main on the left, this PR on the right:

https://github.com/user-attachments/assets/b27cb20f-4631-4fb1-93d6-fae2d4386216

Tested

Windows 11 (10.0.26200), RTX 3060 Ti, NVIDIA 621.01, Ryzen 5 5600X; main d3118d1946 and this PR 859777b551 built with WinLibs GCC 15.2.0.

  • MediEvil: Resurrection (PPSA07550, 01.000.003), the intro movie, 60 s from 40 s after the first present (APS5_TRACE_SECONDS=40:60 and no other trace or profile switch), warm caches, fixed pad input, log not redirected, alternating runs in one session:

    Run Presents Frame p50 / p90 / p99 / max Frames over 300 ms Frames of 85–300 ms GPU busy per present
    main d3118d1946, run 1 1238 39.5 / 57.1 / 655.5 / 782.0 ms 21 0 10.9 ms
    this PR 859777b551, run 1 1523 39.9 / 57.8 / 75.0 / 96.8 ms 0 10 11.0 ms
    main d3118d1946, run 2 1309 39.7 / 51.1 / 556.6 / 715.8 ms 17 1 10.8 ms
    this PR 859777b551, run 2 1528 39.6 / 59.9 / 80.7 / 96.6 ms 0 10 11.2 ms

    Summary lines (main run 1, PR run 1, main run 2, PR run 2):

    {"commit":"d3118d194631","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:60"},"gpu":"NVIDIA GeForce RTX 3060 Ti","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32674,"title_id":"PPSA07550","title":"MediEvil: Resurrection","content_version":"01.000.003","resolution":"3840x2160","window":{"spec":"seconds 40:60","first_present":858,"ms":60038.319},"presents":1238,"frame_ms":{"p50":39.454,"p90":57.072,"p99":655.508,"max":782.047},"gpu_busy_ms_per_present":10.883,"worker_busy_pct":{"queue worker 0x0":4.387},"top_phases_ms_per_frame":{"VideoOut.Flip":11.746,"Driver.Present":11.564,"VideoOut.Flip.present":11.558,"Driver.Present.render_fence_wait":11.058,"Vulkan.Retire":11.058,"Vulkan.Retire.wait":11.051,"Driver.Packet":2.124,"Graphics.Wait":2.054},"trace_dropped":false,"trace":"aps5-trace-d3118d194631-47300.json.gz"}
    {"commit":"859777b5518e","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:60"},"gpu":"NVIDIA GeForce RTX 3060 Ti","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32674,"title_id":"PPSA07550","title":"MediEvil: Resurrection","content_version":"01.000.003","resolution":"3840x2160","window":{"spec":"seconds 40:60","first_present":983,"ms":60041.081},"presents":1523,"frame_ms":{"p50":39.925,"p90":57.812,"p99":74.969,"max":96.765},"gpu_busy_ms_per_present":10.986,"worker_busy_pct":{"queue worker 0x0":4.193},"top_phases_ms_per_frame":{"VideoOut.Flip":12.120,"Driver.Present":11.975,"VideoOut.Flip.present":11.971,"Driver.Present.render_fence_wait":11.618,"Vulkan.Retire":11.617,"Vulkan.Retire.wait":11.611,"Driver.Packet":1.650,"Graphics.Draw":1.155},"trace_dropped":false,"trace":"aps5-trace-859777b5518e-24464.json.gz"}
    {"commit":"d3118d194631","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:60"},"gpu":"NVIDIA GeForce RTX 3060 Ti","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32674,"title_id":"PPSA07550","title":"MediEvil: Resurrection","content_version":"01.000.003","resolution":"3840x2160","window":{"spec":"seconds 40:60","first_present":851,"ms":60017.783},"presents":1309,"frame_ms":{"p50":39.697,"p90":51.053,"p99":556.624,"max":715.818},"gpu_busy_ms_per_present":10.816,"worker_busy_pct":{"queue worker 0x0":4.301},"top_phases_ms_per_frame":{"VideoOut.Flip":12.044,"Driver.Present":11.890,"VideoOut.Flip.present":11.888,"Driver.Present.render_fence_wait":11.087,"Vulkan.Retire":11.086,"Vulkan.Retire.wait":11.080,"Driver.Packet":1.969,"Graphics.Wait":1.456},"trace_dropped":false,"trace":"aps5-trace-d3118d194631-41172.json.gz"}
    {"commit":"859777b5518e","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:60"},"gpu":"NVIDIA GeForce RTX 3060 Ti","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32674,"title_id":"PPSA07550","title":"MediEvil: Resurrection","content_version":"01.000.003","resolution":"3840x2160","window":{"spec":"seconds 40:60","first_present":978,"ms":60028.376},"presents":1528,"frame_ms":{"p50":39.647,"p90":59.917,"p99":80.694,"max":96.591},"gpu_busy_ms_per_present":11.159,"worker_busy_pct":{"queue worker 0x0":4.210},"top_phases_ms_per_frame":{"VideoOut.Flip":12.321,"Driver.Present":12.191,"VideoOut.Flip.present":12.186,"Driver.Present.render_fence_wait":11.829,"Vulkan.Retire":11.828,"Vulkan.Retire.wait":11.823,"Driver.Packet":1.651,"Graphics.Draw":1.153},"trace_dropped":false,"trace":"aps5-trace-859777b5518e-12096.json.gz"}
    

    Traces and tools/trace_digest.py output attached. The 85–97 ms frames of this PR are where an idle store started between two movie frames and the next frame waited for the 4 MiB piece in progress.

  • ctest -R "idle|storage|store|write_?back|flush|queue_zero" -V with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1: main d3118d1946 108/108, this PR 859777b551 109/109 (the new test is the extra one); neither log reports was not found but was requested by env var VK_INSTANCE_LAYERS, both show the same 24 WARNING-VkImageSubresourceRange-layerCount-compatibility lines from the layer, and neither has a VUID- error. Each log starts with its commit, its tree, an empty git status --porcelain and the number of compile/link steps ninja -C build ran just before the tests (0). Logs attached.

  • agc_driver_idle_store_yields 3/3 on 859777b551, and the two negative controls above (2/2 each on that commit).

  • @JJenkx ran agc_driver_idle_store_yields on 46e30b5465 (the test and the store are unchanged since) on a Radeon RX 6700 XT, AMD 26.10.1, Windows 11, with the validation layer: 3/3, no VUIDs (comment below).

  • @blawesom built agc_driver_idle_store_yields from 46e30b5465 on Linux, AMD Radeon RX 9070 XT, RADV (Mesa 26.2.4), with the validation layer: 5/5, no VUIDs; main's idle-store tests 3/3 there with no VUIDs (comment below).

digest-pr-1.txt
digest-pr-2.txt
validation-main-d3118d1946.txt
validation-pr-859777b551.txt
aps5-trace-859777b5518e-12096.json.gz
aps5-trace-859777b5518e-24464.json.gz
aps5-trace-d3118d194631-41172.json.gz
aps5-trace-d3118d194631-47300.json.gz
digest-main-1.txt
digest-main-2.txt

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 3060 Ti, driver 621.01, Windows 11; the new test also on AMD Radeon RX 6700 XT, driver 26.10.1, Windows 11 (run by @JJenkx), and AMD Radeon RX 9070 XT, RADV Mesa 26.2.4, Linux (run by @blawesom)
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5090234122 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13621). Originally posted by [beardsciences](https://github.com/beardsciences) on 2026-10-30T19:53:15Z. --- ### What Queue 0's idle store (`VulkanDevice::StoreIdleResults`, from #3777, with the 50 ms quiet period of #4410) wrote every pending storage image back to guest memory in one pass. Once a pass started it could not stop, and a title's next flip waited behind it in `Driver::holdFlipBehindWorker`. In MediEvil: Resurrection (PPSA07550), Sony's PSP emulator plays the intro movies at about 25 fps, so the gap between two frames is 40–65 ms and now and then passes 50 ms. Each time, the idle store wrote back about 15 upscaled 3840x2176 render targets (`0x1fe0000` bytes each, about 0.5 GB), took about 0.6 s, and the movie froze for that long, 17–21 times a minute (runs below). Found with all-thread stack dumps during the freezes (the emulator thread in `sceAgcDriverSubmitDcb` → `holdFlipBehindWorker`, queue 0 in `StorageTexture::FlushAllPending("idle")` → `writeBackLayers`) and `APS5_TRACE_FLUSH`. The change: - `StorageTexture::FlushAllPendingUntil(reason, stop)` stores the pending images 4 MiB at a time through `FlushPending`, so an image tracked in 64 KiB block units is stored in pieces with the units it already has; it calls `stop` before each piece and returns whether everything was stored. - `StoreIdleResults` takes that `stop`; queue 0 passes "queue 0 has queued work, or another queue is running". What is left stays pending and is stored at the next idle period, as any pending image already is. The quiet period stays at 50 ms. A title that polls guest memory for an image result without a flush, wait or later submission (#3272, the case #3777 was added for) still gets every result as before: nothing submits, so nothing stops the store. What changes is the idle store of a title that keeps submitting: it no longer delays that title's next frame by more than one 4 MiB piece. A title whose frame gaps pass 50 ms can still start a store between two frames, and the next frame then waits for the piece in progress (the 85–97 ms frames in the runs below); recorded in `docs/dev/debt/libSceAgcDriver.md`. New test `agc_driver_idle_store_yields`: two pending images, a store asked to stop after the first check stores exactly one and leaves the other pending; one 8 MiB image with results at row 0 and row 1000, a store asked to stop after one piece leaves the second piece's results pending; the following stores bring both results to guest memory. Negative controls: with the stop check removed it fails ("a store asked to stop after one image reported that every image was stored"), 2/2; with the whole image as one piece it fails ("a store asked to stop after one piece reported that the large image was stored"), 2/2. Overlap: #10940 adds a `VkDevice` argument to `FlushPending` and `FlushAllPending` and passes `state->device` in `StoreIdleResults`; whichever merges second passes it through `FlushAllPendingUntil` as well. #10750 adds `APS5_NO_IDLE_STORE` on the neighbouring lines of the queue worker. #9673 adds its own entry to `docs/dev/debt/libSceAgcDriver.md` at the line this one is added before; whichever merges second keeps both entries. `tools/pr_overlap.py --branch` confirms only #9673 and #10940; the 86 open pull requests it could not compare (they conflict with `main`) were compared by hand against their merge base: none of them changes `StoreIdleResults`, `FlushAllPending`, the quiet period or the idle-store condition except #10750 and #10940 above, and the rest change other lines of the same files. Neither #10750 nor #10940 changes when an idle store starts or whether it can stop. The same 25 s of the movie from presented-frame dumps (`APS5_DUMP_FRAMES`, played back at the times they were presented), `main` on the left, this PR on the right: https://github.com/user-attachments/assets/b27cb20f-4631-4fb1-93d6-fae2d4386216 ### 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 (10.0.26200), RTX 3060 Ti, NVIDIA 621.01, Ryzen 5 5600X; `main` d3118d1946 and this PR 859777b551 built with WinLibs GCC 15.2.0. - MediEvil: Resurrection (PPSA07550, 01.000.003), the intro movie, 60 s from 40 s after the first present (`APS5_TRACE_SECONDS=40:60` and no other trace or profile switch), warm caches, fixed pad input, log not redirected, alternating runs in one session: | Run | Presents | Frame p50 / p90 / p99 / max | Frames over 300 ms | Frames of 85–300 ms | GPU busy per present | |---|---|---|---|---|---| | `main` d3118d1946, run 1 | 1238 | 39.5 / 57.1 / 655.5 / 782.0 ms | 21 | 0 | 10.9 ms | | this PR 859777b551, run 1 | 1523 | 39.9 / 57.8 / 75.0 / 96.8 ms | 0 | 10 | 11.0 ms | | `main` d3118d1946, run 2 | 1309 | 39.7 / 51.1 / 556.6 / 715.8 ms | 17 | 1 | 10.8 ms | | this PR 859777b551, run 2 | 1528 | 39.6 / 59.9 / 80.7 / 96.6 ms | 0 | 10 | 11.2 ms | Summary lines (`main` run 1, PR run 1, `main` run 2, PR run 2): ```json {"commit":"d3118d194631","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:60"},"gpu":"NVIDIA GeForce RTX 3060 Ti","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32674,"title_id":"PPSA07550","title":"MediEvil: Resurrection","content_version":"01.000.003","resolution":"3840x2160","window":{"spec":"seconds 40:60","first_present":858,"ms":60038.319},"presents":1238,"frame_ms":{"p50":39.454,"p90":57.072,"p99":655.508,"max":782.047},"gpu_busy_ms_per_present":10.883,"worker_busy_pct":{"queue worker 0x0":4.387},"top_phases_ms_per_frame":{"VideoOut.Flip":11.746,"Driver.Present":11.564,"VideoOut.Flip.present":11.558,"Driver.Present.render_fence_wait":11.058,"Vulkan.Retire":11.058,"Vulkan.Retire.wait":11.051,"Driver.Packet":2.124,"Graphics.Wait":2.054},"trace_dropped":false,"trace":"aps5-trace-d3118d194631-47300.json.gz"} {"commit":"859777b5518e","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:60"},"gpu":"NVIDIA GeForce RTX 3060 Ti","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32674,"title_id":"PPSA07550","title":"MediEvil: Resurrection","content_version":"01.000.003","resolution":"3840x2160","window":{"spec":"seconds 40:60","first_present":983,"ms":60041.081},"presents":1523,"frame_ms":{"p50":39.925,"p90":57.812,"p99":74.969,"max":96.765},"gpu_busy_ms_per_present":10.986,"worker_busy_pct":{"queue worker 0x0":4.193},"top_phases_ms_per_frame":{"VideoOut.Flip":12.120,"Driver.Present":11.975,"VideoOut.Flip.present":11.971,"Driver.Present.render_fence_wait":11.618,"Vulkan.Retire":11.617,"Vulkan.Retire.wait":11.611,"Driver.Packet":1.650,"Graphics.Draw":1.155},"trace_dropped":false,"trace":"aps5-trace-859777b5518e-24464.json.gz"} {"commit":"d3118d194631","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:60"},"gpu":"NVIDIA GeForce RTX 3060 Ti","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32674,"title_id":"PPSA07550","title":"MediEvil: Resurrection","content_version":"01.000.003","resolution":"3840x2160","window":{"spec":"seconds 40:60","first_present":851,"ms":60017.783},"presents":1309,"frame_ms":{"p50":39.697,"p90":51.053,"p99":556.624,"max":715.818},"gpu_busy_ms_per_present":10.816,"worker_busy_pct":{"queue worker 0x0":4.301},"top_phases_ms_per_frame":{"VideoOut.Flip":12.044,"Driver.Present":11.890,"VideoOut.Flip.present":11.888,"Driver.Present.render_fence_wait":11.087,"Vulkan.Retire":11.086,"Vulkan.Retire.wait":11.080,"Driver.Packet":1.969,"Graphics.Wait":1.456},"trace_dropped":false,"trace":"aps5-trace-d3118d194631-41172.json.gz"} {"commit":"859777b5518e","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"40:60"},"gpu":"NVIDIA GeForce RTX 3060 Ti","driver":"NVIDIA 621.01","os":"Windows 10.0.26200","cpu":"AMD Ryzen 5 5600X 6-Core Processor","cpu_threads":12,"memory_mib":32674,"title_id":"PPSA07550","title":"MediEvil: Resurrection","content_version":"01.000.003","resolution":"3840x2160","window":{"spec":"seconds 40:60","first_present":978,"ms":60028.376},"presents":1528,"frame_ms":{"p50":39.647,"p90":59.917,"p99":80.694,"max":96.591},"gpu_busy_ms_per_present":11.159,"worker_busy_pct":{"queue worker 0x0":4.210},"top_phases_ms_per_frame":{"VideoOut.Flip":12.321,"Driver.Present":12.191,"VideoOut.Flip.present":12.186,"Driver.Present.render_fence_wait":11.829,"Vulkan.Retire":11.828,"Vulkan.Retire.wait":11.823,"Driver.Packet":1.651,"Graphics.Draw":1.153},"trace_dropped":false,"trace":"aps5-trace-859777b5518e-12096.json.gz"} ``` Traces and `tools/trace_digest.py` output attached. The 85–97 ms frames of this PR are where an idle store started between two movie frames and the next frame waited for the 4 MiB piece in progress. - `ctest -R "idle|storage|store|write_?back|flush|queue_zero" -V` with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`: `main` d3118d1946 108/108, this PR 859777b551 109/109 (the new test is the extra one); neither log reports `was not found but was requested by env var VK_INSTANCE_LAYERS`, both show the same 24 `WARNING-VkImageSubresourceRange-layerCount-compatibility` lines from the layer, and neither has a `VUID-` error. Each log starts with its commit, its tree, an empty `git status --porcelain` and the number of compile/link steps `ninja -C build` ran just before the tests (0). Logs attached. - `agc_driver_idle_store_yields` 3/3 on 859777b551, and the two negative controls above (2/2 each on that commit). - @JJenkx ran `agc_driver_idle_store_yields` on 46e30b5465 (the test and the store are unchanged since) on a Radeon RX 6700 XT, AMD 26.10.1, Windows 11, with the validation layer: 3/3, no VUIDs (comment below). - @blawesom built `agc_driver_idle_store_yields` from 46e30b5465 on Linux, AMD Radeon RX 9070 XT, RADV (Mesa 26.2.4), with the validation layer: 5/5, no VUIDs; `main`'s idle-store tests 3/3 there with no VUIDs (comment below). [digest-pr-1.txt](https://github.com/user-attachments/files/34206407/digest-pr-1.txt) [digest-pr-2.txt](https://github.com/user-attachments/files/34206408/digest-pr-2.txt) [validation-main-d3118d1946.txt](https://github.com/user-attachments/files/34206409/validation-main-d3118d1946.txt) [validation-pr-859777b551.txt](https://github.com/user-attachments/files/34206410/validation-pr-859777b551.txt) [aps5-trace-859777b5518e-12096.json.gz](https://github.com/user-attachments/files/34206411/aps5-trace-859777b5518e-12096.json.gz) [aps5-trace-859777b5518e-24464.json.gz](https://github.com/user-attachments/files/34206412/aps5-trace-859777b5518e-24464.json.gz) [aps5-trace-d3118d194631-41172.json.gz](https://github.com/user-attachments/files/34206413/aps5-trace-d3118d194631-41172.json.gz) [aps5-trace-d3118d194631-47300.json.gz](https://github.com/user-attachments/files/34206415/aps5-trace-d3118d194631-47300.json.gz) [digest-main-1.txt](https://github.com/user-attachments/files/34206416/digest-main-1.txt) [digest-main-2.txt](https://github.com/user-attachments/files/34206417/digest-main-2.txt) ### 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: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 3060 Ti, driver 621.01, Windows 11; the new test also on AMD Radeon RX 6700 XT, driver 26.10.1, Windows 11 (run by @JJenkx), and AMD Radeon RX 9070 XT, RADV Mesa 26.2.4, Linux (run by @blawesom) - [x] AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-30 20:08:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T20:08:27Z.

Review: COMMENTED


Tests run and reviewed — exact-head validation evidence needed

The source review found no blocker, and the attached paired validation logs show no VUIDs, but I cannot resolve the PR-side test revision named in the log and the hosted Windows job is still pending.

What I ran

Reviewed head 46e30b5465330f5368bb2439c73a0b73ccda5e65 against PR base 9310f48f1599d0b0a73ccdba39ed8bacee861bb7; the merge preview against current main badd7cd5b8d3f06118d7aced81e8875cc71da407 was clean. Environment: Linux x86-64, Python 3.11.2, Git 2.39.5. I did not build or run CTest.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13621
git merge-tree --write-tree badd7cd5b8d3f06118d7aced81e8875cc71da407 46e30b5465330f5368bb2439c73a0b73ccda5e65
gh api repos/boykopovar/AnyPS5/commits/40a59e337e --jq .sha
grep -c 'VUID-' /tmp/13621-validation-pr.txt
grep -c 'was not found but was requested by env var VK_INSTANCE_LAYERS' /tmp/13621-validation-pr.txt
grep -c 'VUID-' /tmp/13621-validation-main.txt
grep -c 'was not found but was requested by env var VK_INSTANCE_LAYERS' /tmp/13621-validation-main.txt
grep 'Test #1279:' /tmp/13621-validation-pr.txt
gh pr checks 13621 --repo boykopovar/AnyPS5

Results

Check Result
Diff and conventions Passed in the no-build precheck.
Current-main merge preview Passed; clean merge tree.
Attached Vulkan validation logs Read, not run locally: both have zero VUID- entries and zero missing-layer markers; the PR log shows agc_driver_idle_store_yields passed.
PR-side validation source revision Not verified: the body/log names 40a59e337e, which GitHub cannot resolve, so I cannot establish that this run tested the exact submitted head or compare its source tree.
Hosted checks Windows is pending; conventions, intake, eligibility, portability, labels, and report passed. Linux and specialized build jobs were skipped.
Local build or CTest Not run.
Relevant unedited output
7c87dddd8968c0b94be12f65264360080b302b90
All conventions checks passed.
0
0
0
0
  47/108 Test #1279: agc_driver_idle_store_yields ........................................   Passed    0.93 sec
{"message":"No commit found for SHA: 40a59e337e","documentation_url":"https://docs.github.com/rest/commits/commits#get-a-commit","status":"422"}

Findings

Blocking

None identified in the source reviewed.

Non-blocking

The required AGC validation results are useful and appear clean, but their PR-side run cannot currently be tied to a retrievable source revision. Approval is withheld until that provenance and the pending Windows result are clear.

Sources

Not verified

I did not reproduce the GPU runs, compile, or run CTest locally. I could not confirm what source tree the PR-side validation log used, and hosted Windows remains pending.

To get this to a good state

Please provide the full resolvable SHA or source-tree identity for 40a59e337e and show how it relates to the reviewed head, or rerun the paired focused validation tests on the exact current source. Once Windows completes and the test provenance is clear, I’ll re-check the same evidence on the current head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5718071652 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13621#pullrequestreview-5718071652). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T20:08:27Z. **Review:** COMMENTED --- # Tests run and reviewed — exact-head validation evidence needed The source review found no blocker, and the attached paired validation logs show no VUIDs, but I cannot resolve the PR-side test revision named in the log and the hosted Windows job is still pending. ## What I ran Reviewed head `46e30b5465330f5368bb2439c73a0b73ccda5e65` against PR base `9310f48f1599d0b0a73ccdba39ed8bacee861bb7`; the merge preview against current `main` `badd7cd5b8d3f06118d7aced81e8875cc71da407` was clean. Environment: Linux x86-64, Python 3.11.2, Git 2.39.5. I did not build or run CTest. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13621 git merge-tree --write-tree badd7cd5b8d3f06118d7aced81e8875cc71da407 46e30b5465330f5368bb2439c73a0b73ccda5e65 gh api repos/boykopovar/AnyPS5/commits/40a59e337e --jq .sha grep -c 'VUID-' /tmp/13621-validation-pr.txt grep -c 'was not found but was requested by env var VK_INSTANCE_LAYERS' /tmp/13621-validation-pr.txt grep -c 'VUID-' /tmp/13621-validation-main.txt grep -c 'was not found but was requested by env var VK_INSTANCE_LAYERS' /tmp/13621-validation-main.txt grep 'Test #1279:' /tmp/13621-validation-pr.txt gh pr checks 13621 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Diff and conventions | Passed in the no-build precheck. | | Current-main merge preview | Passed; clean merge tree. | | Attached Vulkan validation logs | Read, not run locally: both have zero `VUID-` entries and zero missing-layer markers; the PR log shows `agc_driver_idle_store_yields` passed. | | PR-side validation source revision | Not verified: the body/log names `40a59e337e`, which GitHub cannot resolve, so I cannot establish that this run tested the exact submitted head or compare its source tree. | | Hosted checks | Windows is pending; conventions, intake, eligibility, portability, labels, and report passed. Linux and specialized build jobs were skipped. | | Local build or CTest | Not run. | <details> <summary>Relevant unedited output</summary> ```text 7c87dddd8968c0b94be12f65264360080b302b90 All conventions checks passed. 0 0 0 0 47/108 Test #1279: agc_driver_idle_store_yields ........................................ Passed 0.93 sec {"message":"No commit found for SHA: 40a59e337e","documentation_url":"https://docs.github.com/rest/commits/commits#get-a-commit","status":"422"} ``` </details> ## Findings ### Blocking None identified in the source reviewed. ### Non-blocking The required AGC validation results are useful and appear clean, but their PR-side run cannot currently be tied to a retrievable source revision. Approval is withheld until that provenance and the pending Windows result are clear. ## Sources - [AGC paired-test and validation requirements at current main](https://github.com/boykopovar/AnyPS5/blob/badd7cd5b8d3f06118d7aced81e8875cc71da407/CONTRIBUTING.md#L72) - [Chunked idle flush at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/46e30b5465330f5368bb2439c73a0b73ccda5e65/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L4646-L4663) ## Not verified I did not reproduce the GPU runs, compile, or run CTest locally. I could not confirm what source tree the PR-side validation log used, and hosted Windows remains pending. ## To get this to a good state Please provide the full resolvable SHA or source-tree identity for `40a59e337e` and show how it relates to the reviewed head, or rerun the paired focused validation tests on the exact current source. Once Windows completes and the test provenance is clear, I’ll re-check the same evidence on the current head.
MarcZX10 commented 2026-10-31 00:53:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T00:53:19Z.

Review: APPROVED


Re-checked — new head, looks good

At head 859777b5518ebdebc29ddd20b38fca0792884894 on base e49d43d6256b7c2283539d86b42325a36653275a, the update restores the 50 ms quiet period and removes the title ID from the debt entry; the stop-aware flush processes 4 MiB pieces and leaves the remaining range pending (implementation).

I ran git diff --check, the repository conventions check, and the PR stack/merge preview against the stated base; each passed, and the preview was clean. The test-quality heuristic's unregistered-test warning is a false positive: CMake discovers tests/execution/*.cpp through a CONFIGURE_DEPENDS glob. I did not build or run C++ tests locally. The PR description reports exact-head CTest results, negative controls, and matched performance captures; these are author-provided evidence, not runs I reproduced. Hosted Windows CI is still in progress; Linux and specialized product jobs were skipped.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5720224184 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13621#pullrequestreview-5720224184). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T00:53:19Z. **Review:** APPROVED --- # Re-checked — new head, looks good At head `859777b5518ebdebc29ddd20b38fca0792884894` on base `e49d43d6256b7c2283539d86b42325a36653275a`, the update restores the 50 ms quiet period and removes the title ID from the debt entry; the stop-aware flush processes 4 MiB pieces and leaves the remaining range pending ([implementation](https://github.com/boykopovar/AnyPS5/blob/859777b5518ebdebc29ddd20b38fca0792884894/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L4646-L4662)). I ran `git diff --check`, the repository conventions check, and the PR stack/merge preview against the stated base; each passed, and the preview was clean. The test-quality heuristic's unregistered-test warning is a false positive: CMake discovers `tests/execution/*.cpp` through a `CONFIGURE_DEPENDS` glob. I did not build or run C++ tests locally. The PR description reports exact-head CTest results, negative controls, and matched performance captures; these are author-provided evidence, not runs I reproduced. Hosted Windows CI is still in progress; Linux and specialized product jobs were skipped.
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!13621
No description provided.