revert(shader): check scalar buffer bounds in 64 bits again (#10337) #12529

Merged
imellag merged 1 commit from upstream-pr/12529 into main 2026-10-29 20:20:20 +00:00
imellag commented 2026-10-28 17:50:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by imellag on 2026-10-28T17:50:31Z.


What

Reverts the shader change of #10337 (merge 58dfa6689f): EmitRuntimeScalarBufferLoad (SpirvRuntimeBuffer.cpp) checks a scalar buffer load against the descriptor's size with the 64-bit product and compare again, instead of the 32-bit OpUMulExtended and its two extracts.

On MoltenVK the 32-bit form raises the GPU time per frame by 50 to 90 percent in the two titles I measured, so God of War Sons of Sparta loses about a third of its frame rate and Planet of Lana halves. The report and the bisection are on #10337. A 32-bit check that is not slower on MoltenVK can come back as a new PR. #10337 measured a 3.6 percent GPU gain on RADV in one menu; this revert gives that back on RADV.

The extended BufferDescriptorRuntime.cpp fixture from #10337 stays: it covers zero, short, exact, strided and large descriptor ranges, and the 64-bit check makes the same bounds decision for all of them. Only SpirvRuntimeBuffer.cpp changes; git revert -m 1 of the merge would also drop the fixture.

Tested

Apple M4 Pro, macOS 27.2, MoltenVK 1.4.2, x86_64 Release under Rosetta. main doesn't run titles or the AGC execution tests on macOS yet, so both arms are a support branch, not main:

  • base: fork branch support/macos-boot-1028 at eca446163e = main 750cf6cf48 + only the macOS boot PRs #7631 #10552 #11249 #11447 #11554 #10669 #7804 (the conflict of #7631 with main's #10898 in DirectMemory.cpp, and #7804's in Process.cpp and Time.cpp, resolved locally);
  • change: fork branch bench/revert-10337 at 0d46353574 = that base + this PR's commit cherry-picked. git diff eca446163e 0d46353574 is this PR's diff and nothing else: one file, SpirvRuntimeBuffer.cpp, 4 insertions and 11 deletions.

Both built from clean trees with every submodule at main's pins ("dirty":false below).

God of War Sons of Sparta (PPSA28997 01.008.001), same pad file, warm shader cache per side, mimalloc injected on both sides, 10 s window at 135 s (the Cyclops fight). Summary lines, traces and tools/trace_digest.py output attached:

{"commit":"eca446163efe","dirty":false,"env":{"APS5_ASYNC_PIPELINES":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"135:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"Apple M4 Pro","driver":"MoltenVK 1.4.2","os":"Darwin 27.2.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":12,"memory_mib":24576,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 135:10","first_present":5215,"ms":10005.572},"presents":236,"frame_ms":{"p50":41.292,"p90":42.622,"p99":65.709,"max":66.602},"gpu_busy_ms_per_present":38.882,"worker_busy_pct":{"queue worker 0x0":77.961},"top_phases_ms_per_frame":{"Driver.Packet":33.011,"Driver.Packet.draw":31.242,"Driver.Draw":31.189,"Driver.Draw.draw_enqueued":26.878,"Recorder.Sync":26.167,"VideoOut.Flip":8.723,"VideoOut.Flip.present":7.804,"Driver.Present":7.800},"trace_dropped":false,"trace":"aps5-trace-eca446163efe-81660.json.gz"}
{"commit":"0d4635357420","dirty":false,"env":{"APS5_ASYNC_PIPELINES":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"135:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"Apple M4 Pro","driver":"MoltenVK 1.4.2","os":"Darwin 27.2.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":12,"memory_mib":24576,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 135:10","first_present":6903,"ms":10016.817},"presents":442,"frame_ms":{"p50":22.160,"p90":23.802,"p99":30.490,"max":31.821},"gpu_busy_ms_per_present":19.842,"worker_busy_pct":{"queue worker 0x0":78.935},"top_phases_ms_per_frame":{"Driver.Packet":17.851,"Driver.Packet.draw":16.361,"Driver.Draw":16.317,"Driver.Draw.draw_enqueued":12.414,"Recorder.Sync":11.788,"VideoOut.Flip":4.327,"Graphics.Draw":3.890,"VideoOut.Flip.present":3.521},"trace_dropped":false,"trace":"aps5-trace-0d4635357420-86129.json.gz"}
base eca446163e change 0d46353574
presents in the window 236 442
frame p50 / p99 41.3 / 65.7 ms 22.2 / 30.5 ms
GPU busy per present 38.9 ms 19.8 ms
Recorder.Sync per frame (waits for that GPU) 26.2 ms 11.8 ms

The warm-up runs before these captures, without a trace window: 35.2 fps on the base, 51.7 fps with the change (from 30 s).

Bisection, from the earlier runs (GPU busy per present averaged over 70-110 s, gameplay before the fight): d13b3d7c55 good, 750cf6cf48 bad, 287 first-parent commits, 10 steps. The last good is 899b2d361f (#10336) at 14.6 ms per present, the first bad is 58dfa6689f (#10337) at 23.4 ms. Every commit before it measured 14.6-14.9 ms, every one after 21.6-23.6 ms. Planet of Lana (PPSA19450), capped at 30 fps by the game, went from 32.3 to 15.5 fps on main with #10337; I did not repeat it on this exact pair.

Shader test, on the same two builds: ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -R '^agc_driver_buffer_descriptor_runtime$' -V (the fixture #10337 extended): passes on both, no was not found but was requested by env var VK_INSTANCE_LAYERS and no VUID- in either log. Unedited logs attached (test-base.txt, test-pr.txt; only the local paths replaced by <bench>).

python3 tools/check_conventions.py --base upstream/main: passed. tools/pr_overlap.py: #6412, #7642, #9508 and #10193 also edit SpirvRuntimeBuffer.cpp but conflict with main, so it couldn't compare them; none of them touches EmitRuntimeScalarBufferLoad.

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: Apple M4 Pro, MoltenVK 1.4.2, macOS 27.2
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5055133613 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12529). Originally posted by [imellag](https://github.com/imellag) on 2026-10-28T17:50:31Z. --- ### What Reverts the shader change of #10337 (merge `58dfa6689f`): `EmitRuntimeScalarBufferLoad` (`SpirvRuntimeBuffer.cpp`) checks a scalar buffer load against the descriptor's size with the 64-bit product and compare again, instead of the 32-bit `OpUMulExtended` and its two extracts. On MoltenVK the 32-bit form raises the GPU time per frame by 50 to 90 percent in the two titles I measured, so God of War Sons of Sparta loses about a third of its frame rate and Planet of Lana halves. The report and the bisection are on #10337. A 32-bit check that is not slower on MoltenVK can come back as a new PR. #10337 measured a 3.6 percent GPU gain on RADV in one menu; this revert gives that back on RADV. The extended `BufferDescriptorRuntime.cpp` fixture from #10337 stays: it covers zero, short, exact, strided and large descriptor ranges, and the 64-bit check makes the same bounds decision for all of them. Only `SpirvRuntimeBuffer.cpp` changes; `git revert -m 1` of the merge would also drop the fixture. ### Tested Apple M4 Pro, macOS 27.2, MoltenVK 1.4.2, x86_64 Release under Rosetta. `main` doesn't run titles or the AGC execution tests on macOS yet, so both arms are a support branch, not `main`: - base: fork branch `support/macos-boot-1028` at `eca446163e` = `main` `750cf6cf48` + only the macOS boot PRs #7631 #10552 #11249 #11447 #11554 #10669 #7804 (the conflict of #7631 with `main`'s #10898 in DirectMemory.cpp, and #7804's in Process.cpp and Time.cpp, resolved locally); - change: fork branch `bench/revert-10337` at `0d46353574` = that base + this PR's commit cherry-picked. `git diff eca446163e 0d46353574` is this PR's diff and nothing else: one file, `SpirvRuntimeBuffer.cpp`, 4 insertions and 11 deletions. Both built from clean trees with every submodule at `main`'s pins (`"dirty":false` below). **God of War Sons of Sparta** (PPSA28997 01.008.001), same pad file, warm shader cache per side, mimalloc injected on both sides, 10 s window at 135 s (the Cyclops fight). Summary lines, traces and `tools/trace_digest.py` output attached: ```json {"commit":"eca446163efe","dirty":false,"env":{"APS5_ASYNC_PIPELINES":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"135:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"Apple M4 Pro","driver":"MoltenVK 1.4.2","os":"Darwin 27.2.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":12,"memory_mib":24576,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 135:10","first_present":5215,"ms":10005.572},"presents":236,"frame_ms":{"p50":41.292,"p90":42.622,"p99":65.709,"max":66.602},"gpu_busy_ms_per_present":38.882,"worker_busy_pct":{"queue worker 0x0":77.961},"top_phases_ms_per_frame":{"Driver.Packet":33.011,"Driver.Packet.draw":31.242,"Driver.Draw":31.189,"Driver.Draw.draw_enqueued":26.878,"Recorder.Sync":26.167,"VideoOut.Flip":8.723,"VideoOut.Flip.present":7.804,"Driver.Present":7.800},"trace_dropped":false,"trace":"aps5-trace-eca446163efe-81660.json.gz"} {"commit":"0d4635357420","dirty":false,"env":{"APS5_ASYNC_PIPELINES":"1","APS5_NO_PAD_INPUT":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"135:10","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"Apple M4 Pro","driver":"MoltenVK 1.4.2","os":"Darwin 27.2.0","cpu":"VirtualApple @ 2.50GHz","cpu_threads":12,"memory_mib":24576,"title_id":"PPSA28997","title":"God of War Sons of Sparta","content_version":"01.008.001","resolution":"1920x1080","window":{"spec":"seconds 135:10","first_present":6903,"ms":10016.817},"presents":442,"frame_ms":{"p50":22.160,"p90":23.802,"p99":30.490,"max":31.821},"gpu_busy_ms_per_present":19.842,"worker_busy_pct":{"queue worker 0x0":78.935},"top_phases_ms_per_frame":{"Driver.Packet":17.851,"Driver.Packet.draw":16.361,"Driver.Draw":16.317,"Driver.Draw.draw_enqueued":12.414,"Recorder.Sync":11.788,"VideoOut.Flip":4.327,"Graphics.Draw":3.890,"VideoOut.Flip.present":3.521},"trace_dropped":false,"trace":"aps5-trace-0d4635357420-86129.json.gz"} ``` | | base `eca446163e` | change `0d46353574` | |---|---|---| | presents in the window | 236 | 442 | | frame p50 / p99 | 41.3 / 65.7 ms | 22.2 / 30.5 ms | | GPU busy per present | 38.9 ms | 19.8 ms | | `Recorder.Sync` per frame (waits for that GPU) | 26.2 ms | 11.8 ms | The warm-up runs before these captures, without a trace window: 35.2 fps on the base, 51.7 fps with the change (from 30 s). **Bisection**, from the earlier runs (GPU busy per present averaged over 70-110 s, gameplay before the fight): `d13b3d7c55` good, `750cf6cf48` bad, 287 first-parent commits, 10 steps. The last good is `899b2d361f` (#10336) at 14.6 ms per present, the first bad is `58dfa6689f` (#10337) at 23.4 ms. Every commit before it measured 14.6-14.9 ms, every one after 21.6-23.6 ms. Planet of Lana (PPSA19450), capped at 30 fps by the game, went from 32.3 to 15.5 fps on `main` with #10337; I did not repeat it on this exact pair. **Shader test**, on the same two builds: `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -R '^agc_driver_buffer_descriptor_runtime$' -V` (the fixture #10337 extended): passes on both, no `was not found but was requested by env var VK_INSTANCE_LAYERS` and no `VUID-` in either log. Unedited logs attached (`test-base.txt`, `test-pr.txt`; only the local paths replaced by `<bench>`). `python3 tools/check_conventions.py --base upstream/main`: passed. `tools/pr_overlap.py`: #6412, #7642, #9508 and #10193 also edit `SpirvRuntimeBuffer.cpp` but conflict with `main`, so it couldn't compare them; none of them touches `EmitRuntimeScalarBufferLoad`. ### 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: Apple M4 Pro, MoltenVK 1.4.2, macOS 27.2 - [x] AI-assisted: yes
MarcZX10 commented 2026-10-28 17:56:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T17:56:59Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The revert is plausibly motivated by the reported MoltenVK regression, but the speed claim and shader validation are not yet documented with the evidence required by the repository rules.

What I ran

Reviewed head 1fd69ab76746d874666abb3d6710318cda5f8309 against base e4da19aff06e25ae16b90f460dff22e8ac1eb786; it merges cleanly (merge tree 20ae603e4bfcf4534a530281d827f2442a126367). Environment: Debian 12. No compiler or local GPU tests were run.

git fetch upstream main --quiet
git fetch upstream refs/pull/12529/head:refs/codex/review-12529 --quiet
git merge-tree --write-tree upstream/main refs/codex/review-12529
git diff --check upstream/main..refs/codex/review-12529
gh pr diff 12529 --repo boykopovar/AnyPS5
gh pr checks 12529 --repo boykopovar/AnyPS5

Results

Check Result
Merge against current main Clean; merge tree 20ae603e4bfcf4534a530281d827f2442a126367
git diff --check Passed (exit 0; no output)
Conventions, intake, eligibility Passed on the reviewed head
Product Linux and Windows jobs Skipped
Register-context and write-watch jobs Skipped
Relinker Linux, Windows, macOS, macOS x86_64, and ASAN jobs Pending at review time
MoltenVK performance and AGC runtime tests Reported by the author on a macOS support branch; not independently run here, and raw test logs/summary captures are not present in the PR description
Unedited hosted check output
labels	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/40739528733/job/122997035282
relinker (macos-latest, clang++)	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998882910
relinker (macos-latest, clang++, x86_64)	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998883021
relinker (ubuntu-latest, g++)	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998882932
relinker (windows-latest, g++)	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998882823
windows	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998885521
intake	pass	5s	https://github.com/boykopovar/AnyPS5/actions/runs/40739529244/job/122997037558
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998885132
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998886375
relinker-asan	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998883010
conventions	pass	18s	https://github.com/boykopovar/AnyPS5/actions/runs/40739529148/job/122997036662
eligibility	pass	6s	https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122997035781
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998885036

The merge check printed:

20ae603e4bfcf4534a530281d827f2442a126367

git diff --check printed no output and exited 0.

Negative control

Assertion Change to code under test Result
The descriptor bounds fixture distinguishes the 32-bit and 64-bit implementations without changing valid/invalid decisions No local test binary was built or run. The PR says the fixture passed on its macOS support branch with and without this commit, but does not include raw run output or both exact tested SHAs Not independently exercised here; author-reported only

Findings

Blocking

  • Performance report is incomplete. The PR claims a substantial speed change, but includes aggregate FPS and GPU-time figures rather than the corresponding aps5-summary.jsonl lines, and attaches no matching traces or tools/trace_digest.py output. The repository asks speed-changing PRs to provide same-machine, same-scene captures for the base and change, with the summary lines and traces. The posted numbers are useful context, but do not let reviewers verify the capture metadata or inspect the traces. Please add the two summary lines and matching trace files, plus each digest. Since macOS main does not currently boot the title, identify the exact support-branch base and candidate SHAs used, show that the pair differs only by this patch, and state that limitation alongside the evidence.

  • Shader test evidence needs reproducible identifiers/output. The PR says agc_driver_buffer_descriptor_runtime passed on a support branch and with this commit under Vulkan validation, but gives neither the exact tested SHAs nor the test output. The contribution rules call for the same focused shader/AGC tests on the base and change, with validation enabled and logs checked for missing-layer warnings and new VUID- errors. Please add the exact baseline/candidate SHAs and concise unedited test output (or a linked log) showing those checks. The listed current hosted product jobs are skipped.

Non-blocking

  • The revert restores the prior 64-bit bounds calculation and keeps the descriptor fixture; I found no source-level correctness defect in the one-file diff. The reported Metal result is a reasonable reason to investigate this regression, while the PR also acknowledges the measured RADV tradeoff.

Sources

Not verified

I did not run the MoltenVK captures, the AGC runtime test, or a local build. Product Linux/Windows jobs were skipped; the relinker and ASAN jobs were pending. Windows, Linux Vulkan hardware, and console behavior were not tested by me.

To get this to a good state

Please add the paired summary lines, matching traces and digests, and exact validation-test baseline/candidate SHAs with output. I’ll re-check the evidence and rerun any available focused checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5687315760 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12529#pullrequestreview-5687315760). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T17:56:59Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The revert is plausibly motivated by the reported MoltenVK regression, but the speed claim and shader validation are not yet documented with the evidence required by the repository rules. ### What I ran Reviewed head `1fd69ab76746d874666abb3d6710318cda5f8309` against base `e4da19aff06e25ae16b90f460dff22e8ac1eb786`; it merges cleanly (merge tree `20ae603e4bfcf4534a530281d827f2442a126367`). Environment: Debian 12. No compiler or local GPU tests were run. ```sh git fetch upstream main --quiet git fetch upstream refs/pull/12529/head:refs/codex/review-12529 --quiet git merge-tree --write-tree upstream/main refs/codex/review-12529 git diff --check upstream/main..refs/codex/review-12529 gh pr diff 12529 --repo boykopovar/AnyPS5 gh pr checks 12529 --repo boykopovar/AnyPS5 ``` ### Results | Check | Result | |---|---| | Merge against current `main` | Clean; merge tree `20ae603e4bfcf4534a530281d827f2442a126367` | | `git diff --check` | Passed (exit 0; no output) | | Conventions, intake, eligibility | Passed on the reviewed head | | Product Linux and Windows jobs | Skipped | | Register-context and write-watch jobs | Skipped | | Relinker Linux, Windows, macOS, macOS x86_64, and ASAN jobs | Pending at review time | | MoltenVK performance and AGC runtime tests | Reported by the author on a macOS support branch; not independently run here, and raw test logs/summary captures are not present in the PR description | <details> <summary>Unedited hosted check output</summary> ```text labels pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/40739528733/job/122997035282 relinker (macos-latest, clang++) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998882910 relinker (macos-latest, clang++, x86_64) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998883021 relinker (ubuntu-latest, g++) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998882932 relinker (windows-latest, g++) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998882823 windows skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998885521 intake pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/40739529244/job/122997037558 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998885132 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998886375 relinker-asan pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998883010 conventions pass 18s https://github.com/boykopovar/AnyPS5/actions/runs/40739529148/job/122997036662 eligibility pass 6s https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122997035781 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/40739529736/job/122998885036 ``` The merge check printed: ```text 20ae603e4bfcf4534a530281d827f2442a126367 ``` `git diff --check` printed no output and exited 0. ### Negative control | Assertion | Change to code under test | Result | |---|---|---| | The descriptor bounds fixture distinguishes the 32-bit and 64-bit implementations without changing valid/invalid decisions | No local test binary was built or run. The PR says the fixture passed on its macOS support branch with and without this commit, but does not include raw run output or both exact tested SHAs | Not independently exercised here; author-reported only | ### Findings **Blocking** - **Performance report is incomplete.** The PR claims a substantial speed change, but includes aggregate FPS and GPU-time figures rather than the corresponding `aps5-summary.jsonl` lines, and attaches no matching traces or `tools/trace_digest.py` output. The repository asks speed-changing PRs to provide same-machine, same-scene captures for the base and change, with the summary lines and traces. The posted numbers are useful context, but do not let reviewers verify the capture metadata or inspect the traces. Please add the two summary lines and matching trace files, plus each digest. Since macOS `main` does not currently boot the title, identify the exact support-branch base and candidate SHAs used, show that the pair differs only by this patch, and state that limitation alongside the evidence. - **Shader test evidence needs reproducible identifiers/output.** The PR says `agc_driver_buffer_descriptor_runtime` passed on a support branch and with this commit under Vulkan validation, but gives neither the exact tested SHAs nor the test output. The contribution rules call for the same focused shader/AGC tests on the base and change, with validation enabled and logs checked for missing-layer warnings and new `VUID-` errors. Please add the exact baseline/candidate SHAs and concise unedited test output (or a linked log) showing those checks. The listed current hosted product jobs are skipped. **Non-blocking** - The revert restores the prior 64-bit bounds calculation and keeps the descriptor fixture; I found no source-level correctness defect in the one-file diff. The reported Metal result is a reasonable reason to investigate this regression, while the PR also acknowledges the measured RADV tradeoff. ### Sources - [Contribution rules at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/e4da19aff06e25ae16b90f460dff22e8ac1eb786/CONTRIBUTING.md) - [Performance report form at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/e4da19aff06e25ae16b90f460dff22e8ac1eb786/.github/ISSUE_TEMPLATE/performance.yml) - [Reverted bounds implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/1fd69ab76746d874666abb3d6710318cda5f8309/core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp) - [Original 32-bit change and runtime-buffer fixture at the merged #10337 commit](https://github.com/boykopovar/AnyPS5/blob/58dfa6689f92e3b1eda56dd45b63634b02c98fd3/core/libs/prx/libSceAgcDriver/tests/execution/BufferDescriptorRuntime.cpp) ### Not verified I did not run the MoltenVK captures, the AGC runtime test, or a local build. Product Linux/Windows jobs were skipped; the relinker and ASAN jobs were pending. Windows, Linux Vulkan hardware, and console behavior were not tested by me. ### To get this to a good state Please add the paired summary lines, matching traces and digests, and exact validation-test baseline/candidate SHAs with output. I’ll re-check the evidence and rerun any available focused checks on the updated head.
MarcZX10 commented 2026-10-29 07:27:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T07:27:35Z.

Review: CHANGES_REQUESTED


Re-checked — changes still requested

The author has now supplied paired support-branch captures, digests and test logs, which addresses the missing-evidence request in substance. I inspected the actual attachments. The capture metadata includes three additional APS5_TRACE_* switches disallowed by the performance-report form, and the CTest logs do not show the required Vulkan validation-layer configuration. I cannot treat those runs as satisfying the repository’s reporting/test requirements yet.

What I ran

  • Refreshed the exact PR head, current checks and review history.
  • Inspected the linked summary/digest files and both attached CTest logs.
  • Compared the tested patch with the current PR patch using git patch-id; the patch IDs match.
  • Checked current-main merge preview, merge-base, and git diff --check.
  • Manually checked the reported overlap with #9508: it edits separate hunks in SpirvRuntimeBuffer.cpp; the pairwise merge auto-merges that file, although the broader pairwise tree has other conflicts.
  • Did not run a local build, test or title capture.

Results

Check Result
Current-main merge preview Clean
git diff --check Pass
Hosted relinker, ASan, conventions, eligibility, intake and labels Passed
Hosted product Windows/Linux and specialized jobs Skipped
Author-reported MoltenVK A/B and digests Present; pair uses matching PR patch
Author-reported agc_driver_buffer_descriptor_runtime Passes in both arms, but logs do not show the required validation-layer environment
Independent local execution Not run
Unedited source excerpts from the attached test logs
Test command: <bench>/build-main/tests/agc_driver_buffer_descriptor_runtime_tests
Environment variables:
 ANYPS5_NO_SHADER_CACHE=1
 APS5_NO_PIPELINE_JOURNAL=1
...
1/1 Test #823: agc_driver_buffer_descriptor_runtime ... Passed

Test command: <bench>/build-main/tests/agc_driver_buffer_descriptor_runtime_tests
Environment variables:
 ANYPS5_NO_SHADER_CACHE=1
 APS5_NO_PIPELINE_JOURNAL=1
...
1/1 Test #823: agc_driver_buffer_descriptor_runtime ... Passed
$ git merge-base upstream/main refs/review/upstream-12529
2199ee0d478096a794c933321cdad7c0ec2ea94e
$ git rev-list --left-right --count upstream/main...refs/review/upstream-12529
338 1
$ git merge-tree --write-tree upstream/main refs/review/upstream-12529
dc8d1e9dba9035164876c6ecacbb176a26dc1cdd
$ git diff --check upstream/main...refs/review/upstream-12529
(no output; exit status 0)
$ git diff 2199ee0d478096a794c933321cdad7c0ec2ea94e refs/review/upstream-12529 -- SpirvRuntimeBuffer.cpp | git patch-id --stable
262ea38f09d9193b4a18e357e8a7f0c3faf72050
$ git diff eca446163efe 0d46353574208cba6b7a4814f3f8a8a63ded8a0f -- SpirvRuntimeBuffer.cpp | git patch-id --stable
262ea38f09d9193b4a18e357e8a7f0c3faf72050

Negative control

The uploaded base and candidate test logs both report 1/1 pass. I did not independently rerun the test or its control.

Findings

Blocking

  • Recapture the paired performance traces with APS5_TRACE_SECONDS=135:10 as the only APS5_TRACE_*/APS5_PROFILE_* switch. The supplied summary lines list APS5_TRACE_DIR, APS5_TRACE_EVENTS and APS5_TRACE_SUMMARY_EVERY, contrary to the capture form. Keep the same machine, scene and support-branch base/candidate arrangement, and attach the new summary lines, traces and digests.
  • Rerun agc_driver_buffer_descriptor_runtime on both support-branch arms with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. The attached logs show only ANYPS5_NO_SHADER_CACHE=1 and APS5_NO_PIPELINE_JOURNAL=1; they do not establish that validation was enabled or that the loader accepted the requested layer.

Non-blocking

  • The benchmark candidate’s patch ID matches the current PR’s single-file patch. The #9508 change touches other hunks in the same file; my pairwise check found no same-hunk conflict in that file.

Sources

Not verified

I did not independently reproduce the performance results or the reported test outcomes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694205784 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12529#pullrequestreview-5694205784). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T07:27:35Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes still requested The author has now supplied paired support-branch captures, digests and test logs, which addresses the missing-evidence request in substance. I inspected the actual attachments. The capture metadata includes three additional `APS5_TRACE_*` switches disallowed by the performance-report form, and the CTest logs do not show the required Vulkan validation-layer configuration. I cannot treat those runs as satisfying the repository’s reporting/test requirements yet. ## What I ran - Refreshed the exact PR head, current checks and review history. - Inspected the linked summary/digest files and both attached CTest logs. - Compared the tested patch with the current PR patch using `git patch-id`; the patch IDs match. - Checked current-main merge preview, merge-base, and `git diff --check`. - Manually checked the reported overlap with #9508: it edits separate hunks in `SpirvRuntimeBuffer.cpp`; the pairwise merge auto-merges that file, although the broader pairwise tree has other conflicts. - Did not run a local build, test or title capture. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean | | `git diff --check` | Pass | | Hosted relinker, ASan, conventions, eligibility, intake and labels | Passed | | Hosted product Windows/Linux and specialized jobs | Skipped | | Author-reported MoltenVK A/B and digests | Present; pair uses matching PR patch | | Author-reported `agc_driver_buffer_descriptor_runtime` | Passes in both arms, but logs do not show the required validation-layer environment | | Independent local execution | Not run | <details><summary>Unedited source excerpts from the attached test logs</summary> ```text Test command: <bench>/build-main/tests/agc_driver_buffer_descriptor_runtime_tests Environment variables: ANYPS5_NO_SHADER_CACHE=1 APS5_NO_PIPELINE_JOURNAL=1 ... 1/1 Test #823: agc_driver_buffer_descriptor_runtime ... Passed Test command: <bench>/build-main/tests/agc_driver_buffer_descriptor_runtime_tests Environment variables: ANYPS5_NO_SHADER_CACHE=1 APS5_NO_PIPELINE_JOURNAL=1 ... 1/1 Test #823: agc_driver_buffer_descriptor_runtime ... Passed ``` ```text $ git merge-base upstream/main refs/review/upstream-12529 2199ee0d478096a794c933321cdad7c0ec2ea94e $ git rev-list --left-right --count upstream/main...refs/review/upstream-12529 338 1 $ git merge-tree --write-tree upstream/main refs/review/upstream-12529 dc8d1e9dba9035164876c6ecacbb176a26dc1cdd $ git diff --check upstream/main...refs/review/upstream-12529 (no output; exit status 0) $ git diff 2199ee0d478096a794c933321cdad7c0ec2ea94e refs/review/upstream-12529 -- SpirvRuntimeBuffer.cpp | git patch-id --stable 262ea38f09d9193b4a18e357e8a7f0c3faf72050 $ git diff eca446163efe 0d46353574208cba6b7a4814f3f8a8a63ded8a0f -- SpirvRuntimeBuffer.cpp | git patch-id --stable 262ea38f09d9193b4a18e357e8a7f0c3faf72050 ``` </details> ## Negative control The uploaded base and candidate test logs both report 1/1 pass. I did not independently rerun the test or its control. ## Findings ### Blocking - Recapture the paired performance traces with `APS5_TRACE_SECONDS=135:10` as the only `APS5_TRACE_*`/`APS5_PROFILE_*` switch. The supplied summary lines list `APS5_TRACE_DIR`, `APS5_TRACE_EVENTS` and `APS5_TRACE_SUMMARY_EVERY`, contrary to the capture form. Keep the same machine, scene and support-branch base/candidate arrangement, and attach the new summary lines, traces and digests. - Rerun `agc_driver_buffer_descriptor_runtime` on both support-branch arms with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`. The attached logs show only `ANYPS5_NO_SHADER_CACHE=1` and `APS5_NO_PIPELINE_JOURNAL=1`; they do not establish that validation was enabled or that the loader accepted the requested layer. ### Non-blocking - The benchmark candidate’s patch ID matches the current PR’s single-file patch. The #9508 change touches other hunks in the same file; my pairwise check found no same-hunk conflict in that file. ## Sources - [Current PR head `1fd69ab76746d874666abb3d6710318cda5f8309`](https://github.com/boykopovar/AnyPS5/commit/1fd69ab76746d874666abb3d6710318cda5f8309) - [Author’s paired capture and test-log report](https://github.com/boykopovar/AnyPS5/pull/12529#issuecomment-6480127570) - [Attached base test log](https://github.com/user-attachments/files/34101159/test-base.txt) - [Attached candidate test log](https://github.com/user-attachments/files/34101160/test-pr.txt) - [Capture metadata and digest, base](https://github.com/user-attachments/files/34101155/digest-base.md) - [Capture metadata and digest, candidate](https://github.com/user-attachments/files/34101156/digest-pr.md) - [Performance capture requirements](https://github.com/boykopovar/AnyPS5/blob/edf6804cf52c62eacafc592dd6142cb4efe5bd05/.github/ISSUE_TEMPLATE/performance.yml) - [Focused shader-validation requirements](https://github.com/boykopovar/AnyPS5/blob/edf6804cf52c62eacafc592dd6142cb4efe5bd05/AGENTS.md#L14) ## Not verified I did not independently reproduce the performance results or the reported test outcomes.
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!12529
No description provided.