perf(shader): use 32-bit scalar buffer bounds #10337

Merged
Filip722 merged 2 commits from upstream-pr/10337 into main 2026-10-28 00:46:37 +00:00
Filip722 commented 2026-10-23 18:26:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Filip722 on 2026-10-23T18:26:22Z.


What

Scalar-buffer loads currently use 64-bit multiplication and comparison to check descriptor ranges, adding native GPU work in the Sons of Sparta menu. This change uses the low and high halves of a 32-bit extended product for the same bounds decision.

  • Preserve zero-stride byte sizing, products above 32 bits, offset-addition carry detection, descriptor validity and the existing fault/access paths.
  • Keep 64-bit arithmetic for GPU descriptor base-address addition and retain the shaderInt64 capability requirement.
  • Extend the existing runtime-buffer fixture with zero, short, exact, strided and large descriptor ranges.

Tested

Cooled matched repeats on 2026-10-25 UTC: main 2742004ed28f versus exact PR head 50b32c145c0c. Four main controls and three independent PR repeats; code and original patch are unchanged. The other performance PR is not included.

The earlier mini-PC setup was thermally stressed, reaching 99–101°C on the GPU, and the captures lacked continuous focus verification. Those thermal conditions limited confidence in the earlier comparison. After a cooling upgrade, a six-minute baseline preflight found no thermal/PROCHOT flags in 1,441 samples. The new valid repeat cohort peaks at GPU 81°C and CPU package Tctl 80.875°C, with zero sampled thermal flags and 2599 MHz GPU clock throughout its timed windows. The old captures did not record firmware throttle flags, so thermal throttling is not a proven cause of the old stalls.

Same PPSA28997 version 01.008.001 startup menu, converted executable, copied save seed and per-commit warmed shader/Mesa caches. Radeon 760M (RADV PHOENIX), Mesa 25.0.7-2+deb13u1, Debian 13 / Linux 7.2.10-x64v3-xanmod1, GCC 15.2.0. Wayland window 1152×648, guest 1920×1080. Each run starts with GPU/package ≤53°C for 10 seconds. Cross at 45 seconds; trace window 90:30 lets startup activity settle. Existing GPU power mode high was left unchanged. No SQTT/RGP, hardware profiling lock, extra profile/trace switch, validation or timing interception layer was used during measurement; output used a PTY.

Window activation and geometry changes were monitored continuously. The ten valid captures remained active at 1152×648 throughout their measurement windows; all pre/post scene images were inspected locally and show the same menu. Two attempts failed the predeclared focus rule and remain disclosed: S2 p99 37.586 ms lost focus and was replaced by S2r; A4 p99 39.402 ms had a 123 ms focus interruption and was replaced by A4r. Both were excluded regardless of favorable timings. Fixed accepted order: A1, L1, S1, A2, S2r, L2, A3, L3, S3, A4r. All other captures were retained.

Thermal metrics were sampled every 250 ms with a 96°C process guard. Package/current-limit flags and background GPU activity are retained in the audit. Runtime-library hashes match the exact builds; every summary is clean with no dropped events; all owned processes exited.

Run Commit FPS Frame p50 ms Frame p99 ms Max frame ms GPU ms/present
A1 2742004ed28f 26.91 37.169 38.390 40.021 33.566
S1 50b32c145c0c 27.73 35.985 37.749 38.918 32.379
A2 2742004ed28f 26.72 37.367 39.162 41.502 33.592
S2r 50b32c145c0c 27.82 35.865 37.671 40.175 32.362
A3 2742004ed28f 26.73 37.357 39.055 41.336 33.603
S3 50b32c145c0c 27.83 35.882 37.440 39.315 32.365
A4r 2742004ed28f 26.65 37.451 39.435 40.918 33.608

Present-weighted mean GPU time: 33.5922 → 32.3687 ms/present, 1.2235 ms (3.64%) lower. PR p99 range: 37.440–37.749 ms; main controls: 38.390–39.435 ms. No frame over 50 ms occurred in the valid trace intervals. The earlier 60.851/67.350 ms p99 outliers did not reproduce.

The earlier same-head runtime-library builds and all six focused correctness fixtures passed independently on main and each PR with Vulkan required, shader cache disabled and Khronos validation actually loaded: no missing-layer warnings, skips or VUID errors. Conventions and whitespace checks pass. No production change was indicated by the repeat investigation. These results cover this menu on one GPU; they do not establish broader gameplay, cross-title or console behavior. Cooling, focus control and settling time changed together, so the repeats do not isolate the historical stall's cause.

Original traces, digests and results remain unchanged. The old A2 post-capture image selected another active window, was discarded, and is not claimed as scene verification. The original L1/S2 slow frames show long CPU-side packet-processing wall spans; that locates the delay on the host side but does not distinguish descheduling, waits or another cause.

Download the cooled-repeat traces, digests, all included/excluded summaries, thermal/focus telemetry, original-outlier analysis, thermal preflight and same-head correctness evidence. No game files, saves, screenshots, binaries or shader caches are included.

Full current summary lines, in capture order:

{"commit":"2742004ed28f","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3060,"ms":30029.635},"presents":808,"frame_ms":{"p50":37.169,"p90":37.724,"p99":38.39,"max":40.021},"gpu_busy_ms_per_present":33.566,"worker_busy_pct":{"queue worker 0x0":70.919},"top_phases_ms_per_frame":{"Driver.Packet":26.08,"Driver.Packet.draw":23.134,"Driver.Draw":23.101,"Driver.Draw.draw_enqueued":21.134,"Recorder.Sync":20.038,"VideoOut.Flip":9.956,"Driver.Present":9.909,"VideoOut.Flip.present":9.904},"trace_dropped":false,"trace":"aps5-trace-2742004ed28f-34884.json.gz"}
{"commit":"50b32c145c0c","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3123,"ms":30034.41},"presents":833,"frame_ms":{"p50":35.985,"p90":36.765,"p99":37.749,"max":38.918},"gpu_busy_ms_per_present":32.379,"worker_busy_pct":{"queue worker 0x0":72.284},"top_phases_ms_per_frame":{"Driver.Packet":25.778,"Driver.Packet.draw":22.768,"Driver.Draw":22.735,"Driver.Draw.draw_enqueued":20.772,"Recorder.Sync":19.603,"VideoOut.Flip":9.332,"Driver.Present":9.285,"VideoOut.Flip.present":9.282},"trace_dropped":false,"trace":"aps5-trace-50b32c145c0c-36548.json.gz"}
{"commit":"2742004ed28f","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3040,"ms":30018.879},"presents":802,"frame_ms":{"p50":37.367,"p90":38.125,"p99":39.162,"max":41.502},"gpu_busy_ms_per_present":33.592,"worker_busy_pct":{"queue worker 0x0":70.958},"top_phases_ms_per_frame":{"Driver.Packet":26.274,"Driver.Packet.draw":23.28,"Driver.Draw":23.246,"Driver.Draw.draw_enqueued":21.274,"Recorder.Sync":20.114,"VideoOut.Flip":10.02,"Driver.Present":9.972,"VideoOut.Flip.present":9.968},"trace_dropped":false,"trace":"aps5-trace-2742004ed28f-36998.json.gz"}
{"commit":"50b32c145c0c","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3122,"ms":30015.861},"presents":835,"frame_ms":{"p50":35.865,"p90":36.571,"p99":37.671,"max":40.175},"gpu_busy_ms_per_present":32.362,"worker_busy_pct":{"queue worker 0x0":72.248},"top_phases_ms_per_frame":{"Driver.Packet":25.687,"Driver.Packet.draw":22.748,"Driver.Draw":22.714,"Driver.Draw.draw_enqueued":20.676,"Recorder.Sync":19.51,"VideoOut.Flip":9.293,"Driver.Present":9.245,"VideoOut.Flip.present":9.241},"trace_dropped":false,"trace":"aps5-trace-50b32c145c0c-38550.json.gz"}
{"commit":"2742004ed28f","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3035,"ms":30037.407},"presents":803,"frame_ms":{"p50":37.357,"p90":38.052,"p99":39.055,"max":41.336},"gpu_busy_ms_per_present":33.603,"worker_busy_pct":{"queue worker 0x0":70.956},"top_phases_ms_per_frame":{"Driver.Packet":26.266,"Driver.Packet.draw":23.286,"Driver.Draw":23.252,"Driver.Draw.draw_enqueued":21.332,"Recorder.Sync":20.192,"VideoOut.Flip":9.992,"Driver.Present":9.947,"VideoOut.Flip.present":9.942},"trace_dropped":false,"trace":"aps5-trace-2742004ed28f-39498.json.gz"}
{"commit":"50b32c145c0c","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3128,"ms":30004.5},"presents":835,"frame_ms":{"p50":35.882,"p90":36.496,"p99":37.44,"max":39.315},"gpu_busy_ms_per_present":32.365,"worker_busy_pct":{"queue worker 0x0":72.181},"top_phases_ms_per_frame":{"Driver.Packet":25.665,"Driver.Packet.draw":22.727,"Driver.Draw":22.693,"Driver.Draw.draw_enqueued":20.716,"Recorder.Sync":19.616,"VideoOut.Flip":9.285,"Driver.Present":9.241,"VideoOut.Flip.present":9.238},"trace_dropped":false,"trace":"aps5-trace-50b32c145c0c-40700.json.gz"}
{"commit":"2742004ed28f","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3049,"ms":30023.519},"presents":800,"frame_ms":{"p50":37.451,"p90":38.285,"p99":39.435,"max":40.918},"gpu_busy_ms_per_present":33.608,"worker_busy_pct":{"queue worker 0x0":70.929},"top_phases_ms_per_frame":{"Driver.Packet":26.343,"Driver.Packet.draw":23.381,"Driver.Draw":23.348,"Driver.Draw.draw_enqueued":21.372,"Recorder.Sync":20.271,"VideoOut.Flip":10.057,"Driver.Present":10.013,"VideoOut.Flip.present":10.007},"trace_dropped":false,"trace":"aps5-trace-2742004ed28f-41776.json.gz"}

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: AMD Radeon 760M (RADV PHOENIX), Mesa 25.0.7-2+deb13u1, Debian 13 / Linux 7.2.10-x64v3-xanmod1; paired correctness validation on main 2742004ed2 and PR 50b32c145c
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4987453842 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10337). Originally posted by [Filip722](https://github.com/Filip722) on 2026-10-23T18:26:22Z. --- ### What Scalar-buffer loads currently use 64-bit multiplication and comparison to check descriptor ranges, adding native GPU work in the Sons of Sparta menu. This change uses the low and high halves of a 32-bit extended product for the same bounds decision. - Preserve zero-stride byte sizing, products above 32 bits, offset-addition carry detection, descriptor validity and the existing fault/access paths. - Keep 64-bit arithmetic for GPU descriptor base-address addition and retain the shaderInt64 capability requirement. - Extend the existing runtime-buffer fixture with zero, short, exact, strided and large descriptor ranges. ### 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. --> Cooled matched repeats on 2026-10-25 UTC: main `2742004ed28f` versus exact PR head `50b32c145c0c`. Four main controls and three independent PR repeats; code and original patch are unchanged. The other performance PR is not included. The earlier mini-PC setup was thermally stressed, reaching 99–101°C on the GPU, and the captures lacked continuous focus verification. Those thermal conditions limited confidence in the earlier comparison. After a cooling upgrade, a six-minute baseline preflight found no thermal/PROCHOT flags in 1,441 samples. The new valid repeat cohort peaks at GPU 81°C and CPU package Tctl 80.875°C, with zero sampled thermal flags and 2599 MHz GPU clock throughout its timed windows. The old captures did not record firmware throttle flags, so thermal throttling is not a proven cause of the old stalls. Same PPSA28997 version 01.008.001 startup menu, converted executable, copied save seed and per-commit warmed shader/Mesa caches. Radeon 760M (RADV PHOENIX), Mesa 25.0.7-2+deb13u1, Debian 13 / Linux 7.2.10-x64v3-xanmod1, GCC 15.2.0. Wayland window 1152×648, guest 1920×1080. Each run starts with GPU/package ≤53°C for 10 seconds. Cross at 45 seconds; trace window `90:30` lets startup activity settle. Existing GPU power mode `high` was left unchanged. No SQTT/RGP, hardware profiling lock, extra profile/trace switch, validation or timing interception layer was used during measurement; output used a PTY. Window activation and geometry changes were monitored continuously. The ten valid captures remained active at 1152×648 throughout their measurement windows; all pre/post scene images were inspected locally and show the same menu. Two attempts failed the predeclared focus rule and remain disclosed: S2 p99 37.586 ms lost focus and was replaced by S2r; A4 p99 39.402 ms had a 123 ms focus interruption and was replaced by A4r. Both were excluded regardless of favorable timings. Fixed accepted order: A1, L1, S1, A2, S2r, L2, A3, L3, S3, A4r. All other captures were retained. Thermal metrics were sampled every 250 ms with a 96°C process guard. Package/current-limit flags and background GPU activity are retained in the audit. Runtime-library hashes match the exact builds; every summary is clean with no dropped events; all owned processes exited. | Run | Commit | FPS | Frame p50 ms | Frame p99 ms | Max frame ms | GPU ms/present | |---|---|---:|---:|---:|---:|---:| | A1 | `2742004ed28f` | 26.91 | 37.169 | 38.390 | 40.021 | 33.566 | | S1 | `50b32c145c0c` | 27.73 | 35.985 | 37.749 | 38.918 | 32.379 | | A2 | `2742004ed28f` | 26.72 | 37.367 | 39.162 | 41.502 | 33.592 | | S2r | `50b32c145c0c` | 27.82 | 35.865 | 37.671 | 40.175 | 32.362 | | A3 | `2742004ed28f` | 26.73 | 37.357 | 39.055 | 41.336 | 33.603 | | S3 | `50b32c145c0c` | 27.83 | 35.882 | 37.440 | 39.315 | 32.365 | | A4r | `2742004ed28f` | 26.65 | 37.451 | 39.435 | 40.918 | 33.608 | Present-weighted mean GPU time: **33.5922 → 32.3687 ms/present**, 1.2235 ms (3.64%) lower. PR p99 range: **37.440–37.749 ms**; main controls: **38.390–39.435 ms**. No frame over 50 ms occurred in the valid trace intervals. The earlier 60.851/67.350 ms p99 outliers did not reproduce. The earlier same-head runtime-library builds and all six focused correctness fixtures passed independently on main and each PR with Vulkan required, shader cache disabled and Khronos validation actually loaded: no missing-layer warnings, skips or VUID errors. Conventions and whitespace checks pass. No production change was indicated by the repeat investigation. These results cover this menu on one GPU; they do not establish broader gameplay, cross-title or console behavior. Cooling, focus control and settling time changed together, so the repeats do not isolate the historical stall's cause. [Original traces, digests and results](https://github.com/Filip722/AnyPS5/releases/download/pr10336-10337-performance-20261025/pr10336-10337-performance-20261025.zip) remain unchanged. The old A2 post-capture image selected another active window, was discarded, and is not claimed as scene verification. The original L1/S2 slow frames show long CPU-side packet-processing wall spans; that locates the delay on the host side but does not distinguish descheduling, waits or another cause. [Download the cooled-repeat traces, digests, all included/excluded summaries, thermal/focus telemetry, original-outlier analysis, thermal preflight and same-head correctness evidence](https://github.com/Filip722/AnyPS5/releases/download/pr10336-10337-cooled-repeats-20261025/pr10336-10337-cooled-repeats-20261025.zip). No game files, saves, screenshots, binaries or shader caches are included. Full current summary lines, in capture order: ```json {"commit":"2742004ed28f","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3060,"ms":30029.635},"presents":808,"frame_ms":{"p50":37.169,"p90":37.724,"p99":38.39,"max":40.021},"gpu_busy_ms_per_present":33.566,"worker_busy_pct":{"queue worker 0x0":70.919},"top_phases_ms_per_frame":{"Driver.Packet":26.08,"Driver.Packet.draw":23.134,"Driver.Draw":23.101,"Driver.Draw.draw_enqueued":21.134,"Recorder.Sync":20.038,"VideoOut.Flip":9.956,"Driver.Present":9.909,"VideoOut.Flip.present":9.904},"trace_dropped":false,"trace":"aps5-trace-2742004ed28f-34884.json.gz"} {"commit":"50b32c145c0c","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3123,"ms":30034.41},"presents":833,"frame_ms":{"p50":35.985,"p90":36.765,"p99":37.749,"max":38.918},"gpu_busy_ms_per_present":32.379,"worker_busy_pct":{"queue worker 0x0":72.284},"top_phases_ms_per_frame":{"Driver.Packet":25.778,"Driver.Packet.draw":22.768,"Driver.Draw":22.735,"Driver.Draw.draw_enqueued":20.772,"Recorder.Sync":19.603,"VideoOut.Flip":9.332,"Driver.Present":9.285,"VideoOut.Flip.present":9.282},"trace_dropped":false,"trace":"aps5-trace-50b32c145c0c-36548.json.gz"} {"commit":"2742004ed28f","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3040,"ms":30018.879},"presents":802,"frame_ms":{"p50":37.367,"p90":38.125,"p99":39.162,"max":41.502},"gpu_busy_ms_per_present":33.592,"worker_busy_pct":{"queue worker 0x0":70.958},"top_phases_ms_per_frame":{"Driver.Packet":26.274,"Driver.Packet.draw":23.28,"Driver.Draw":23.246,"Driver.Draw.draw_enqueued":21.274,"Recorder.Sync":20.114,"VideoOut.Flip":10.02,"Driver.Present":9.972,"VideoOut.Flip.present":9.968},"trace_dropped":false,"trace":"aps5-trace-2742004ed28f-36998.json.gz"} {"commit":"50b32c145c0c","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3122,"ms":30015.861},"presents":835,"frame_ms":{"p50":35.865,"p90":36.571,"p99":37.671,"max":40.175},"gpu_busy_ms_per_present":32.362,"worker_busy_pct":{"queue worker 0x0":72.248},"top_phases_ms_per_frame":{"Driver.Packet":25.687,"Driver.Packet.draw":22.748,"Driver.Draw":22.714,"Driver.Draw.draw_enqueued":20.676,"Recorder.Sync":19.51,"VideoOut.Flip":9.293,"Driver.Present":9.245,"VideoOut.Flip.present":9.241},"trace_dropped":false,"trace":"aps5-trace-50b32c145c0c-38550.json.gz"} {"commit":"2742004ed28f","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3035,"ms":30037.407},"presents":803,"frame_ms":{"p50":37.357,"p90":38.052,"p99":39.055,"max":41.336},"gpu_busy_ms_per_present":33.603,"worker_busy_pct":{"queue worker 0x0":70.956},"top_phases_ms_per_frame":{"Driver.Packet":26.266,"Driver.Packet.draw":23.286,"Driver.Draw":23.252,"Driver.Draw.draw_enqueued":21.332,"Recorder.Sync":20.192,"VideoOut.Flip":9.992,"Driver.Present":9.947,"VideoOut.Flip.present":9.942},"trace_dropped":false,"trace":"aps5-trace-2742004ed28f-39498.json.gz"} {"commit":"50b32c145c0c","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3128,"ms":30004.5},"presents":835,"frame_ms":{"p50":35.882,"p90":36.496,"p99":37.44,"max":39.315},"gpu_busy_ms_per_present":32.365,"worker_busy_pct":{"queue worker 0x0":72.181},"top_phases_ms_per_frame":{"Driver.Packet":25.665,"Driver.Packet.draw":22.727,"Driver.Draw":22.693,"Driver.Draw.draw_enqueued":20.716,"Recorder.Sync":19.616,"VideoOut.Flip":9.285,"Driver.Present":9.241,"VideoOut.Flip.present":9.238},"trace_dropped":false,"trace":"aps5-trace-50b32c145c0c-40700.json.gz"} {"commit":"2742004ed28f","dirty":false,"env":{"APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"90:30"},"gpu":"AMD Radeon 760M (RADV PHOENIX)","driver":"radv Mesa 25.0.7-2+deb13u1","os":"Linux 7.2.12-x64v3-xanmod1","cpu":"AMD Ryzen 5 7640HS w/ Radeon 760M Graphics","cpu_threads":12,"memory_mib":23820,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 90:30","first_present":3049,"ms":30023.519},"presents":800,"frame_ms":{"p50":37.451,"p90":38.285,"p99":39.435,"max":40.918},"gpu_busy_ms_per_present":33.608,"worker_busy_pct":{"queue worker 0x0":70.929},"top_phases_ms_per_frame":{"Driver.Packet":26.343,"Driver.Packet.draw":23.381,"Driver.Draw":23.348,"Driver.Draw.draw_enqueued":21.372,"Recorder.Sync":20.271,"VideoOut.Flip":10.057,"Driver.Present":10.013,"VideoOut.Flip.present":10.007},"trace_dropped":false,"trace":"aps5-trace-2742004ed28f-41776.json.gz"} ``` ### 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: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> AMD Radeon 760M (RADV PHOENIX), Mesa 25.0.7-2+deb13u1, Debian 13 / Linux 7.2.10-x64v3-xanmod1; paired correctness validation on main 2742004ed28f and PR 50b32c145c0c - [x] AI-assisted: <!-- yes / no --> yes
MarcZX10 commented 2026-10-24 21:00:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T21:00:22Z.

Review: APPROVED


Reviewed exact head 33aaab29be4330ab6f0aa2309a94b97f540bac1c. The byte-size calculation is preserved as stride == 0 ? records : stride * records by using an effective stride of 1 and OpUMulExtended. Member 0 is the low-order product and member 1 the high-order product per the Khronos SPIR-V specification; the 4 GiB fixture exercises the high-member path. With 32-bit guest offsets, any nonzero high product word makes every aligned guest offset plus its four-byte read fit; when the high word is zero, byte < align_down(low, 4) is equivalent to the previous byte + 4 <= size. The offset-addition carry, descriptor-validity predicate, fault/access paths and 64-bit BDA base addition are retained.

The regression cases include zero, short, exact, strided, 4 GiB and larger ranges. The author reports all six focused runtime fixtures passing with Khronos validation on the exact head, plus the paired trace report; the report appropriately limits the 3.70% mean GPU result to this startup menu on one AMD GPU and says tail latency did not consistently improve. I independently checked the overlap hunks for #6412, #7484, #7642, #7689, #9508 and #10193; none changes this scalar-bounds calculation. Conventions and git diff --check pass.

I could not rerun the Vulkan test locally because this environment has no vulkaninfo or /dev/dri device. Hosted product jobs are skipped by policy; the author-reported GPU results remain the available runtime evidence. I found no correctness blocker.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640007708 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10337#pullrequestreview-5640007708). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T21:00:22Z. **Review:** APPROVED --- Reviewed exact head `33aaab29be4330ab6f0aa2309a94b97f540bac1c`. The byte-size calculation is preserved as `stride == 0 ? records : stride * records` by using an effective stride of 1 and `OpUMulExtended`. Member 0 is the low-order product and member 1 the high-order product per the [Khronos SPIR-V specification](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html); the 4 GiB fixture exercises the high-member path. With 32-bit guest offsets, any nonzero high product word makes every aligned guest offset plus its four-byte read fit; when the high word is zero, `byte < align_down(low, 4)` is equivalent to the previous `byte + 4 <= size`. The offset-addition carry, descriptor-validity predicate, fault/access paths and 64-bit BDA base addition are retained. The regression cases include zero, short, exact, strided, 4 GiB and larger ranges. The author reports all six focused runtime fixtures passing with Khronos validation on the exact head, plus the paired trace report; the report appropriately limits the 3.70% mean GPU result to this startup menu on one AMD GPU and says tail latency did not consistently improve. I independently checked the overlap hunks for #6412, #7484, #7642, #7689, #9508 and #10193; none changes this scalar-bounds calculation. Conventions and `git diff --check` pass. I could not rerun the Vulkan test locally because this environment has no `vulkaninfo` or `/dev/dri` device. Hosted product jobs are skipped by policy; the author-reported GPU results remain the available runtime evidence. I found no correctness blocker.
MarcZX10 commented 2026-10-24 21:04:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T21:04:04Z.

Review: CHANGES_REQUESTED


Follow-up to my earlier approval: after refreshing upstream/main, this branch's merge base is 11b175a6b956, with 7,168 current-main commits since it. CONTRIBUTING.md asks contributors to keep branches up to date with main. The GPU fixtures and performance comparison in the PR were run on that older base, while current hosted product tests are skipped. Please update to current main and rerun the focused scalar-buffer runtime cases with Khronos validation, then refresh the paired performance comparison on the same current base. The reported result is carefully scoped, but it does not validate the current integration. I will revisit approval after current-base evidence is available.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640020879 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10337#pullrequestreview-5640020879). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T21:04:04Z. **Review:** CHANGES_REQUESTED --- Follow-up to my earlier approval: after refreshing `upstream/main`, this branch's merge base is `11b175a6b956`, with 7,168 current-main commits since it. `CONTRIBUTING.md` asks contributors to keep branches up to date with main. The GPU fixtures and performance comparison in the PR were run on that older base, while current hosted product tests are skipped. Please update to current main and rerun the focused scalar-buffer runtime cases with Khronos validation, then refresh the paired performance comparison on the same current base. The reported result is carefully scoped, but it does not validate the current integration. I will revisit approval after current-base evidence is available.
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!10337
No description provided.