fix(shader): keep mesh register windows out of local memory on NVIDIA #12233

Merged
beardsciences merged 1 commit from upstream-pr/12233 into main 2026-10-30 01:31:37 +00:00
beardsciences commented 2026-10-28 04:08:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by beardsciences on 2026-10-28T04:08:40Z.


What

On NVIDIA's proprietary driver, function arrays that the driver keeps in local memory return wrong values in subgroups 1–3 of a mesh workgroup when they are read under a data-dependent branch. Subgroup 0 is correct, and the same reads without a branch are correct. A wave64 geometry program that uses relative VGPR addressing (v_movrels/v_movreld) keeps its registers in the vector window, which is two such arrays per invocation, so waves 1–3 of a 256-thread NGG group lose register writes.

  • Measured with standalone GLSL mesh shaders (128 invocations, two arrays of 64 or more dwords): subgroups 1–3 fail every run. Uniform or per-invocation indices, with or without barriers, and function or module scope all fail. A branchless check of the same arrays passes, as do arrays of 48 dwords.
  • This broke the clipping geometry program of Sony's PS5 PSP emulator in MediEvil: Resurrection (PPSA07550). Replaying a captured menu draw on the host, the empty waves lost v3 = v22 << 2 in the setup block. They never cleared their candidate primitive slots, read 0 there, and wrote 76 degenerate triangles over wave 0's 6, so the 3D menu drew spikes.

On that driver a mesh program's window now lives in a storage buffer:

  • A 64 MiB device-local pool at descriptor set 3 holds 256 workgroup slots of 65536 dwords. Invocation 0 claims a slot through a per-slot lock (ticket counter plus compare-exchange), and releases it after the final barrier. The pool exists only on NVIDIA's proprietary driver. It is created before the first draw that uses it records anything, and its header is zeroed in a batch of its own that is submitted and waited for; the pool is published only after that wait, and a failure releases it so the next draw creates it again.
  • Direct register accesses keep one function variable per register:
    • A direct store also writes the buffer when a buffer read can see it (backward liveness).
    • Relative reads load the buffer; relative writes store only to it.
    • A direct read that may follow a relative write loads the buffer and refreshes the variable (forward analysis), so relative writes need no switch over the window.
  • A buffer entry is zeroed only when a buffer read can see it before a write.
  • APS5_NO_MESH_WINDOW_BUFFER=1 keeps the arrays. Other drivers are unchanged.

Cost, measured in PPSA07550's 3D main menu with #7893 (needed to reach it), RTX 3060 Ti, warm caches, APS5_TRACE_SECONDS=260:60 and no other trace or profile switch, two alternating runs per build. main is a59fd393ec6d (3a2b919816 + #7893 76bea988bf), which draws the corrupt scene; the change is a6abcf9de1ec (this PR + the same #7893 head):

presents in 60 s frame p50 / p90 / p99 ms GPU busy per present
main + #7893, run 1 1654 38.0 / 43.3 / 52.2 24.2 ms
change + #7893, run 1 1280 36.4 / 77.9 / 110.7 42.9 ms
main + #7893, run 2 1646 38.0 / 43.2 / 53.7 24.4 ms
change + #7893, run 2 1284 36.2 / 76.2 / 116.0 42.9 ms

The window buffer costs about 18–19 ms of GPU time per present in this menu. All four summaries report trace_dropped (the event buffers of the queue worker and the draw committer filled after 9–38 s); totals_full is false for every thread, so the summary numbers are complete. Traces and tools/trace_digest.py output attached.

Only mesh programs that keep a vector window for relative register addressing (v_movrels/v_movreld) take this path, and only on NVIDIA's proprietary driver; every other shader, and every other driver, is compiled as on main. The faster main frames above render the corrupt scene, so the cost buys correct output rather than slowing down working output.

Summary lines
{"commit":"a59fd393ec6d","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"260: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 260:60","first_present":6193,"ms":60012.311},"presents":1654,"frame_ms":{"p50":38.023,"p90":43.264,"p99":52.195,"max":69.873},"gpu_busy_ms_per_present":24.174,"worker_busy_pct":{"queue worker 0x0":47.762},"top_phases_ms_per_frame":{"VideoOut.Flip":18.221,"Driver.Present":18.085,"VideoOut.Flip.present":18.073,"Driver.Present.render_fence_wait":17.454,"Vulkan.Retire":17.453,"Vulkan.Retire.wait":17.447,"Driver.Packet":17.321,"Graphics.Draw":15.833},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":9.625,"events_lost":940448,"totals_full":false},"draw committer":{"events_full_after_s":24.553,"events_lost":339616,"totals_full":false}},"trace":"aps5-trace-a59fd393ec6d-23000.json.gz"}
{"commit":"a6abcf9de1ec","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"260: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 260:60","first_present":5638,"ms":60026.885},"presents":1280,"frame_ms":{"p50":36.386,"p90":77.920,"p99":110.653,"max":183.849},"gpu_busy_ms_per_present":42.881,"worker_busy_pct":{"queue worker 0x0":92.287},"top_phases_ms_per_frame":{"Driver.Packet":43.262,"Graphics.Draw":41.560,"Driver.Packet.draw":41.526,"Driver.Draw":41.448,"Graphics.Draw.draw_and_resource_release":40.413,"VideoOut.Flip":36.666,"Driver.Present":36.499,"VideoOut.Flip.present":36.484},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":16.317,"events_lost":669945,"totals_full":false},"draw committer":{"events_full_after_s":33.279,"events_lost":205045,"totals_full":false}},"trace":"aps5-trace-a6abcf9de1ec-5384.json.gz"}
{"commit":"a59fd393ec6d","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"260: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 260:60","first_present":6228,"ms":60025.286},"presents":1646,"frame_ms":{"p50":37.986,"p90":43.180,"p99":53.654,"max":71.361},"gpu_busy_ms_per_present":24.428,"worker_busy_pct":{"queue worker 0x0":47.833},"top_phases_ms_per_frame":{"VideoOut.Flip":18.659,"Driver.Present":18.379,"VideoOut.Flip.present":18.375,"Driver.Present.render_fence_wait":17.833,"Vulkan.Retire":17.832,"Vulkan.Retire.wait":17.825,"Driver.Packet":17.435,"Graphics.Draw":16.070},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":10.260,"events_lost":920764,"totals_full":false},"draw committer":{"events_full_after_s":25.193,"events_lost":334873,"totals_full":false}},"trace":"aps5-trace-a59fd393ec6d-2260.json.gz"}
{"commit":"a6abcf9de1ec","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"260: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 260:60","first_present":5891,"ms":60022.217},"presents":1284,"frame_ms":{"p50":36.193,"p90":76.179,"p99":115.956,"max":183.309},"gpu_busy_ms_per_present":42.876,"worker_busy_pct":{"queue worker 0x0":90.375},"top_phases_ms_per_frame":{"Driver.Packet":42.230,"Driver.Packet.draw":40.516,"Graphics.Draw":40.486,"Driver.Draw":40.439,"Graphics.Draw.draw_and_resource_release":39.372,"VideoOut.Flip":36.761,"Driver.Present":36.625,"VideoOut.Flip.present":36.608},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":19.564,"events_lost":665710,"totals_full":false},"draw committer":{"events_full_after_s":37.669,"events_lost":200843,"totals_full":false}},"trace":"aps5-trace-a6abcf9de1ec-37332.json.gz"}

Overlap: the overlap comment lists #6416, #6751, #6959, #7392, #8246, #10547, #10846, #11557, #11951, #12548 and #12662. None of them implements this or needs it, and this needs none of them: each adds its own flag, field, environment row or debt line next to this PR's (SpirvTarget, CompiledShaderArtifact, the cache key, SpirvEmitterState, the draw paths in Draw.cpp, ENVIRONMENT.md, debt/shader.md), so whichever merges second keeps both lines. #6959 also changes EmitMeshEntryPoint, but in the layer output, not around the window claim and release.

Tested

Windows 11, NVIDIA GeForce RTX 3060 Ti, driver 621.01 (32.0.16.2101). main is 3a2b919816, the change is this PR on it (7f0e19dd6d).

  • 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 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; both logs attached. Neither contains was not found but was requested by env var VK_INSTANCE_LAYERS; the layer reports the same 10 messages in both, all WARNING-VkImageSubresourceRange-layerCount-compatibility, and no VUID- error. main passes 26 of 26, the change 27 of 27 (the extra test is agc_driver_mesh_vector_window_waves, which main does not have).

  • New GPU test agc_driver_mesh_vector_window_waves: a hand-written wave64 geometry program with 256 threads (no title code) fills 128 window registers with ordinary register writes. It reads them back through v_movrels under s_and_saveexec_b64 + s_cbranch_execz, plus three direct reads, and stores a mismatch count per thread. With APS5_NO_MESH_WINDOW_BUFFER=1 it fails in waves 1–3 (wrong threads per wave: 0 64 64 64), 2 of 2 runs. With this PR it passes, 2 of 2.

  • MediEvil: Resurrection (PPSA07550), Sony's PSP emulator wrapping UCUS98620, together with #7893 (without it the menu aborts on a triangle-fan refusal first). The 3D main menu and its idle camera fly-through render correctly; on main + #7893 they show polygons stretched into spikes. Screenshots attached; the last visual check of the menu was on cccdaa2734, and on 3a2b919816 the traced runs above run the same menu.

    Before: main + #7893, main menu. Polygons stretched into spikes.
    before-main-plus-7893

    After: this PR + #7893, the same menu.
    after-menu

    After: this PR + #7893, during the menu's idle camera fly-through.
    after-flythrough

  • Not tested: AMD and Intel GPUs (the path is not taken there), other NVIDIA GPUs and drivers. TEKKEN: Dark Resurrection (PPSA31371) runs the same emulator, and #10051 reports black and missing triangles with APS5_NO_WINDOW_NARROWING=1; that may be this bug but was not checked.

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:5045063336 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12233). Originally posted by [beardsciences](https://github.com/beardsciences) on 2026-10-28T04:08:40Z. --- ### What On NVIDIA's proprietary driver, function arrays that the driver keeps in local memory return wrong values in subgroups 1–3 of a mesh workgroup when they are read under a data-dependent branch. Subgroup 0 is correct, and the same reads without a branch are correct. A wave64 geometry program that uses relative VGPR addressing (`v_movrels`/`v_movreld`) keeps its registers in the vector window, which is two such arrays per invocation, so waves 1–3 of a 256-thread NGG group lose register writes. - Measured with standalone GLSL mesh shaders (128 invocations, two arrays of 64 or more dwords): subgroups 1–3 fail every run. Uniform or per-invocation indices, with or without barriers, and function or module scope all fail. A branchless check of the same arrays passes, as do arrays of 48 dwords. - This broke the clipping geometry program of Sony's PS5 PSP emulator in MediEvil: Resurrection (PPSA07550). Replaying a captured menu draw on the host, the empty waves lost `v3 = v22 << 2` in the setup block. They never cleared their candidate primitive slots, read 0 there, and wrote 76 degenerate triangles over wave 0's 6, so the 3D menu drew spikes. On that driver a mesh program's window now lives in a storage buffer: - A 64 MiB device-local pool at descriptor set 3 holds 256 workgroup slots of 65536 dwords. Invocation 0 claims a slot through a per-slot lock (ticket counter plus compare-exchange), and releases it after the final barrier. The pool exists only on NVIDIA's proprietary driver. It is created before the first draw that uses it records anything, and its header is zeroed in a batch of its own that is submitted and waited for; the pool is published only after that wait, and a failure releases it so the next draw creates it again. - Direct register accesses keep one function variable per register: - A direct store also writes the buffer when a buffer read can see it (backward liveness). - Relative reads load the buffer; relative writes store only to it. - A direct read that may follow a relative write loads the buffer and refreshes the variable (forward analysis), so relative writes need no switch over the window. - A buffer entry is zeroed only when a buffer read can see it before a write. - `APS5_NO_MESH_WINDOW_BUFFER=1` keeps the arrays. Other drivers are unchanged. Cost, measured in PPSA07550's 3D main menu with #7893 (needed to reach it), RTX 3060 Ti, warm caches, `APS5_TRACE_SECONDS=260:60` and no other trace or profile switch, two alternating runs per build. `main` is a59fd393ec6d (3a2b919816 + #7893 76bea988bf), which draws the corrupt scene; the change is a6abcf9de1ec (this PR + the same #7893 head): | | presents in 60 s | frame p50 / p90 / p99 ms | GPU busy per present | |---|---|---|---| | `main` + #7893, run 1 | 1654 | 38.0 / 43.3 / 52.2 | 24.2 ms | | change + #7893, run 1 | 1280 | 36.4 / 77.9 / 110.7 | 42.9 ms | | `main` + #7893, run 2 | 1646 | 38.0 / 43.2 / 53.7 | 24.4 ms | | change + #7893, run 2 | 1284 | 36.2 / 76.2 / 116.0 | 42.9 ms | The window buffer costs about 18–19 ms of GPU time per present in this menu. All four summaries report `trace_dropped` (the event buffers of the queue worker and the draw committer filled after 9–38 s); `totals_full` is false for every thread, so the summary numbers are complete. Traces and `tools/trace_digest.py` output attached. Only mesh programs that keep a vector window for relative register addressing (`v_movrels`/`v_movreld`) take this path, and only on NVIDIA's proprietary driver; every other shader, and every other driver, is compiled as on `main`. The faster `main` frames above render the corrupt scene, so the cost buys correct output rather than slowing down working output. <details><summary>Summary lines</summary> ```json {"commit":"a59fd393ec6d","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"260: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 260:60","first_present":6193,"ms":60012.311},"presents":1654,"frame_ms":{"p50":38.023,"p90":43.264,"p99":52.195,"max":69.873},"gpu_busy_ms_per_present":24.174,"worker_busy_pct":{"queue worker 0x0":47.762},"top_phases_ms_per_frame":{"VideoOut.Flip":18.221,"Driver.Present":18.085,"VideoOut.Flip.present":18.073,"Driver.Present.render_fence_wait":17.454,"Vulkan.Retire":17.453,"Vulkan.Retire.wait":17.447,"Driver.Packet":17.321,"Graphics.Draw":15.833},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":9.625,"events_lost":940448,"totals_full":false},"draw committer":{"events_full_after_s":24.553,"events_lost":339616,"totals_full":false}},"trace":"aps5-trace-a59fd393ec6d-23000.json.gz"} {"commit":"a6abcf9de1ec","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"260: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 260:60","first_present":5638,"ms":60026.885},"presents":1280,"frame_ms":{"p50":36.386,"p90":77.920,"p99":110.653,"max":183.849},"gpu_busy_ms_per_present":42.881,"worker_busy_pct":{"queue worker 0x0":92.287},"top_phases_ms_per_frame":{"Driver.Packet":43.262,"Graphics.Draw":41.560,"Driver.Packet.draw":41.526,"Driver.Draw":41.448,"Graphics.Draw.draw_and_resource_release":40.413,"VideoOut.Flip":36.666,"Driver.Present":36.499,"VideoOut.Flip.present":36.484},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":16.317,"events_lost":669945,"totals_full":false},"draw committer":{"events_full_after_s":33.279,"events_lost":205045,"totals_full":false}},"trace":"aps5-trace-a6abcf9de1ec-5384.json.gz"} {"commit":"a59fd393ec6d","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"260: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 260:60","first_present":6228,"ms":60025.286},"presents":1646,"frame_ms":{"p50":37.986,"p90":43.180,"p99":53.654,"max":71.361},"gpu_busy_ms_per_present":24.428,"worker_busy_pct":{"queue worker 0x0":47.833},"top_phases_ms_per_frame":{"VideoOut.Flip":18.659,"Driver.Present":18.379,"VideoOut.Flip.present":18.375,"Driver.Present.render_fence_wait":17.833,"Vulkan.Retire":17.832,"Vulkan.Retire.wait":17.825,"Driver.Packet":17.435,"Graphics.Draw":16.070},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":10.260,"events_lost":920764,"totals_full":false},"draw committer":{"events_full_after_s":25.193,"events_lost":334873,"totals_full":false}},"trace":"aps5-trace-a59fd393ec6d-2260.json.gz"} {"commit":"a6abcf9de1ec","dirty":false,"env":{"APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"260: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 260:60","first_present":5891,"ms":60022.217},"presents":1284,"frame_ms":{"p50":36.193,"p90":76.179,"p99":115.956,"max":183.309},"gpu_busy_ms_per_present":42.876,"worker_busy_pct":{"queue worker 0x0":90.375},"top_phases_ms_per_frame":{"Driver.Packet":42.230,"Driver.Packet.draw":40.516,"Graphics.Draw":40.486,"Driver.Draw":40.439,"Graphics.Draw.draw_and_resource_release":39.372,"VideoOut.Flip":36.761,"Driver.Present":36.625,"VideoOut.Flip.present":36.608},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":19.564,"events_lost":665710,"totals_full":false},"draw committer":{"events_full_after_s":37.669,"events_lost":200843,"totals_full":false}},"trace":"aps5-trace-a6abcf9de1ec-37332.json.gz"} ``` </details> Overlap: the overlap comment lists #6416, #6751, #6959, #7392, #8246, #10547, #10846, #11557, #11951, #12548 and #12662. None of them implements this or needs it, and this needs none of them: each adds its own flag, field, environment row or debt line next to this PR's (`SpirvTarget`, `CompiledShaderArtifact`, the cache key, `SpirvEmitterState`, the draw paths in `Draw.cpp`, `ENVIRONMENT.md`, `debt/shader.md`), so whichever merges second keeps both lines. #6959 also changes `EmitMeshEntryPoint`, but in the layer output, not around the window claim and release. ### 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 3a2b919816, the change is this PR on it (7f0e19dd6d). - 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` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`; both logs attached. Neither contains `was not found but was requested by env var VK_INSTANCE_LAYERS`; the layer reports the same 10 messages in both, all `WARNING-VkImageSubresourceRange-layerCount-compatibility`, and no `VUID-` error. `main` passes 26 of 26, the change 27 of 27 (the extra test is `agc_driver_mesh_vector_window_waves`, which `main` does not have). - New GPU test `agc_driver_mesh_vector_window_waves`: a hand-written wave64 geometry program with 256 threads (no title code) fills 128 window registers with ordinary register writes. It reads them back through `v_movrels` under `s_and_saveexec_b64` + `s_cbranch_execz`, plus three direct reads, and stores a mismatch count per thread. With `APS5_NO_MESH_WINDOW_BUFFER=1` it fails in waves 1–3 (wrong threads per wave: 0 64 64 64), 2 of 2 runs. With this PR it passes, 2 of 2. - MediEvil: Resurrection (PPSA07550), Sony's PSP emulator wrapping UCUS98620, together with #7893 (without it the menu aborts on a triangle-fan refusal first). The 3D main menu and its idle camera fly-through render correctly; on `main` + #7893 they show polygons stretched into spikes. Screenshots attached; the last visual check of the menu was on cccdaa2734, and on 3a2b919816 the traced runs above run the same menu. **Before:** `main` + #7893, main menu. Polygons stretched into spikes. <img width="960" height="540" alt="before-main-plus-7893" src="https://github.com/user-attachments/assets/852e7475-58a5-4d4e-8d1c-efa896850c05" /> **After:** this PR + #7893, the same menu. <img width="960" height="540" alt="after-menu" src="https://github.com/user-attachments/assets/df097718-abfa-42a4-adf1-c20e2e4ddddb" /> **After:** this PR + #7893, during the menu's idle camera fly-through. <img width="960" height="540" alt="after-flythrough" src="https://github.com/user-attachments/assets/e5d687f1-88e3-4ca9-b141-42ee168e6534" /> - Not tested: AMD and Intel GPUs (the path is not taken there), other NVIDIA GPUs and drivers. TEKKEN: Dark Resurrection (PPSA31371) runs the same emulator, and #10051 reports black and missing triangles with `APS5_NO_WINDOW_NARROWING=1`; that may be this bug but was not checked. ### 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-10-28 04:19:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T04:19:34Z.

Review: CHANGES_REQUESTED


I found one initialization lifetime issue in the host pool setup that should be resolved before merge. PrepareMeshWindow records the header fill into a recorder command buffer and immediately sets pool.cleared = true. Recorder batches can be discarded if vkEndCommandBuffer or vkQueueSubmit fails; after that discard, later draws skip the fill even though no submitted command initialized the ticket counter and per-slot locks. The first mesh draw could then spin claiming a slot or reuse stale lock state. Please tie the initialized state to a successfully submitted initialization batch, or use an initialization path whose completion is guaranteed before later mesh draws can use the pool. Also include a focused check for the failed/discarded-first-batch case if feasible. I reviewed the shader indexing, liveness/initialization analysis, cache serialization, descriptor layout and release ordering statically. I could not reproduce the proprietary NVIDIA driver failure or run the new GPU regression test on this host, so I am not approving the driver-specific behavior without the author’s hardware evidence and this lifecycle case being addressed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5677744383 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12233#pullrequestreview-5677744383). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T04:19:34Z. **Review:** CHANGES_REQUESTED --- I found one initialization lifetime issue in the host pool setup that should be resolved before merge. `PrepareMeshWindow` records the header fill into a recorder command buffer and immediately sets `pool.cleared = true`. Recorder batches can be discarded if `vkEndCommandBuffer` or `vkQueueSubmit` fails; after that discard, later draws skip the fill even though no submitted command initialized the ticket counter and per-slot locks. The first mesh draw could then spin claiming a slot or reuse stale lock state. Please tie the initialized state to a successfully submitted initialization batch, or use an initialization path whose completion is guaranteed before later mesh draws can use the pool. Also include a focused check for the failed/discarded-first-batch case if feasible. I reviewed the shader indexing, liveness/initialization analysis, cache serialization, descriptor layout and release ordering statically. I could not reproduce the proprietary NVIDIA driver failure or run the new GPU regression test on this host, so I am not approving the driver-specific behavior without the author’s hardware evidence and this lifecycle case being addressed.
MarcZX10 commented 2026-10-28 09:20:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T09:20:27Z.

Review: CHANGES_REQUESTED


I rechecked head 77790116601ca240390208a280ad51481acbb5fa. The pool initialization race from my earlier review appears addressed: header initialization now runs in a separate submitted-and-waited batch, and pool readiness is published afterward. The report still does not satisfy the current review requirements:

  1. The branch is diverged from current main (316615d042c087942e3fa11f258669abd92c3f27) by 276 commits behind and 3 ahead. Please rebase/update it to current main, resolve the newly exposed overlap, and rerun the focused tests.
  2. The new mesh shader path needs the required paired validation run for this shader change: agc_driver_mesh_vector_window_waves on current main and the updated head with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; provide logs confirming the layer loaded and compare new VUID- findings. The currently reported RTX 3060 Ti runs and APS5_NO_MESH_WINDOW_BUFFER negative control are useful, but do not document that required pair or validation result.
  3. The description makes frame-rate and compilation-time comparisons but has no paired current-main/change aps5-summary.jsonl lines, attached traces and trace_digest.py output. Please provide those for the speed claim or remove the unsupported speed comparison.
  4. The checklist says Unblocks: PPSA07550 (no Game bring-up discussion yet). CONTRIBUTING requires the title ID and its Game bring-up discussion, or none; please add the discussion link or change the line to none.

Conventions passes, but only conventions/labels are reported for this head; I found no current focused GPU validation run. I am keeping changes requested pending the above evidence and rebase.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5680331688 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12233#pullrequestreview-5680331688). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T09:20:27Z. **Review:** CHANGES_REQUESTED --- I rechecked head `77790116601ca240390208a280ad51481acbb5fa`. The pool initialization race from my earlier review appears addressed: header initialization now runs in a separate submitted-and-waited batch, and pool readiness is published afterward. The report still does not satisfy the current review requirements: 1. The branch is diverged from current `main` (`316615d042c087942e3fa11f258669abd92c3f27`) by 276 commits behind and 3 ahead. Please rebase/update it to current `main`, resolve the newly exposed overlap, and rerun the focused tests. 2. The new mesh shader path needs the required paired validation run for this shader change: `agc_driver_mesh_vector_window_waves` on current main and the updated head with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`; provide logs confirming the layer loaded and compare new `VUID-` findings. The currently reported RTX 3060 Ti runs and `APS5_NO_MESH_WINDOW_BUFFER` negative control are useful, but do not document that required pair or validation result. 3. The description makes frame-rate and compilation-time comparisons but has no paired current-main/change `aps5-summary.jsonl` lines, attached traces and `trace_digest.py` output. Please provide those for the speed claim or remove the unsupported speed comparison. 4. The checklist says `Unblocks: PPSA07550 (no Game bring-up discussion yet)`. CONTRIBUTING requires the title ID and its Game bring-up discussion, or `none`; please add the discussion link or change the line to `none`. Conventions passes, but only conventions/labels are reported for this head; I found no current focused GPU validation run. I am keeping changes requested pending the above evidence and rebase.
MarcZX10 commented 2026-10-28 21:53:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T21:53:49Z.

Review: CHANGES_REQUESTED


Reviewing exact head 1f9b309c584049a6c6bec2836dc1a969cae4b62c against current main 319621ba2e578bd053b0baba2877fe70520e0737.

What I ran

  • git diff --check against current main: passed.
  • git merge-tree --write-tree against current main: clean merge tree (e7369b6c37aa7841c323a1ae0362c44c9aa9b0e5).
  • Inspected the PR body, current diff, review history, and hosted checks. Conventions, labels, report, eligibility, and Windows passed; Linux and specialized jobs were skipped.
  • I did not build the project or run CTest/GPU tests locally. The validation and trace evidence below is author-reported, not independently reproduced.

Results

Check Result Evidence
Patch whitespace Pass Local git diff --check against current main
Mergeability Pass Local merge-tree against current main
Hosted Windows Pass GitHub Actions for this head
Hosted conventions, labels, report, eligibility Pass GitHub Actions
Hosted Linux / specialized jobs Skipped GitHub Actions
Focused GPU validation Stale baseline Author posted a same-machine RTX 3060 Ti pair for 750cf6cf48 and this PR head, with Vulkan validation enabled and logs attached. Current main is 319621ba2e578bd053b0baba2877fe70520e0737, so that report does not cover the current base.
Performance comparison Stale baseline The paired traces and trace_digest.py outputs compare 750cf6cf48 plus #7893 with this PR plus #7893. They document a substantial GPU-time regression, but do not compare current main with the change.

Findings

Blocking

  • The branch and its validation evidence are behind current main. The PR's merge base is 750cf6cf487f948017295b1f3717af6f886f0f85; current main is 319621ba2e578bd053b0baba2877fe70520e0737 (282 commits ahead of the PR branch). The merge-tree is clean, but the PR template requires a current-main basis, and this branch has not been integrated with the latest base. Please update/rebase it onto current main, resolve any newly exposed overlaps, and rerun the focused checks on the updated head.
  • The required shader/AGC validation pair must cover current main and the updated head. AGENTS.md requires the same focused tests on both builds, on the same machine and GPU, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; confirm the layer loaded and compare all VUID- lines. The posted pair uses 750cf6cf48, not current main. Keep the PR Draft until this updated pair is available, or post the pair and update the report.
  • The performance claim also needs a current-main pair. The attached summary lines, traces, and digests use 750cf6cf48 as “main”; they do not establish the comparison against current main. Please rerun the same scene and machine against the updated base and head and attach the matching summary lines, traces, and digest output, or remove the stale comparison from the PR description.

The previous pool-initialization concern appears addressed by publishing the descriptor set only after the separately submitted initialization batch completes. I did not independently execute the GPU regression test on this head.

Sources

Not verified

  • I did not run a build, CTest, or GPU test locally.
  • I did not independently inspect the attached GPU logs or trace files.
  • No current-main validation or performance comparison is included in the evidence I checked.

To get this to a good state

Rebase/update onto current main 319621ba2e578bd053b0baba2877fe70520e0737, then post fresh same-machine GPU validation logs and trace comparison for that base and the new head. The validation logs should confirm actual layer loading and show no new VUID- errors; the performance evidence should include the paired summary lines, traces, and trace_digest.py output. Keep the PR Draft until the required GPU pair is available.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5690187299 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12233#pullrequestreview-5690187299). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T21:53:49Z. **Review:** CHANGES_REQUESTED --- Reviewing exact head `1f9b309c584049a6c6bec2836dc1a969cae4b62c` against current `main` `319621ba2e578bd053b0baba2877fe70520e0737`. ## What I ran - `git diff --check` against current `main`: passed. - `git merge-tree --write-tree` against current `main`: clean merge tree (`e7369b6c37aa7841c323a1ae0362c44c9aa9b0e5`). - Inspected the PR body, current diff, review history, and hosted checks. Conventions, labels, report, eligibility, and Windows passed; Linux and specialized jobs were skipped. - I did not build the project or run CTest/GPU tests locally. The validation and trace evidence below is author-reported, not independently reproduced. ## Results | Check | Result | Evidence | |---|---|---| | Patch whitespace | Pass | Local `git diff --check` against current `main` | | Mergeability | Pass | Local merge-tree against current `main` | | Hosted Windows | Pass | GitHub Actions for this head | | Hosted conventions, labels, report, eligibility | Pass | GitHub Actions | | Hosted Linux / specialized jobs | Skipped | GitHub Actions | | Focused GPU validation | Stale baseline | Author posted a same-machine RTX 3060 Ti pair for `750cf6cf48` and this PR head, with Vulkan validation enabled and logs attached. Current `main` is `319621ba2e578bd053b0baba2877fe70520e0737`, so that report does not cover the current base. | | Performance comparison | Stale baseline | The paired traces and `trace_digest.py` outputs compare `750cf6cf48` plus #7893 with this PR plus #7893. They document a substantial GPU-time regression, but do not compare current `main` with the change. | ## Findings ### Blocking - **The branch and its validation evidence are behind current `main`.** The PR's merge base is `750cf6cf487f948017295b1f3717af6f886f0f85`; current `main` is `319621ba2e578bd053b0baba2877fe70520e0737` (282 commits ahead of the PR branch). The merge-tree is clean, but the PR template requires a current-main basis, and this branch has not been integrated with the latest base. Please update/rebase it onto current `main`, resolve any newly exposed overlaps, and rerun the focused checks on the updated head. - **The required shader/AGC validation pair must cover current `main` and the updated head.** `AGENTS.md` requires the same focused tests on both builds, on the same machine and GPU, with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`; confirm the layer loaded and compare all `VUID-` lines. The posted pair uses `750cf6cf48`, not current `main`. Keep the PR Draft until this updated pair is available, or post the pair and update the report. - **The performance claim also needs a current-main pair.** The attached summary lines, traces, and digests use `750cf6cf48` as “main”; they do not establish the comparison against current `main`. Please rerun the same scene and machine against the updated base and head and attach the matching summary lines, traces, and digest output, or remove the stale comparison from the PR description. The previous pool-initialization concern appears addressed by publishing the descriptor set only after the separately submitted initialization batch completes. I did not independently execute the GPU regression test on this head. ## Sources - [Repository review and GPU validation rules](https://github.com/boykopovar/AnyPS5/blob/main/AGENTS.md) - [PR's validation and performance evidence](https://github.com/boykopovar/AnyPS5/pull/12233#issuecomment-6480960000) - [Current pull request](https://github.com/boykopovar/AnyPS5/pull/12233) ## Not verified - I did not run a build, CTest, or GPU test locally. - I did not independently inspect the attached GPU logs or trace files. - No current-`main` validation or performance comparison is included in the evidence I checked. ## To get this to a good state Rebase/update onto current `main` `319621ba2e578bd053b0baba2877fe70520e0737`, then post fresh same-machine GPU validation logs and trace comparison for that base and the new head. The validation logs should confirm actual layer loading and show no new `VUID-` errors; the performance evidence should include the paired summary lines, traces, and `trace_digest.py` output. Keep the PR Draft until the required GPU pair is available.
MarcZX10 commented 2026-10-29 02:09:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T02:09:07Z.

Review: CHANGES_REQUESTED


Re-checked — changes still requested

I reviewed the updated head 7f0e19dd6d15017f8f281c1b3a98d1325f8da3d6 against current main (3a2b91981651569163768854a1fcdc7193b6667b). The implementation review and updated test evidence address the earlier technical questions. I am keeping this review at Changes requested because the four performance summary lines still record APS5_TRACE_DIR; the repository's performance report form instructs reporters not to set other APS5_TRACE_* or APS5_PROFILE_* switches.

What I ran

On Linux x86_64 (GCC), I checked the exact PR head and built the focused mesh test in the isolated review build:

  • python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/12233
  • git diff --check upstream/main...refs/remotes/review/12233
  • git merge-tree --write-tree upstream/main refs/remotes/review/12233
  • ninja -C /tmp/anyps5-pr12664-build-full agc_driver_mesh_vector_window_waves_tests
  • Native CTest for agc_driver_mesh_vector_window_waves
  • The same executable under qemu-x86_64 -cpu Haswell

I also downloaded the four attached traces and matching digest outputs and recomputed each digest using tools/trace_digest.py with its attached summary. I read both attached Vulkan validation logs; I did not run the Windows/NVIDIA workload locally.

Results

Check Result
Conventions Passed
Diff whitespace Passed
Merge preview with current main Clean (17122221904ecf0f155886fb2f15a7f22fd048c1)
Focused mesh test build Passed (167/167 Ninja actions)
Native CTest Could not reach assertions: host CPU feature guard aborts on this Xeon E5-1620 v2
QEMU Haswell run Skipped with exit 77 because llvmpipe does not provide the required mesh-shader compiler
Four attached trace digests All reproduced exactly (after normalizing CRLF)
Attached Vulkan validation logs Same ten WARNING-VkImageSubresourceRange-layerCount-compatibility warnings in each; no VUID- errors
Raw local check output
Convention checker: passed
Diff check: clean
Merge preview tree: 17122221904ecf0f155886fb2f15a7f22fd048c1
Ninja: 167/167 actions; agc_driver_mesh_vector_window_waves_tests linked
Native CTest: aborted by CPU feature guard before test assertions
QEMU Haswell: test skipped (exit 77); llvmpipe lacks required mesh-shader compiler
Trace digest recomputation: 4/4 matched attached digest output

Negative control and hardware evidence

The author reports that the exact current PR head passes the new mesh test twice on an RTX 3060 Ti, while setting APS5_NO_MESH_WINDOW_BUFFER=1 reproduces wrong results in waves 1–3 twice. Their current-head Windows validation run reports 27/27 tests on the change and 26/26 on its matching main baseline, with no VUID- errors. The author also supplied paired baseline/change traces from the same title, scene, and machine. I independently recomputed all four attached digests successfully. These are author-run hardware results, not locally reproduced runs. Details and attachments are in the author's current-head evidence comment.

Findings

Blocking

  • The four aps5-summary.jsonl lines include APS5_TRACE_DIR. The current performance report form says not to set any other APS5_TRACE_* or APS5_PROFILE_* switch. The current report therefore does not meet the repository's stated capture procedure, even though its traces are attached and their digests reproduce. Please recapture the same baseline and change runs without APS5_TRACE_DIR (write the traces to the working directory), then replace the four summary lines and attach the corresponding traces and digest outputs. Keep the same title, scene, machine, and fixed input so the comparison remains controlled.

Non-blocking

  • The current PR merge preview against main is clean. Its documented #7893 prerequisite is common to both baseline and change captures, and the report explains why it is needed to reach the scene; the comparison isolates this PR's effect.

Not verified locally

I could not run the NVIDIA-specific workload or reproduce the Windows validation/test results on this Linux host. Native CTest stopped at the CPU guard, and QEMU with llvmpipe skipped the test because its Vulkan implementation lacks the required mesh-shader compiler. I therefore do not count those as passing local runtime tests.

To resolve

Please provide the four recaptured summary lines and their matching traces/digests without APS5_TRACE_DIR. I can then re-check the updated report and clear this request if the capture record complies.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5692034664 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12233#pullrequestreview-5692034664). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T02:09:07Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes still requested I reviewed the updated head `7f0e19dd6d15017f8f281c1b3a98d1325f8da3d6` against current `main` (`3a2b91981651569163768854a1fcdc7193b6667b`). The implementation review and updated test evidence address the earlier technical questions. I am keeping this review at **Changes requested** because the four performance summary lines still record `APS5_TRACE_DIR`; the repository's [performance report form](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/.github/ISSUE_TEMPLATE/performance.yml#L8-L13) instructs reporters not to set other `APS5_TRACE_*` or `APS5_PROFILE_*` switches. ## What I ran On Linux x86_64 (GCC), I checked the exact PR head and built the focused mesh test in the isolated review build: - `python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/12233` - `git diff --check upstream/main...refs/remotes/review/12233` - `git merge-tree --write-tree upstream/main refs/remotes/review/12233` - `ninja -C /tmp/anyps5-pr12664-build-full agc_driver_mesh_vector_window_waves_tests` - Native CTest for `agc_driver_mesh_vector_window_waves` - The same executable under `qemu-x86_64 -cpu Haswell` I also downloaded the four attached traces and matching digest outputs and recomputed each digest using `tools/trace_digest.py` with its attached summary. I read both attached Vulkan validation logs; I did not run the Windows/NVIDIA workload locally. ## Results | Check | Result | |---|---| | Conventions | Passed | | Diff whitespace | Passed | | Merge preview with current `main` | Clean (`17122221904ecf0f155886fb2f15a7f22fd048c1`) | | Focused mesh test build | Passed (167/167 Ninja actions) | | Native CTest | Could not reach assertions: host CPU feature guard aborts on this Xeon E5-1620 v2 | | QEMU Haswell run | Skipped with exit 77 because llvmpipe does not provide the required mesh-shader compiler | | Four attached trace digests | All reproduced exactly (after normalizing CRLF) | | Attached Vulkan validation logs | Same ten `WARNING-VkImageSubresourceRange-layerCount-compatibility` warnings in each; no `VUID-` errors | <details><summary>Raw local check output</summary> ```text Convention checker: passed Diff check: clean Merge preview tree: 17122221904ecf0f155886fb2f15a7f22fd048c1 Ninja: 167/167 actions; agc_driver_mesh_vector_window_waves_tests linked Native CTest: aborted by CPU feature guard before test assertions QEMU Haswell: test skipped (exit 77); llvmpipe lacks required mesh-shader compiler Trace digest recomputation: 4/4 matched attached digest output ``` </details> ## Negative control and hardware evidence The author reports that the exact current PR head passes the new mesh test twice on an RTX 3060 Ti, while setting `APS5_NO_MESH_WINDOW_BUFFER=1` reproduces wrong results in waves 1–3 twice. Their current-head Windows validation run reports 27/27 tests on the change and 26/26 on its matching `main` baseline, with no `VUID-` errors. The author also supplied paired baseline/change traces from the same title, scene, and machine. I independently recomputed all four attached digests successfully. These are author-run hardware results, not locally reproduced runs. Details and attachments are in [the author's current-head evidence comment](https://github.com/boykopovar/AnyPS5/pull/12233#issuecomment-6485571494). ## Findings ### Blocking - The four `aps5-summary.jsonl` lines include `APS5_TRACE_DIR`. The current [performance report form](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/.github/ISSUE_TEMPLATE/performance.yml#L8-L13) says not to set any other `APS5_TRACE_*` or `APS5_PROFILE_*` switch. The current report therefore does not meet the repository's stated capture procedure, even though its traces are attached and their digests reproduce. Please recapture the same baseline and change runs without `APS5_TRACE_DIR` (write the traces to the working directory), then replace the four summary lines and attach the corresponding traces and digest outputs. Keep the same title, scene, machine, and fixed input so the comparison remains controlled. ### Non-blocking - The current PR merge preview against `main` is clean. Its documented `#7893` prerequisite is common to both baseline and change captures, and the report explains why it is needed to reach the scene; the comparison isolates this PR's effect. ## Not verified locally I could not run the NVIDIA-specific workload or reproduce the Windows validation/test results on this Linux host. Native CTest stopped at the CPU guard, and QEMU with llvmpipe skipped the test because its Vulkan implementation lacks the required mesh-shader compiler. I therefore do not count those as passing local runtime tests. ## To resolve Please provide the four recaptured summary lines and their matching traces/digests without `APS5_TRACE_DIR`. I can then re-check the updated report and clear this request if the capture record complies.
MarcZX10 commented 2026-10-29 03:02:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T03:02:00Z.

Review: APPROVED


Re-checked — approved

The requested performance capture correction is complete. The four current summary lines no longer include APS5_TRACE_DIR, and I reproduced each attached digest from its trace and summary.

What I ran

  • Checked current head 7f0e19dd6d15017f8f281c1b3a98d1325f8da3d6 and its updated description/comment.
  • Downloaded all four newly attached trace files and digest reports.
  • Ran tools/trace_digest.py on each trace with its matching summary line.
  • Refreshed the hosted check state and re-read the exact-head author evidence and previous review findings.

Results

Check Result
Performance summary environment Passed; only APS5_TRACE_SECONDS=260:60 is set among trace/profile switches
Recomputed trace digest: main run 1 Exact match to attached digest
Recomputed trace digest: main run 2 Exact match to attached digest
Recomputed trace digest: change run 1 Exact match to attached digest
Recomputed trace digest: change run 2 Exact match to attached digest
Author-reported NVIDIA validation pair Pass on same RTX 3060 Ti machine; 26/26 baseline and 27/27 change tests, no VUID- errors
Hosted checks Conventions, eligibility, labels, and report pass; Windows pending; Linux and specialized jobs skipped

All four full trace_digest.py outputs match the attached reports exactly. The reported baseline and change use the same title, menu scene, fixed input, machine, driver, and warm-cache alternating capture procedure.

Negative control

Control Result
APS5_NO_MESH_WINDOW_BUFFER=1 Author reports the focused test fails in waves 1–3 in two runs; normal PR configuration passes in two runs
Independent reproduction Not run; this Linux host lacks the required CPU features and does not provide the author’s NVIDIA hardware

Findings

Blocking

None found on this head. The prior report-format issue is resolved, and the attached trace digests verify against the current captures.

Non-blocking

  • The performance report shows a substantial GPU-time cost for this path. The report also demonstrates that the baseline renders corrupted output and the change fixes it, so the measured cost is documented against the behavior being corrected.
  • The Windows hosted job is still pending. The exact-head NVIDIA validation and performance evidence are reported by the author and were not rerun on my machine.

Sources

Not verified

  • I did not execute the Windows/NVIDIA workload, the author-reported CTest validation pair, or the negative control locally.
  • Windows hosted build remains pending at the time of this review; Linux product and specialized workflows were skipped by policy.

To get to a good state

No further changes are required for the findings in this review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5692351238 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12233#pullrequestreview-5692351238). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T03:02:00Z. **Review:** APPROVED --- # Re-checked — approved The requested performance capture correction is complete. The four current summary lines no longer include `APS5_TRACE_DIR`, and I reproduced each attached digest from its trace and summary. ## What I ran - Checked current head `7f0e19dd6d15017f8f281c1b3a98d1325f8da3d6` and its updated description/comment. - Downloaded all four newly attached trace files and digest reports. - Ran `tools/trace_digest.py` on each trace with its matching summary line. - Refreshed the hosted check state and re-read the exact-head author evidence and previous review findings. ## Results | Check | Result | |---|---| | Performance summary environment | Passed; only `APS5_TRACE_SECONDS=260:60` is set among trace/profile switches | | Recomputed trace digest: main run 1 | Exact match to attached digest | | Recomputed trace digest: main run 2 | Exact match to attached digest | | Recomputed trace digest: change run 1 | Exact match to attached digest | | Recomputed trace digest: change run 2 | Exact match to attached digest | | Author-reported NVIDIA validation pair | Pass on same RTX 3060 Ti machine; 26/26 baseline and 27/27 change tests, no `VUID-` errors | | Hosted checks | Conventions, eligibility, labels, and report pass; Windows pending; Linux and specialized jobs skipped | All four full `trace_digest.py` outputs match the attached reports exactly. The reported baseline and change use the same title, menu scene, fixed input, machine, driver, and warm-cache alternating capture procedure. ## Negative control | Control | Result | |---|---| | `APS5_NO_MESH_WINDOW_BUFFER=1` | Author reports the focused test fails in waves 1–3 in two runs; normal PR configuration passes in two runs | | Independent reproduction | Not run; this Linux host lacks the required CPU features and does not provide the author’s NVIDIA hardware | ## Findings ### Blocking None found on this head. The prior report-format issue is resolved, and the attached trace digests verify against the current captures. ### Non-blocking - The performance report shows a substantial GPU-time cost for this path. The report also demonstrates that the baseline renders corrupted output and the change fixes it, so the measured cost is documented against the behavior being corrected. - The Windows hosted job is still pending. The exact-head NVIDIA validation and performance evidence are reported by the author and were not rerun on my machine. ## Sources - Current reviewed head: [mesh-window implementation and current report](https://github.com/boykopovar/AnyPS5/tree/7f0e19dd6d15017f8f281c1b3a98d1325f8da3d6) - [Current performance capture instructions](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/.github/ISSUE_TEMPLATE/performance.yml#L8-L13) - [Author’s current recapture and attached traces/digests](https://github.com/boykopovar/AnyPS5/pull/12233#issuecomment-6486457977) - [Author’s exact-head validation pair and negative control](https://github.com/boykopovar/AnyPS5/pull/12233#issuecomment-6485571494) ## Not verified - I did not execute the Windows/NVIDIA workload, the author-reported CTest validation pair, or the negative control locally. - Windows hosted build remains pending at the time of this review; Linux product and specialized workflows were skipped by policy. ## To get to a good state No further changes are required for the findings in this review.
MarcZX10 commented 2026-10-29 08:30:34 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Re-reviewed exact head 7f0e19dd6d15017f8f281c1b3a98d1325f8da3d6 after the new review comment. The implementation and matched validation/performance evidence remain as reviewed, but docs/dev/debt/shader.md:196 still names “PSPHD” twice. The repository debt convention uses PPSA IDs or “the title”; please replace both names with “the title” (PPSA07550 is already identified in this entry). The current-main merge preview is clean and git diff --check passes. No GPU tests rerun locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694805279 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12233#pullrequestreview-5694805279). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T08:30:34Z. **Review:** CHANGES_REQUESTED --- Re-reviewed exact head `7f0e19dd6d15017f8f281c1b3a98d1325f8da3d6` after the new review comment. The implementation and matched validation/performance evidence remain as reviewed, but `docs/dev/debt/shader.md:196` still names “PSPHD” twice. The repository debt convention uses PPSA IDs or “the title”; please replace both names with “the title” (PPSA07550 is already identified in this entry). The current-main merge preview is clean and `git diff --check` passes. No GPU tests rerun locally.
MarcZX10 commented 2026-10-29 13:02:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T13:02:28Z.

Review: APPROVED


Re-checked — new head, approved

The only change since the previously approved head replaces the two title nicknames in the debt entry, resolving the outstanding repository wording request.

What I ran

Reviewed head 6f79055a0001703bc0419fb03a8dabd9ef1a2677 against current main 899ae3d1ad32ccea94dc24e66fdc948ce8a88171. The merge preview is clean (9f92fdb8033189e5630fb23bc56a08ad5b1aaa47). Environment: Debian GNU/Linux 12; GCC 12.2.0; CMake 3.25.1.

git diff 7f0e19dd6d15017f8f281c1b3a98d1325f8da3d6 refs/remotes/upstream/pr/12233-review -- docs/dev/debt/shader.md
git diff --check upstream/main...refs/remotes/upstream/pr/12233-review
git merge-tree --write-tree upstream/main refs/remotes/upstream/pr/12233-review
python3 tools/check_conventions.py --base upstream/main --head refs/remotes/upstream/pr/12233-review --title 'fix(shader): keep mesh register windows out of local memory on NVIDIA' --body /tmp/AnyPS5-12233-body.md

Results

Check Result
Current-head delta One debt-document line changed; shader implementation and tests are unchanged
Conventions, including PR body Passed
Diff check Passed
Merge preview Clean
Hosted conventions and labels Pending when checked
Behavioral tests Not rerun; the new head changes debt wording only
Raw output
All conventions checks passed.

git diff --check produced no output and exited 0. git merge-tree --write-tree returned:

9f92fdb8033189e5630fb23bc56a08ad5b1aaa47

Negative control

Assertion Change made to code under test Did the test fail?
Mesh-window behavior No behavioral code changed on this head; no negative control rerun Not applicable to the documentation-only update

Findings

Blocking

None on this head.

Non-blocking

None on this head.

Sources

Not verified

I did not rerun the GPU workload, Vulkan validation pair, performance captures, or CTest because the changed line is documentation only. Hosted conventions and labels were still pending.

To get this to a good state

No further changes are required for the findings reviewed here. I will rerun these checks if the head changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5698100697 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12233#pullrequestreview-5698100697). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T13:02:28Z. **Review:** APPROVED --- # Re-checked — new head, approved The only change since the previously approved head replaces the two title nicknames in the debt entry, resolving the outstanding repository wording request. ## What I ran Reviewed head `6f79055a0001703bc0419fb03a8dabd9ef1a2677` against current `main` `899ae3d1ad32ccea94dc24e66fdc948ce8a88171`. The merge preview is clean (`9f92fdb8033189e5630fb23bc56a08ad5b1aaa47`). Environment: Debian GNU/Linux 12; GCC 12.2.0; CMake 3.25.1. ```sh git diff 7f0e19dd6d15017f8f281c1b3a98d1325f8da3d6 refs/remotes/upstream/pr/12233-review -- docs/dev/debt/shader.md git diff --check upstream/main...refs/remotes/upstream/pr/12233-review git merge-tree --write-tree upstream/main refs/remotes/upstream/pr/12233-review python3 tools/check_conventions.py --base upstream/main --head refs/remotes/upstream/pr/12233-review --title 'fix(shader): keep mesh register windows out of local memory on NVIDIA' --body /tmp/AnyPS5-12233-body.md ``` ## Results | Check | Result | |---|---| | Current-head delta | One debt-document line changed; shader implementation and tests are unchanged | | Conventions, including PR body | Passed | | Diff check | Passed | | Merge preview | Clean | | Hosted conventions and labels | Pending when checked | | Behavioral tests | Not rerun; the new head changes debt wording only | <details> <summary>Raw output</summary> ```text All conventions checks passed. ``` `git diff --check` produced no output and exited 0. `git merge-tree --write-tree` returned: ```text 9f92fdb8033189e5630fb23bc56a08ad5b1aaa47 ``` </details> ## Negative control | Assertion | Change made to code under test | Did the test fail? | |---|---|---| | Mesh-window behavior | No behavioral code changed on this head; no negative control rerun | Not applicable to the documentation-only update | ## Findings ### Blocking None on this head. ### Non-blocking None on this head. ## Sources - [Current head debt wording](https://github.com/boykopovar/AnyPS5/blob/6f79055a0001703bc0419fb03a8dabd9ef1a2677/docs/dev/debt/shader.md#L196) - [Contribution and title-naming rules, pinned to current main](https://github.com/boykopovar/AnyPS5/blob/899ae3d1ad32ccea94dc24e66fdc948ce8a88171/CONTRIBUTING.md) ## Not verified I did not rerun the GPU workload, Vulkan validation pair, performance captures, or CTest because the changed line is documentation only. Hosted conventions and labels were still pending. ## To get this to a good state No further changes are required for the findings reviewed here. I will rerun these checks 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!12233
No description provided.