perf(shader): stop zeroing mesh window buffer slots at workgroup start #15362

Merged
beardsciences merged 1 commit from upstream-pr/15362 into main 2026-11-03 19:13:11 +00:00
beardsciences commented 2026-11-03 03:07:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by beardsciences on 2026-11-03T03:07:27Z.


What

#12233 moved a mesh program's vector window into a storage buffer on NVIDIA's proprietary driver. Each workgroup slot was zeroed when a workgroup claimed it: every invocation stored 0 to each window entry that a buffer read could see before a write. In MediEvil: Resurrection's clipping geometry program (PPSA07550) that is 192 entries of 312 per invocation.

This drops the zeroing. A register that is read through the buffer before any write in the workgroup now returns whatever an earlier workgroup left in that slot instead of 0. On the console an unwritten VGPR is undefined, so a program cannot depend on either value. The lock, the write-through stores and the stale-read loads are unchanged. The debt entry now says that slots are not cleared; its cold-compile figure is re-measured on a recent main (the old one is from October).

Cost in PPSA07550 gameplay: Dan's Crypt, the first level, with Sir Dan standing at the start after the level's opening movie (no input after the menu; presents and GPU time stay flat in 5 s steps across every window). RTX 3060 Ti, warm caches (one untraced run of each build first), APS5_TRACE_SECONDS=640:60 and no other trace or profile switch, two alternating runs per build. main is 5cb015caaa, the change is this PR's commit 9642972a8b on it.

presents in 60 s frame p50 / p90 / p99 ms GPU busy per present
main, run 1 642 92.6 / 175.6 / 189.6 93.1 ms
change, run 1 1095 54.3 / 70.1 / 107.7 54.5 ms
main, run 2 643 92.4 / 176.2 / 190.6 92.9 ms
change, run 2 1113 53.3 / 83.5 / 105.6 53.5 ms

All four summaries report trace_dropped (the event buffers of the queue worker and the draw committer filled after 10–32 s); totals_full is false for every thread, so the summary numbers are complete. Traces and tools/trace_digest.py output attached.

aps5-trace-5cb015caaaaf-16556.json.gz
aps5-trace-5cb015caaaaf-17036.json.gz
aps5-trace-9642972a8b39-46064.json.gz
aps5-trace-9642972a8b39-50108.json.gz
digest-main-1.txt
digest-main-2.txt
digest-pr-1.txt
digest-pr-2.txt
summary-main-1.txt
summary-main-2.txt
summary-pr-1.txt
summary-pr-2.txt

Summary lines
{"commit":"5cb015caaaaf","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"640: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 640:60","first_present":16623,"ms":60024.409},"presents":642,"frame_ms":{"p50":92.619,"p90":175.625,"p99":189.642,"max":279.423},"gpu_busy_ms_per_present":93.121,"worker_busy_pct":{"queue worker 0x0":92.636},"top_phases_ms_per_frame":{"VideoOut.Flip":92.591,"Driver.Present":92.156,"VideoOut.Flip.present":92.015,"Driver.Present.render_fence_wait":91.369,"Vulkan.Retire":91.368,"Vulkan.Retire.wait":91.356,"Driver.Packet":86.570,"Driver.Packet.rendering_wait":61.495},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":18.026,"events_lost":607636,"totals_full":false},"draw committer":{"events_full_after_s":31.591,"events_lost":233919,"totals_full":false}},"trace":"aps5-trace-5cb015caaaaf-17036.json.gz"}
{"commit":"9642972a8b39","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"640: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 640:60","first_present":17475,"ms":60006.289},"presents":1095,"frame_ms":{"p50":54.333,"p90":70.099,"p99":107.685,"max":144.274},"gpu_busy_ms_per_present":54.457,"worker_busy_pct":{"queue worker 0x0":92.559},"top_phases_ms_per_frame":{"VideoOut.Flip":54.034,"Driver.Present":53.632,"VideoOut.Flip.present":53.587,"Driver.Present.render_fence_wait":52.878,"Vulkan.Retire":52.878,"Vulkan.Retire.wait":52.865,"Driver.Packet":50.679,"Driver.Packet.rendering_wait":25.698},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":10.683,"events_lost":1210776,"totals_full":false},"draw committer":{"events_full_after_s":18.536,"events_lost":584715,"totals_full":false}},"trace":"aps5-trace-9642972a8b39-50108.json.gz"}
{"commit":"5cb015caaaaf","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"640: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 640:60","first_present":16636,"ms":60005.397},"presents":643,"frame_ms":{"p50":92.433,"p90":176.228,"p99":190.624,"max":280.965},"gpu_busy_ms_per_present":92.907,"worker_busy_pct":{"queue worker 0x0":91.572},"top_phases_ms_per_frame":{"VideoOut.Flip":92.219,"Driver.Present":91.665,"VideoOut.Flip.present":91.529,"Vulkan.Retire":90.830,"Driver.Present.render_fence_wait":90.830,"Vulkan.Retire.wait":90.816,"Driver.Packet":85.412,"Driver.Packet.rendering_wait":60.269},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":17.921,"events_lost":613010,"totals_full":false},"draw committer":{"events_full_after_s":31.789,"events_lost":233222,"totals_full":false}},"trace":"aps5-trace-5cb015caaaaf-16556.json.gz"}
{"commit":"9642972a8b39","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"640: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 640:60","first_present":17506,"ms":60066.425},"presents":1113,"frame_ms":{"p50":53.324,"p90":83.516,"p99":105.625,"max":133.533},"gpu_busy_ms_per_present":53.472,"worker_busy_pct":{"queue worker 0x0":92.019},"top_phases_ms_per_frame":{"VideoOut.Flip":52.911,"Driver.Present":52.477,"VideoOut.Flip.present":52.436,"Driver.Present.render_fence_wait":51.756,"Vulkan.Retire":51.756,"Vulkan.Retire.wait":51.744,"Driver.Packet":49.619,"Driver.Packet.rendering_wait":24.934},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":10.380,"events_lost":1238860,"totals_full":false},"draw committer":{"events_full_after_s":18.344,"events_lost":590946,"totals_full":false}},"trace":"aps5-trace-9642972a8b39-46064.json.gz"}

A local replay tool (not part of this PR) that re-runs draws captured from the title's menu through the driver gave the same images for all 58 captured draws with and without the zeroing (on an earlier main, 66e1f7f993 with #7893).

The change edits SpirvModuleEmitter.cpp, so the shader cache's source version changes and cached modules are rebuilt once.

Overlap: 93 open PRs share a file with this one. tools/pr_overlap.py --branch finds no overlap with the 56 it could compare; it could not compare the other 37 because they conflict with main. Checked by hand: #5021, #5371, #6235, #6280, #6412, #6488, #6751, #6924, #7392, #7410, #7684, #8004, #9356, #9387, #10233, #11483, #12790 branch from before #12233 and do not have the mesh window code; #7085, #7223, #7642, #9020, #9183, #9335, #9508, #9748, #9889, #10193, #10867, #11351, #11551, #13486, #13928, #13929, #14217, #14218 merge with this change on their own trees without a conflict (#7642, #9508, #10193, #13928 and #13929 edit lines in SpirvModuleSetup.cpp three lines from the one this PR removes); #12548 adds a debt entry directly above the mesh window entry and #14212 rewraps the whole debt file, so whichever of those lands after this needs a one-line rebase.

Tested

Windows 11, NVIDIA GeForce RTX 3060 Ti, driver 621.01 (32.0.16.2101). main is 5cb015caaa and the change is this PR's commit 9642972a8b on it; every build below is a clean tree at one of those two commits. tools/check_conventions.py --base origin/main passes.

  • Validation, main and the change: ctest --test-dir build -R "mesh|vector_window|relative|window_lane|ngg|provoking" -V with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and VK_LOADER_DEBUG=layer; both logs attached, each starting with its commit. Neither contains was not found but was requested by env var VK_INSTANCE_LAYERS; the loader inserts VK_LAYER_KHRONOS_validation into all 24 Vulkan instances in each, next to the machine's implicit layers (NVIDIA's and the OBS and Overwolf capture hooks), which load in every run here. The layer reports the same 20 messages in both, all WARNING-VkImageSubresourceRange-layerCount-compatibility, and no VUID- error. Both pass 28 of 28.
    validation-main-5cb015caaa.txt
    validation-pr-9642972a8b.txt

  • agc_driver_mesh_vector_window_waves passes with this change (2 of 2) and still fails with APS5_NO_MESH_WINDOW_BUFFER=1 (2 of 2, wrong threads per wave: 0 64 64 64), so it still covers the driver bug; log attached.
    regression-pr-9642972a8b.txt

  • MediEvil: Resurrection (PPSA07550), both builds from boot through the 3D main menu, the New Game movie and Dan's Crypt: the menu and the level render the same.

    Before: main, the spot the traces measure (frames from separate runs of the same builds with APS5_DUMP_FRAMES).
    before-main-dans-crypt

    After: this PR, the same spot.
    after-pr-dans-crypt

    3D main menu, main then this PR (a few game frames apart; only the skeleton's idle pose differs):
    menu-main
    menu-pr

  • Not tested: AMD and Intel GPUs (the path is not taken there), other NVIDIA GPUs and drivers.

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 (32.0.16.2101), Windows 11
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5131241738 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15362). Originally posted by [beardsciences](https://github.com/beardsciences) on 2026-11-03T03:07:27Z. --- ### What #12233 moved a mesh program's vector window into a storage buffer on NVIDIA's proprietary driver. Each workgroup slot was zeroed when a workgroup claimed it: every invocation stored 0 to each window entry that a buffer read could see before a write. In MediEvil: Resurrection's clipping geometry program (PPSA07550) that is 192 entries of 312 per invocation. This drops the zeroing. A register that is read through the buffer before any write in the workgroup now returns whatever an earlier workgroup left in that slot instead of 0. On the console an unwritten VGPR is undefined, so a program cannot depend on either value. The lock, the write-through stores and the stale-read loads are unchanged. The debt entry now says that slots are not cleared; its cold-compile figure is re-measured on a recent `main` (the old one is from October). Cost in PPSA07550 gameplay: Dan's Crypt, the first level, with Sir Dan standing at the start after the level's opening movie (no input after the menu; presents and GPU time stay flat in 5 s steps across every window). RTX 3060 Ti, warm caches (one untraced run of each build first), `APS5_TRACE_SECONDS=640:60` and no other trace or profile switch, two alternating runs per build. `main` is 5cb015caaa, the change is this PR's commit 9642972a8b on it. | | presents in 60 s | frame p50 / p90 / p99 ms | GPU busy per present | |---|---|---|---| | `main`, run 1 | 642 | 92.6 / 175.6 / 189.6 | 93.1 ms | | change, run 1 | 1095 | 54.3 / 70.1 / 107.7 | 54.5 ms | | `main`, run 2 | 643 | 92.4 / 176.2 / 190.6 | 92.9 ms | | change, run 2 | 1113 | 53.3 / 83.5 / 105.6 | 53.5 ms | All four summaries report `trace_dropped` (the event buffers of the queue worker and the draw committer filled after 10–32 s); `totals_full` is false for every thread, so the summary numbers are complete. Traces and `tools/trace_digest.py` output attached. [aps5-trace-5cb015caaaaf-16556.json.gz](https://github.com/user-attachments/files/34301312/aps5-trace-5cb015caaaaf-16556.json.gz) [aps5-trace-5cb015caaaaf-17036.json.gz](https://github.com/user-attachments/files/34301313/aps5-trace-5cb015caaaaf-17036.json.gz) [aps5-trace-9642972a8b39-46064.json.gz](https://github.com/user-attachments/files/34301314/aps5-trace-9642972a8b39-46064.json.gz) [aps5-trace-9642972a8b39-50108.json.gz](https://github.com/user-attachments/files/34301316/aps5-trace-9642972a8b39-50108.json.gz) [digest-main-1.txt](https://github.com/user-attachments/files/34301317/digest-main-1.txt) [digest-main-2.txt](https://github.com/user-attachments/files/34301318/digest-main-2.txt) [digest-pr-1.txt](https://github.com/user-attachments/files/34301319/digest-pr-1.txt) [digest-pr-2.txt](https://github.com/user-attachments/files/34301320/digest-pr-2.txt) [summary-main-1.txt](https://github.com/user-attachments/files/34301321/summary-main-1.txt) [summary-main-2.txt](https://github.com/user-attachments/files/34301322/summary-main-2.txt) [summary-pr-1.txt](https://github.com/user-attachments/files/34301323/summary-pr-1.txt) [summary-pr-2.txt](https://github.com/user-attachments/files/34301324/summary-pr-2.txt) <details><summary>Summary lines</summary> ```json {"commit":"5cb015caaaaf","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"640: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 640:60","first_present":16623,"ms":60024.409},"presents":642,"frame_ms":{"p50":92.619,"p90":175.625,"p99":189.642,"max":279.423},"gpu_busy_ms_per_present":93.121,"worker_busy_pct":{"queue worker 0x0":92.636},"top_phases_ms_per_frame":{"VideoOut.Flip":92.591,"Driver.Present":92.156,"VideoOut.Flip.present":92.015,"Driver.Present.render_fence_wait":91.369,"Vulkan.Retire":91.368,"Vulkan.Retire.wait":91.356,"Driver.Packet":86.570,"Driver.Packet.rendering_wait":61.495},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":18.026,"events_lost":607636,"totals_full":false},"draw committer":{"events_full_after_s":31.591,"events_lost":233919,"totals_full":false}},"trace":"aps5-trace-5cb015caaaaf-17036.json.gz"} {"commit":"9642972a8b39","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"640: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 640:60","first_present":17475,"ms":60006.289},"presents":1095,"frame_ms":{"p50":54.333,"p90":70.099,"p99":107.685,"max":144.274},"gpu_busy_ms_per_present":54.457,"worker_busy_pct":{"queue worker 0x0":92.559},"top_phases_ms_per_frame":{"VideoOut.Flip":54.034,"Driver.Present":53.632,"VideoOut.Flip.present":53.587,"Driver.Present.render_fence_wait":52.878,"Vulkan.Retire":52.878,"Vulkan.Retire.wait":52.865,"Driver.Packet":50.679,"Driver.Packet.rendering_wait":25.698},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":10.683,"events_lost":1210776,"totals_full":false},"draw committer":{"events_full_after_s":18.536,"events_lost":584715,"totals_full":false}},"trace":"aps5-trace-9642972a8b39-50108.json.gz"} {"commit":"5cb015caaaaf","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"640: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 640:60","first_present":16636,"ms":60005.397},"presents":643,"frame_ms":{"p50":92.433,"p90":176.228,"p99":190.624,"max":280.965},"gpu_busy_ms_per_present":92.907,"worker_busy_pct":{"queue worker 0x0":91.572},"top_phases_ms_per_frame":{"VideoOut.Flip":92.219,"Driver.Present":91.665,"VideoOut.Flip.present":91.529,"Vulkan.Retire":90.830,"Driver.Present.render_fence_wait":90.830,"Vulkan.Retire.wait":90.816,"Driver.Packet":85.412,"Driver.Packet.rendering_wait":60.269},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":17.921,"events_lost":613010,"totals_full":false},"draw committer":{"events_full_after_s":31.789,"events_lost":233222,"totals_full":false}},"trace":"aps5-trace-5cb015caaaaf-16556.json.gz"} {"commit":"9642972a8b39","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"640: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 640:60","first_present":17506,"ms":60066.425},"presents":1113,"frame_ms":{"p50":53.324,"p90":83.516,"p99":105.625,"max":133.533},"gpu_busy_ms_per_present":53.472,"worker_busy_pct":{"queue worker 0x0":92.019},"top_phases_ms_per_frame":{"VideoOut.Flip":52.911,"Driver.Present":52.477,"VideoOut.Flip.present":52.436,"Driver.Present.render_fence_wait":51.756,"Vulkan.Retire":51.756,"Vulkan.Retire.wait":51.744,"Driver.Packet":49.619,"Driver.Packet.rendering_wait":24.934},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":10.380,"events_lost":1238860,"totals_full":false},"draw committer":{"events_full_after_s":18.344,"events_lost":590946,"totals_full":false}},"trace":"aps5-trace-9642972a8b39-46064.json.gz"} ``` </details> A local replay tool (not part of this PR) that re-runs draws captured from the title's menu through the driver gave the same images for all 58 captured draws with and without the zeroing (on an earlier `main`, 66e1f7f993 with #7893). The change edits `SpirvModuleEmitter.cpp`, so the shader cache's source version changes and cached modules are rebuilt once. Overlap: 93 open PRs share a file with this one. `tools/pr_overlap.py --branch` finds no overlap with the 56 it could compare; it could not compare the other 37 because they conflict with `main`. Checked by hand: #5021, #5371, #6235, #6280, #6412, #6488, #6751, #6924, #7392, #7410, #7684, #8004, #9356, #9387, #10233, #11483, #12790 branch from before #12233 and do not have the mesh window code; #7085, #7223, #7642, #9020, #9183, #9335, #9508, #9748, #9889, #10193, #10867, #11351, #11551, #13486, #13928, #13929, #14217, #14218 merge with this change on their own trees without a conflict (#7642, #9508, #10193, #13928 and #13929 edit lines in `SpirvModuleSetup.cpp` three lines from the one this PR removes); #12548 adds a debt entry directly above the mesh window entry and #14212 rewraps the whole debt file, so whichever of those lands after this needs a one-line rebase. ### 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, NVIDIA GeForce RTX 3060 Ti, driver 621.01 (32.0.16.2101). `main` is 5cb015caaaaf83f8ee431414ee6a457b5b307d49 and the change is this PR's commit 9642972a8b39dc0c24eb35d08c597961f316ec69 on it; every build below is a clean tree at one of those two commits. `tools/check_conventions.py --base origin/main` passes. - Validation, `main` and the change: `ctest --test-dir build -R "mesh|vector_window|relative|window_lane|ngg|provoking" -V` with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and `VK_LOADER_DEBUG=layer`; both logs attached, each starting with its commit. Neither contains `was not found but was requested by env var VK_INSTANCE_LAYERS`; the loader inserts `VK_LAYER_KHRONOS_validation` into all 24 Vulkan instances in each, next to the machine's implicit layers (NVIDIA's and the OBS and Overwolf capture hooks), which load in every run here. The layer reports the same 20 messages in both, all `WARNING-VkImageSubresourceRange-layerCount-compatibility`, and no `VUID-` error. Both pass 28 of 28. [validation-main-5cb015caaa.txt](https://github.com/user-attachments/files/34301357/validation-main-5cb015caaa.txt) [validation-pr-9642972a8b.txt](https://github.com/user-attachments/files/34301358/validation-pr-9642972a8b.txt) - `agc_driver_mesh_vector_window_waves` passes with this change (2 of 2) and still fails with `APS5_NO_MESH_WINDOW_BUFFER=1` (2 of 2, wrong threads per wave: 0 64 64 64), so it still covers the driver bug; log attached. [regression-pr-9642972a8b.txt](https://github.com/user-attachments/files/34301387/regression-pr-9642972a8b.txt) - MediEvil: Resurrection (PPSA07550), both builds from boot through the 3D main menu, the New Game movie and Dan's Crypt: the menu and the level render the same. **Before:** `main`, the spot the traces measure (frames from separate runs of the same builds with `APS5_DUMP_FRAMES`). <img width="960" height="540" alt="before-main-dans-crypt" src="https://github.com/user-attachments/assets/5ff37318-9a64-4413-9e8b-3452e818f393" /> **After:** this PR, the same spot. <img width="960" height="540" alt="after-pr-dans-crypt" src="https://github.com/user-attachments/assets/65a3690a-85ac-48cb-80ba-a96aa33422e1" /> **3D main menu**, `main` then this PR (a few game frames apart; only the skeleton's idle pose differs): <img width="960" height="540" alt="menu-main" src="https://github.com/user-attachments/assets/339c3904-ad9a-44f4-bedf-9cd246ca412f" /> <img width="960" height="540" alt="menu-pr" src="https://github.com/user-attachments/assets/05f3e45a-a8e8-412c-aba3-f8f459682090" /> - Not tested: AMD and Intel GPUs (the path is not taken there), other NVIDIA GPUs and drivers. ### 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 (32.0.16.2101), Windows 11 - [x] AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-11-03 03:42:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T03:42:12Z.

Review: COMMENTED


Reviewed — no blocking findings

The shader change is internally consistent and its supplied traces reproduce, but approval is withheld while macOS CI and the requested title-output evidence remain outstanding.

What I ran

Reviewed all four changed files at exact head 9642972a8b39dc0c24eb35d08c597961f316ec69, against base f6232fcfda70644495273f6b8dd88cf0603463d6. The stack preview merged cleanly with that base. Environment: Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build or run CTest locally. I downloaded the four attached trace archives, four summary records, four digest outputs, two validation logs, and the regression log. I reran the digests using trace_digest.py from this PR head.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15362
git diff --check f6232fcfda70644495273f6b8dd88cf0603463d6...9642972a8b39dc0c24eb35d08c597961f316ec69
git show 9642972a8b39dc0c24eb35d08c597961f316ec69:tools/trace_digest.py > /tmp/review-15362-artifacts/trace_digest.py
python3 /tmp/review-15362-artifacts/trace_digest.py <trace.json.gz> --summary <summary.jsonl>
diff --strip-trailing-cr <attached-digest.txt> <recomputed-digest.txt>

The four trace/summary pairs were matched by each JSON summary’s trace field. The PR’s trace_digest.py output matched all four attached digest files after normalizing their CRLF line endings. I compared the attached main/change validation logs and inspected the attached negative-control log; these are author-supplied runs, not runs I performed.

git show 9642972a8b39dc0c24eb35d08c597961f316ec69:tools/trace_digest.py > /tmp/review-15362-artifacts/trace_digest.py
python3 /tmp/review-15362-artifacts/trace_digest.py /tmp/review-15362-artifacts/aps5-trace-5cb015caaaaf-17036.json.gz --summary /tmp/review-15362-artifacts/summary-main-1.txt.jsonl > /tmp/review-15362-artifacts/correct-digest-main-1.txt
python3 /tmp/review-15362-artifacts/trace_digest.py /tmp/review-15362-artifacts/aps5-trace-5cb015caaaaf-16556.json.gz --summary /tmp/review-15362-artifacts/summary-main-2.txt.jsonl > /tmp/review-15362-artifacts/correct-digest-main-2.txt
python3 /tmp/review-15362-artifacts/trace_digest.py /tmp/review-15362-artifacts/aps5-trace-9642972a8b39-50108.json.gz --summary /tmp/review-15362-artifacts/summary-pr-1.txt.jsonl > /tmp/review-15362-artifacts/correct-digest-pr-1.txt
python3 /tmp/review-15362-artifacts/trace_digest.py /tmp/review-15362-artifacts/aps5-trace-9642972a8b39-46064.json.gz --summary /tmp/review-15362-artifacts/summary-pr-2.txt.jsonl > /tmp/review-15362-artifacts/correct-digest-pr-2.txt
diff --strip-trailing-cr -u /tmp/review-15362-artifacts/digest-main-1.txt /tmp/review-15362-artifacts/correct-digest-main-1.txt
diff --strip-trailing-cr -u /tmp/review-15362-artifacts/digest-main-2.txt /tmp/review-15362-artifacts/correct-digest-main-2.txt
diff --strip-trailing-cr -u /tmp/review-15362-artifacts/digest-pr-1.txt /tmp/review-15362-artifacts/correct-digest-pr-1.txt
diff --strip-trailing-cr -u /tmp/review-15362-artifacts/digest-pr-2.txt /tmp/review-15362-artifacts/correct-digest-pr-2.txt

Results

Check Result Note
Source review passed No concrete source blocker found
Patch and conventions passed Required PR template is complete
Stack preview passed Clean against stated base
Summary records and digests passed Four records valid; all digests reproduce
Validation log comparison passed Warning lines identical; no VUID identifiers
Negative-control test not run Author’s attached log shows the buffer-disabled failure
Ubuntu/Windows relinker and ASan CI passed Exact PR head
macOS relinker CI not run Both architecture jobs pending
Local build and CTest not run Not built in this review
Commands and unedited output

git diff --check ... exited 0 with no output.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15362 concluded checks failed because the optional test-quality helper is absent from its isolated snapshot. Its relevant table:

| Check | Status | Command / reason |
|---|---|---|
| build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` |
| diff_check | passed | `git diff --check f6232fcfda70644495273f6b8dd88cf0603463d6...9642972a8b39dc0c24eb35d08c597961f316ec69` |
| conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base f6232fcfda70644495273f6b8dd88cf0603463d6 --head 9642972a8b39dc0c24eb35d08c597961f316ec69 --title perf(shader): stop zeroing mesh window buffer slots at workgroup start --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15362-9642972a8b39/pr-body.md` |
| changed_export_abi_audit | not_applicable | `No changed source or public header under core/libs/prx.` |
| python_syntax | not_applicable | `No changed Python implementation files.` |
| related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` |
| python_test_registration | not_applicable | `No changed test_*.py files.` |
| live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15362 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15362-9642972a8b39/stack` |
| build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` |
| test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15362-9642972a8b39/head-9642972a8b39-693027a4/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15362-9642972a8b39/head-9642972a8b39-693027a4 --json core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp docs/dev/debt/shader.md` |
| negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` |

Unedited helper error:

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15362-9642972a8b39/head-9642972a8b39-693027a4/tools/pr_test_quality.py': [Errno 2] No such file or directory

Artifact-check output:

summary lines: 4 valid JSON records
VUID identifiers: 0
validation warning lines identical
4 digests reproduced (CRLF normalized)

Clean stack-preview output:

Target branch tip: `f6232fcfda70644495273f6b8dd88cf0603463d6`
All heads unchanged: **True**
PR #15362: **clean** against current base; head `9642972a8b39dc0c24eb35d08c597961f316ec69`
No declared PR dependencies were found in the target PR chain.

Hosted checks at final refresh:

relinker (ubuntu-latest, g++) pass
relinker (windows-latest, g++) pass
relinker-asan pass
relinker (macos-latest, clang++) pending
relinker (macos-latest, clang++, x86_64) pending
conventions pass
eligibility pass
intake pass
labels pass
linux skipping
windows skipping
edge-watch skipping
register-context skipping
write-watch skipping

Negative control

Assertion Change used Result
agc_driver_mesh_vector_window_waves detects the broken array path Author set APS5_NO_MESH_WINDOW_BUFFER=1 Attached log reports failure: wrong threads per wave 0 64 64 64; I read the log but did not rerun it

Findings

Blocking

None found in the source-level review.

Non-blocking

The prior reviewer request for same-head screenshots of the 3D menu and measured gameplay remains unanswered (discussion). The existing gameplay captures and GPU test are useful, but they do not provide those requested visual comparisons against the earlier menu regression. I could not independently run the title here.

Sources

Not verified

I did not build AnyPS5, run the GPU CTest, replay the game, or independently repeat the negative control. Both macOS relinker jobs were pending. The traces report dropped event buffers; the summary records say totals_full is false, and the digest output marks the event-level trace summaries incomplete. The performance summary statistics themselves were reproduced from the attached records and traces.

To get this to a good state

Please add the requested same-head screenshots of the affected menu and measured gameplay spot, and let both macOS relinker jobs finish. On any new head I will rerun the precheck, inspect the complete diff, and verify the attached artifacts against that head; after required CI completes I can reconsider approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5747003396 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15362#pullrequestreview-5747003396). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T03:42:12Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The shader change is internally consistent and its supplied traces reproduce, but approval is withheld while macOS CI and the requested title-output evidence remain outstanding. ## What I ran Reviewed all four changed files at exact head `9642972a8b39dc0c24eb35d08c597961f316ec69`, against base `f6232fcfda70644495273f6b8dd88cf0603463d6`. The stack preview merged cleanly with that base. Environment: Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build or run CTest locally. I downloaded the four attached trace archives, four summary records, four digest outputs, two validation logs, and the regression log. I reran the digests using `trace_digest.py` from this PR head. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15362 git diff --check f6232fcfda70644495273f6b8dd88cf0603463d6...9642972a8b39dc0c24eb35d08c597961f316ec69 git show 9642972a8b39dc0c24eb35d08c597961f316ec69:tools/trace_digest.py > /tmp/review-15362-artifacts/trace_digest.py python3 /tmp/review-15362-artifacts/trace_digest.py <trace.json.gz> --summary <summary.jsonl> diff --strip-trailing-cr <attached-digest.txt> <recomputed-digest.txt> ``` The four trace/summary pairs were matched by each JSON summary’s `trace` field. The PR’s `trace_digest.py` output matched all four attached digest files after normalizing their CRLF line endings. I compared the attached main/change validation logs and inspected the attached negative-control log; these are author-supplied runs, not runs I performed. ```sh git show 9642972a8b39dc0c24eb35d08c597961f316ec69:tools/trace_digest.py > /tmp/review-15362-artifacts/trace_digest.py python3 /tmp/review-15362-artifacts/trace_digest.py /tmp/review-15362-artifacts/aps5-trace-5cb015caaaaf-17036.json.gz --summary /tmp/review-15362-artifacts/summary-main-1.txt.jsonl > /tmp/review-15362-artifacts/correct-digest-main-1.txt python3 /tmp/review-15362-artifacts/trace_digest.py /tmp/review-15362-artifacts/aps5-trace-5cb015caaaaf-16556.json.gz --summary /tmp/review-15362-artifacts/summary-main-2.txt.jsonl > /tmp/review-15362-artifacts/correct-digest-main-2.txt python3 /tmp/review-15362-artifacts/trace_digest.py /tmp/review-15362-artifacts/aps5-trace-9642972a8b39-50108.json.gz --summary /tmp/review-15362-artifacts/summary-pr-1.txt.jsonl > /tmp/review-15362-artifacts/correct-digest-pr-1.txt python3 /tmp/review-15362-artifacts/trace_digest.py /tmp/review-15362-artifacts/aps5-trace-9642972a8b39-46064.json.gz --summary /tmp/review-15362-artifacts/summary-pr-2.txt.jsonl > /tmp/review-15362-artifacts/correct-digest-pr-2.txt diff --strip-trailing-cr -u /tmp/review-15362-artifacts/digest-main-1.txt /tmp/review-15362-artifacts/correct-digest-main-1.txt diff --strip-trailing-cr -u /tmp/review-15362-artifacts/digest-main-2.txt /tmp/review-15362-artifacts/correct-digest-main-2.txt diff --strip-trailing-cr -u /tmp/review-15362-artifacts/digest-pr-1.txt /tmp/review-15362-artifacts/correct-digest-pr-1.txt diff --strip-trailing-cr -u /tmp/review-15362-artifacts/digest-pr-2.txt /tmp/review-15362-artifacts/correct-digest-pr-2.txt ``` ## Results | Check | Result | Note | |---|---|---| | Source review | passed | No concrete source blocker found | | Patch and conventions | passed | Required PR template is complete | | Stack preview | passed | Clean against stated base | | Summary records and digests | passed | Four records valid; all digests reproduce | | Validation log comparison | passed | Warning lines identical; no VUID identifiers | | Negative-control test | not run | Author’s attached log shows the buffer-disabled failure | | Ubuntu/Windows relinker and ASan CI | passed | Exact PR head | | macOS relinker CI | not run | Both architecture jobs pending | | Local build and CTest | not run | Not built in this review | <details><summary>Commands and unedited output</summary> `git diff --check ...` exited 0 with no output. `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15362` concluded `checks failed` because the optional test-quality helper is absent from its isolated snapshot. Its relevant table: ```text | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check f6232fcfda70644495273f6b8dd88cf0603463d6...9642972a8b39dc0c24eb35d08c597961f316ec69` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base f6232fcfda70644495273f6b8dd88cf0603463d6 --head 9642972a8b39dc0c24eb35d08c597961f316ec69 --title perf(shader): stop zeroing mesh window buffer slots at workgroup start --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15362-9642972a8b39/pr-body.md` | | changed_export_abi_audit | not_applicable | `No changed source or public header under core/libs/prx.` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15362 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15362-9642972a8b39/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15362-9642972a8b39/head-9642972a8b39-693027a4/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15362-9642972a8b39/head-9642972a8b39-693027a4 --json core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp docs/dev/debt/shader.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | ``` Unedited helper error: ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15362-9642972a8b39/head-9642972a8b39-693027a4/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` Artifact-check output: ```text summary lines: 4 valid JSON records VUID identifiers: 0 validation warning lines identical 4 digests reproduced (CRLF normalized) ``` Clean stack-preview output: ```text Target branch tip: `f6232fcfda70644495273f6b8dd88cf0603463d6` All heads unchanged: **True** PR #15362: **clean** against current base; head `9642972a8b39dc0c24eb35d08c597961f316ec69` No declared PR dependencies were found in the target PR chain. ``` Hosted checks at final refresh: ```text relinker (ubuntu-latest, g++) pass relinker (windows-latest, g++) pass relinker-asan pass relinker (macos-latest, clang++) pending relinker (macos-latest, clang++, x86_64) pending conventions pass eligibility pass intake pass labels pass linux skipping windows skipping edge-watch skipping register-context skipping write-watch skipping ``` </details> ## Negative control | Assertion | Change used | Result | |---|---|---| | `agc_driver_mesh_vector_window_waves` detects the broken array path | Author set `APS5_NO_MESH_WINDOW_BUFFER=1` | Attached log reports failure: wrong threads per wave `0 64 64 64`; I read the log but did not rerun it | ## Findings ### Blocking None found in the source-level review. ### Non-blocking The prior reviewer request for same-head screenshots of the 3D menu and measured gameplay remains unanswered ([discussion](https://github.com/boykopovar/AnyPS5/pull/15362#issuecomment-6594764466)). The existing gameplay captures and GPU test are useful, but they do not provide those requested visual comparisons against the earlier menu regression. I could not independently run the title here. ## Sources - [Removed per-workgroup zero stores](https://github.com/boykopovar/AnyPS5/blob/9642972a8b39dc0c24eb35d08c597961f316ec69/core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp#L1290-L1318) - [Mesh-window stale-read and liveness analysis](https://github.com/boykopovar/AnyPS5/blob/9642972a8b39dc0c24eb35d08c597961f316ec69/core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp#L216-L307) - [Direct and buffer-backed vector-window read/write selection](https://github.com/boykopovar/AnyPS5/blob/9642972a8b39dc0c24eb35d08c597961f316ec69/core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterRegisters.cpp#L124-L165) - [Mesh vector-window GPU regression test](https://github.com/boykopovar/AnyPS5/blob/9642972a8b39dc0c24eb35d08c597961f316ec69/core/libs/prx/libSceAgcDriver/tests/execution/MeshVectorWindowWaves.cpp#L20-L30) ## Not verified I did not build AnyPS5, run the GPU CTest, replay the game, or independently repeat the negative control. Both macOS relinker jobs were pending. The traces report dropped event buffers; the summary records say `totals_full` is false, and the digest output marks the event-level trace summaries incomplete. The performance summary statistics themselves were reproduced from the attached records and traces. ## To get this to a good state Please add the requested same-head screenshots of the affected menu and measured gameplay spot, and let both macOS relinker jobs finish. On any new head I will rerun the precheck, inspect the complete diff, and verify the attached artifacts against that head; after required CI completes I can reconsider approval.
MarcZX10 commented 2026-11-03 04:52:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T04:52:48Z.

Review: COMMENTED


Re-checked — same head, menu evidence still missing

At head 9642972a8b39dc0c24eb35d08c597961f316ec69, the gameplay screenshot pair is now attached and the required CI has completed, but the previously requested 3D-menu comparison is still absent, so I am withholding approval.

What I ran

The earlier full review covered all four changed files at head 9642972a8b39dc0c24eb35d08c597961f316ec69 against base f6232fcfda70644495273f6b8dd88cf0603463d6, including the no-build precheck, source review, trace/summary matching, four trace_digest.py reproductions, and comparison of the attached Vulkan validation logs. This follow-up checked the updated PR description, the exact head and current hosted statuses. I did not run the game or build locally.

gh api repos/boykopovar/AnyPS5/pulls/15362 --jq '{state,head:.head.sha,base:.base.sha,updated_at}'
gh api repos/boykopovar/AnyPS5/issues/15362/comments --paginate --jq '.[] | select(.user.login=="beardsciences" or .user.login=="oneandonlydean") | {user:.user.login,created_at,body}'
gh pr checks 15362 -R boykopovar/AnyPS5

Results

Check Result Note
Source review and diff checks passed Earlier full review; the head is unchanged.
Performance summaries and digests passed Four trace digests reproduced in the earlier review.
Vulkan validation comparison passed Earlier review found no VUIDs and identical warning lines.
Hosted applicable checks passed Relinker matrix, ASan, conventions and policy checks completed.
Local build and gameplay run not run No local build or title run.
3D-menu visual comparison not run No same-head menu screenshots are attached.
Current hosted check output
edge-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384927
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384750
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384198
windows	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384389
relinker (macos-latest, clang++, x86_64)	pass	7m4s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701382965
relinker (windows-latest, g++)	pass	6m12s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383004
relinker-asan	pass	2m52s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383027
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384778
conventions	pass	30s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289818/job/125701330234
eligibility	pass	8s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701328939
intake	pass	23s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289745/job/125701330126
labels	pass	10s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289741/job/125701330230
relinker (macos-latest, clang++)	pass	5m51s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701382978
relinker (ubuntu-latest, g++)	pass	4m44s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383096

Negative control

Assertion Change to code under test Did the new test fail?
agc_driver_mesh_vector_window_waves detects the broken array path The author reports setting APS5_NO_MESH_WINDOW_BUFFER=1; I did not rerun it. The attached author log reports the expected wrong-threads-per-wave failure.

Findings

Blocking

None confirmed in the reviewed source or attached performance evidence.

Non-blocking

The earlier reviewer asked for a screenshot of the 3D menu where the zeroing regression was visible, plus a screenshot of the measured gameplay spot. The current description adds before/after images of the Dan's Crypt gameplay spot, addressing the latter. It still has no image of the 3D menu on either build. Since the PR describes this title-specific path as reaching uninitialized mesh-window values, that menu result remains unverified here; I am not approving until the requested menu evidence is available.

Sources

Not verified

I did not replay MediEvil or independently run the Vulkan tests or negative control. The attached title captures and test logs are author-supplied. The trace summaries report dropped event buffers, although totals_full is false; the earlier review reproduced all four digest files from the attached traces and summaries.

To get this to a good state

Please add a same-head before/after capture of the 3D menu on the stated NVIDIA machine, alongside the gameplay screenshots. I will review those images and refresh the head and hosted checks before deciding whether approval is warranted.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5747415082 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15362#pullrequestreview-5747415082). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T04:52:48Z. **Review:** COMMENTED --- # Re-checked — same head, menu evidence still missing At head `9642972a8b39dc0c24eb35d08c597961f316ec69`, the gameplay screenshot pair is now attached and the required CI has completed, but the previously requested 3D-menu comparison is still absent, so I am withholding approval. ## What I ran The earlier full review covered all four changed files at head `9642972a8b39dc0c24eb35d08c597961f316ec69` against base `f6232fcfda70644495273f6b8dd88cf0603463d6`, including the no-build precheck, source review, trace/summary matching, four `trace_digest.py` reproductions, and comparison of the attached Vulkan validation logs. This follow-up checked the updated PR description, the exact head and current hosted statuses. I did not run the game or build locally. ```sh gh api repos/boykopovar/AnyPS5/pulls/15362 --jq '{state,head:.head.sha,base:.base.sha,updated_at}' gh api repos/boykopovar/AnyPS5/issues/15362/comments --paginate --jq '.[] | select(.user.login=="beardsciences" or .user.login=="oneandonlydean") | {user:.user.login,created_at,body}' gh pr checks 15362 -R boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Source review and diff checks | passed | Earlier full review; the head is unchanged. | | Performance summaries and digests | passed | Four trace digests reproduced in the earlier review. | | Vulkan validation comparison | passed | Earlier review found no VUIDs and identical warning lines. | | Hosted applicable checks | passed | Relinker matrix, ASan, conventions and policy checks completed. | | Local build and gameplay run | not run | No local build or title run. | | 3D-menu visual comparison | not run | No same-head menu screenshots are attached. | <details> <summary>Current hosted check output</summary> ```text edge-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384927 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384750 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384198 windows skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384389 relinker (macos-latest, clang++, x86_64) pass 7m4s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701382965 relinker (windows-latest, g++) pass 6m12s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383004 relinker-asan pass 2m52s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383027 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384778 conventions pass 30s https://github.com/boykopovar/AnyPS5/actions/runs/41570289818/job/125701330234 eligibility pass 8s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701328939 intake pass 23s https://github.com/boykopovar/AnyPS5/actions/runs/41570289745/job/125701330126 labels pass 10s https://github.com/boykopovar/AnyPS5/actions/runs/41570289741/job/125701330230 relinker (macos-latest, clang++) pass 5m51s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701382978 relinker (ubuntu-latest, g++) pass 4m44s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383096 ``` </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | `agc_driver_mesh_vector_window_waves` detects the broken array path | The author reports setting `APS5_NO_MESH_WINDOW_BUFFER=1`; I did not rerun it. | The attached author log reports the expected wrong-threads-per-wave failure. | ## Findings ### Blocking None confirmed in the reviewed source or attached performance evidence. ### Non-blocking The earlier reviewer asked for a screenshot of the 3D menu where the zeroing regression was visible, plus a screenshot of the measured gameplay spot. The current description adds before/after images of the Dan's Crypt gameplay spot, addressing the latter. It still has no image of the 3D menu on either build. Since the PR describes this title-specific path as reaching uninitialized mesh-window values, that menu result remains unverified here; I am not approving until the requested menu evidence is available. ## Sources - [Earlier screenshot request](https://github.com/boykopovar/AnyPS5/pull/15362#issuecomment-6594764466) - [Main-build Dan's Crypt gameplay image](https://github.com/user-attachments/assets/5ff37318-9a64-4413-9e8b-3452e818f393) - [PR-build Dan's Crypt gameplay image](https://github.com/user-attachments/assets/65a3690a-85ac-48cb-80ba-a96aa33422e1) - [Removed per-workgroup zero stores at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/9642972a8b39dc0c24eb35d08c597961f316ec69/core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleEmitter.cpp#L1290-L1318) - [Mesh-window read/write selection at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/9642972a8b39dc0c24eb35d08c597961f316ec69/core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterRegisters.cpp#L124-L165) ## Not verified I did not replay MediEvil or independently run the Vulkan tests or negative control. The attached title captures and test logs are author-supplied. The trace summaries report dropped event buffers, although `totals_full` is false; the earlier review reproduced all four digest files from the attached traces and summaries. ## To get this to a good state Please add a same-head before/after capture of the 3D menu on the stated NVIDIA machine, alongside the gameplay screenshots. I will review those images and refresh the head and hosted checks before deciding whether approval is warranted.
MarcZX10 commented 2026-11-03 05:19:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T05:19:54Z.

Review: APPROVED


Re-checked — same head, approved

The author added the requested same-head menu comparison and fly-through captures; the visible menu difference is limited to the animated character, and the NVIDIA GPU report also includes a passing mesh-window regression test.

What I ran

Confirmed the PR remains open at head 9642972a8b39dc0c24eb35d08c597961f316ec69, with recorded base f6232fcfda70644495273f6b8dd88cf0603463d6. My previous review at this exact head covered the full source diff, performance summaries, four trace digests and Vulkan validation logs. This follow-up downloaded and visually inspected the new image attachments, checked current hosted statuses, and inspected the relevant test line in the NVIDIA report's raw log. I did not build locally or replay the game. Environment: Debian Linux 6.1 x86_64, Python 3.11.2, GCC 12.2.0.

gh api repos/boykopovar/AnyPS5/pulls/15362 --jq '{state:.state,head:.head.sha,base:.base.sha,requested_reviewers:[.requested_reviewers[].login]}'
gh pr checks 15362 -R boykopovar/AnyPS5
curl -fsSL https://github.com/user-attachments/assets/339c3904-ad9a-44f4-bedf-9cd246ca412f -o /tmp/15362-menu-main.png
curl -fsSL https://github.com/user-attachments/assets/05f3e45a-a8e8-412c-aba3-f8f459682090 -o /tmp/15362-menu-pr.png
curl -fsSL https://github.com/user-attachments/assets/0e12ffb3-7c63-4dec-8581-45a31b70be9e -o /tmp/15362-menu-diff.png
curl -fsSL https://github.com/user-attachments/assets/8fc0ccfb-a91a-48d9-a5f7-da738ff49f8d -o /tmp/15362-menu-flythrough.png
gh api gists/79760e560908e6eb485eadf82c4a508c > /tmp/15362-nvidia-gist.json
python3 - <<'PY'
import json
from pathlib import Path
x=json.loads(Path('/tmp/15362-nvidia-gist.json').read_text())
Path('/tmp/15362-09-tests.log').write_text(x['files']['09-tests.log']['content'])
PY
grep -n 'agc_driver_mesh_vector_window_waves' /tmp/15362-09-tests.log

Results

Check Result Note
Source review and performance evidence passed Prior full review found no code blocker and reproduced the four trace digests.
Requested menu evidence passed Main and PR menu images match apart from the character's animation pose; PR fly-through frames show no visible spikes or converging triangles.
NVIDIA GPU regression test passed The automated report's raw log shows agc_driver_mesh_vector_window_waves passed, 1/1.
Applicable hosted checks passed Conventions, intake, labels, policy, relinker matrix and ASan passed.
Local build, title replay and console not run Evidence is author-supplied; I did not build or run the game here.
Other hosted jobs not run Upstream Linux, Windows and specialized jobs were skipped.
Raw status and test output
{"base":"f6232fcfda70644495273f6b8dd88cf0603463d6","head":"9642972a8b39dc0c24eb35d08c597961f316ec69","requested_reviewers":["MarcZX10"],"state":"open"}
886:        Start 1310: agc_driver_mesh_vector_window_waves
897:396/927 Test #1310: agc_driver_mesh_vector_window_waves ............................................   Passed    6.73 sec
edge-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384927
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384750
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384198
windows	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384389
relinker (macos-latest, clang++, x86_64)	pass	7m4s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701382965
relinker (windows-latest, g++)	pass	6m12s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383004
relinker-asan	pass	2m52s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383027
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384778
conventions	pass	30s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289818/job/125701330234
eligibility	pass	8s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701328939
intake	pass	23s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289745/job/125701330126
labels	pass	10s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289741/job/125701330230
relinker (macos-latest, clang++)	pass	5m51s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701382978
relinker (ubuntu-latest, g++)	pass	4m44s	https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383096

Negative control

The earlier review records the author's reported APS5_NO_MESH_WINDOW_BUFFER=1 control, which makes agc_driver_mesh_vector_window_waves fail with the expected wrong-threads-per-wave result; I did not rerun that control. The new NVIDIA report confirms the test passes with this PR enabled.

Findings

Blocking

None found in the reviewed source or the new same-head visual and GPU evidence.

Non-blocking

No PS5 console run was provided; the attached captures and GPU runs are host-side evidence.

Sources

Not verified

No local build, game replay, PS5 console test or independent negative control was run. The automated GPU report, Vulkan validation results and title screenshots were supplied by contributors; upstream Linux, Windows and specialized jobs are skipped.

To get this to a good state

No additional change is requested at this head. I will recheck the complete diff and new evidence if the head changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5747569241 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15362#pullrequestreview-5747569241). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T05:19:54Z. **Review:** APPROVED --- # Re-checked — same head, approved The author added the requested same-head menu comparison and fly-through captures; the visible menu difference is limited to the animated character, and the NVIDIA GPU report also includes a passing mesh-window regression test. ## What I ran Confirmed the PR remains open at head `9642972a8b39dc0c24eb35d08c597961f316ec69`, with recorded base `f6232fcfda70644495273f6b8dd88cf0603463d6`. My previous review at this exact head covered the full source diff, performance summaries, four trace digests and Vulkan validation logs. This follow-up downloaded and visually inspected the new image attachments, checked current hosted statuses, and inspected the relevant test line in the NVIDIA report's raw log. I did not build locally or replay the game. Environment: Debian Linux 6.1 x86_64, Python 3.11.2, GCC 12.2.0. ```sh gh api repos/boykopovar/AnyPS5/pulls/15362 --jq '{state:.state,head:.head.sha,base:.base.sha,requested_reviewers:[.requested_reviewers[].login]}' gh pr checks 15362 -R boykopovar/AnyPS5 curl -fsSL https://github.com/user-attachments/assets/339c3904-ad9a-44f4-bedf-9cd246ca412f -o /tmp/15362-menu-main.png curl -fsSL https://github.com/user-attachments/assets/05f3e45a-a8e8-412c-aba3-f8f459682090 -o /tmp/15362-menu-pr.png curl -fsSL https://github.com/user-attachments/assets/0e12ffb3-7c63-4dec-8581-45a31b70be9e -o /tmp/15362-menu-diff.png curl -fsSL https://github.com/user-attachments/assets/8fc0ccfb-a91a-48d9-a5f7-da738ff49f8d -o /tmp/15362-menu-flythrough.png gh api gists/79760e560908e6eb485eadf82c4a508c > /tmp/15362-nvidia-gist.json python3 - <<'PY' import json from pathlib import Path x=json.loads(Path('/tmp/15362-nvidia-gist.json').read_text()) Path('/tmp/15362-09-tests.log').write_text(x['files']['09-tests.log']['content']) PY grep -n 'agc_driver_mesh_vector_window_waves' /tmp/15362-09-tests.log ``` ## Results | Check | Result | Note | |---|---|---| | Source review and performance evidence | passed | Prior full review found no code blocker and reproduced the four trace digests. | | Requested menu evidence | passed | Main and PR menu images match apart from the character's animation pose; PR fly-through frames show no visible spikes or converging triangles. | | NVIDIA GPU regression test | passed | The automated report's raw log shows `agc_driver_mesh_vector_window_waves` passed, 1/1. | | Applicable hosted checks | passed | Conventions, intake, labels, policy, relinker matrix and ASan passed. | | Local build, title replay and console | not run | Evidence is author-supplied; I did not build or run the game here. | | Other hosted jobs | not run | Upstream Linux, Windows and specialized jobs were skipped. | <details><summary>Raw status and test output</summary> ```text {"base":"f6232fcfda70644495273f6b8dd88cf0603463d6","head":"9642972a8b39dc0c24eb35d08c597961f316ec69","requested_reviewers":["MarcZX10"],"state":"open"} ``` ```text 886: Start 1310: agc_driver_mesh_vector_window_waves 897:396/927 Test #1310: agc_driver_mesh_vector_window_waves ............................................ Passed 6.73 sec ``` ```text edge-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384927 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384750 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384198 windows skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384389 relinker (macos-latest, clang++, x86_64) pass 7m4s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701382965 relinker (windows-latest, g++) pass 6m12s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383004 relinker-asan pass 2m52s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383027 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701384778 conventions pass 30s https://github.com/boykopovar/AnyPS5/actions/runs/41570289818/job/125701330234 eligibility pass 8s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701328939 intake pass 23s https://github.com/boykopovar/AnyPS5/actions/runs/41570289745/job/125701330126 labels pass 10s https://github.com/boykopovar/AnyPS5/actions/runs/41570289741/job/125701330230 relinker (macos-latest, clang++) pass 5m51s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701382978 relinker (ubuntu-latest, g++) pass 4m44s https://github.com/boykopovar/AnyPS5/actions/runs/41570289860/job/125701383096 ``` </details> ## Negative control The earlier review records the author's reported `APS5_NO_MESH_WINDOW_BUFFER=1` control, which makes `agc_driver_mesh_vector_window_waves` fail with the expected wrong-threads-per-wave result; I did not rerun that control. The new NVIDIA report confirms the test passes with this PR enabled. ## Findings ### Blocking None found in the reviewed source or the new same-head visual and GPU evidence. ### Non-blocking No PS5 console run was provided; the attached captures and GPU runs are host-side evidence. ## Sources - [Author's same-head menu and gameplay captures](https://github.com/boykopovar/AnyPS5/pull/15362#issuecomment-6596015924) - [Automated NVIDIA GPU report and logs](https://github.com/boykopovar/AnyPS5/pull/15362#issuecomment-6596074416) - [Earlier request for menu evidence](https://github.com/boykopovar/AnyPS5/pull/15362#issuecomment-6594764466) - [Removed per-workgroup zero stores at this head](https://github.com/boykopovar/AnyPS5/blob/9642972a8b39dc0c24eb35d08c597961f316ec69/core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleEmitter.cpp#L1290-L1318) - [Mesh-window read/write selection at this head](https://github.com/boykopovar/AnyPS5/blob/9642972a8b39dc0c24eb35d08c597961f316ec69/core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterRegisters.cpp#L124-L165) - [Main and PR menu images](https://github.com/user-attachments/assets/339c3904-ad9a-44f4-bedf-9cd246ca412f), [pixel-difference image](https://github.com/user-attachments/assets/0e12ffb3-7c63-4dec-8581-45a31b70be9e), and [PR fly-through frames](https://github.com/user-attachments/assets/8fc0ccfb-a91a-48d9-a5f7-da738ff49f8d) ## Not verified No local build, game replay, PS5 console test or independent negative control was run. The automated GPU report, Vulkan validation results and title screenshots were supplied by contributors; upstream Linux, Windows and specialized jobs are skipped. ## To get this to a good state No additional change is requested at this head. I will recheck the complete diff and new evidence if the head changes.
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!15362
No description provided.