docs: correct the CMake minimum version and the f32 flush probe location #15122

Merged
MarcZX10 merged 3 commits from upstream-pr/15122 into main 2026-11-06 23:34:19 +00:00
MarcZX10 commented 2026-11-02 17:30:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T17:30:48Z.


What

Two documentation statements that the code does not support:

  • docs/dev/BUILD.md: the minimum CMake version is 3.21 for the test build (the test CMake scripts use file(COPY_FILE), added in 3.21), not 3.22.1; CMakeLists.txt:1 declares 3.20 for the main build.

  • docs/dev/ARCHITECTURE.md: the f32 flush probe is FloatFlushProbe.cpp, not an agc_driver_f32_denormal_flush program, which does not exist.

  • 0b1ea3155f docs(build): correct the minimum CMake version (3.22.1 -> 3.20)

  • 682921f1fd docs(architecture): correct the location of the f32 flush probe programs

Tested

  • Documentation only; no build needed.
  • tools/check_conventions.py --base upstream/main and git diff --check upstream/main: clean.
  • The architecture correction was checked against core/libs/prx/libSceAgcDriver/Execution/src/FloatFlushProbe.cpp.
  • The CMake correction was checked against CMakeLists.txt:1, core/libs/tests/AvPlayerHttpModules.cmake:42 and core/libs/tests/SigvecModules.cmake:18 (file(COPY_FILE), added in CMake 3.21 per CMake's documentation). Not run with an older CMake.

Not verified

  • The FFMPEG and Tracy version claims in BUILD.md.

Checklist

  • Based on current main; #15070 covers a different CONVENTIONS line
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5124588627 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15122). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T17:30:48Z. --- ### What Two documentation statements that the code does not support: - `docs/dev/BUILD.md`: the minimum CMake version is 3.21 for the test build (the test CMake scripts use `file(COPY_FILE)`, added in 3.21), not 3.22.1; `CMakeLists.txt:1` declares 3.20 for the main build. - `docs/dev/ARCHITECTURE.md`: the f32 flush probe is `FloatFlushProbe.cpp`, not an `agc_driver_f32_denormal_flush` program, which does not exist. - 0b1ea3155f docs(build): correct the minimum CMake version (3.22.1 -> 3.20) - 682921f1fd docs(architecture): correct the location of the f32 flush probe programs ### Tested - Documentation only; no build needed. - `tools/check_conventions.py --base upstream/main` and `git diff --check upstream/main`: clean. - The architecture correction was checked against `core/libs/prx/libSceAgcDriver/Execution/src/FloatFlushProbe.cpp`. - The CMake correction was checked against `CMakeLists.txt:1`, `core/libs/tests/AvPlayerHttpModules.cmake:42` and `core/libs/tests/SigvecModules.cmake:18` (`file(COPY_FILE)`, added in CMake 3.21 per CMake's documentation). Not run with an older CMake. ### Not verified - The FFMPEG and Tracy version claims in BUILD.md. ### Checklist - [x] Based on current `main`; #15070 covers a different CONVENTIONS line - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
BunnyFl commented 2026-11-02 17:50:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T17:50:35Z.

Review: CHANGES_REQUESTED


The f32 probe correction is right: agc_driver_f32_denormal_flush exists nowhere in the tree, and core/libs/prx/libSceAgcDriver/Execution/src/FloatFlushProbe.cpp is where the probe programs are. (The PR text says tests/FloatFlushProbe.cpp:172, but the link in the doc points to the right file.)

The CMake line goes too low, though. CMakeLists.txt:1 does say 3.20, but a build with BUILD_TESTING=ON runs CMake scripts that use file(COPY_FILE ...), which CMake added in 3.21 (its own file documentation marks the signature versionadded:: 3.21):

  • core/libs/tests/AvPlayerHttpModules.cmake:42, :57, :155, run as cmake -P from core/libs/prx/libSceAvPlayer/CMakeLists.txt:65;
  • core/libs/tests/SigvecModules.cmake:18, :31.

With CMake 3.20 those scripts stop with an unknown file sub-command, so "3.20 or newer" would send someone to a version whose test build doesn't work. (core/libs/tests/shared_memory/CMakeLists.txt asks for 3.22, but it's a standalone Linux-only project, so it doesn't count here.) Could the line say 3.21, or "3.20 (3.21 with BUILD_TESTING=ON)"? 3.22.1 is also what Ubuntu 22.04 ships, which may be where the old number came from. I haven't configured with an older CMake; the version comes from CMake's documentation, not a run.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5740871737 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15122#pullrequestreview-5740871737). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-02T17:50:35Z. **Review:** CHANGES_REQUESTED --- The f32 probe correction is right: `agc_driver_f32_denormal_flush` exists nowhere in the tree, and `core/libs/prx/libSceAgcDriver/Execution/src/FloatFlushProbe.cpp` is where the probe programs are. (The PR text says `tests/FloatFlushProbe.cpp:172`, but the link in the doc points to the right file.) The CMake line goes too low, though. `CMakeLists.txt:1` does say 3.20, but a build with `BUILD_TESTING=ON` runs CMake scripts that use `file(COPY_FILE ...)`, which CMake added in 3.21 (its own `file` documentation marks the signature `versionadded:: 3.21`): - `core/libs/tests/AvPlayerHttpModules.cmake:42`, `:57`, `:155`, run as `cmake -P` from `core/libs/prx/libSceAvPlayer/CMakeLists.txt:65`; - `core/libs/tests/SigvecModules.cmake:18`, `:31`. With CMake 3.20 those scripts stop with an unknown `file` sub-command, so "3.20 or newer" would send someone to a version whose test build doesn't work. (`core/libs/tests/shared_memory/CMakeLists.txt` asks for 3.22, but it's a standalone Linux-only project, so it doesn't count here.) Could the line say 3.21, or "3.20 (3.21 with `BUILD_TESTING=ON`)"? 3.22.1 is also what Ubuntu 22.04 ships, which may be where the old number came from. I haven't configured with an older CMake; the version comes from CMake's documentation, not a run.
BunnyFl commented 2026-11-06 15:03:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-06T15:03:48Z.

Review: APPROVED


@MarcZX10 re-checked at 311c8cf17c, thanks for both fixes. My change request was on 682921f1fd.

  • CMake line: docs/dev/BUILD.md:42 now says 3.21 for the test build and names file(COPY_FILE) as the reason. The sub-command is still used at core/libs/tests/AvPlayerHttpModules.cmake:42, :57, :155 and core/libs/tests/SigvecModules.cmake:18, :31 at this head, and CMakeLists.txt:1 still declares 3.20, so the line matches the tree. As before, I haven't configured with an older CMake; the 3.21 figure comes from CMake's documentation, not a run.
  • Probe location: the ARCHITECTURE.md link resolves to core/libs/prx/libSceAgcDriver/Execution/src/FloatFlushProbe.cpp, which defines ProbeFloat32FlushToZero (FloatFlushProbe.cpp:235), and agc_driver_f32_denormal_flush no longer appears anywhere in the tree at this head.

Overlap (tools/pr_overlap.py --branch at this head, then GitHub's per-file patches for every PR it couldn't compare):

  • #15859 (Gonic0, perf(agc), mergeable) rewrites the same ARCHITECTURE.md paragraph (docs/dev/ARCHITECTURE.md L232 on main 7383be1a19) to add KosmicKrisp, and its new text still says "the three programs of agc_driver_f32_denormal_flush". Whichever merges second will need to resolve that line and keep the corrected file name.
  • #5021 edits the same BUILD.md requirements line (it keeps 3.22.1 and adds an Apple silicon sentence), but it already conflicts with main.
  • The other 19 PRs the tool listed touch BUILD.md or ARCHITECTURE.md elsewhere: none of their patches changes the CMake version or the f32 flush paragraph.

Conventions passes on this head in CI. The PR changes only docs/dev/BUILD.md and docs/dev/ARCHITECTURE.md (GitHub's file list). Approved on reading; nothing was built.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5802081945 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15122#pullrequestreview-5802081945). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-06T15:03:48Z. **Review:** APPROVED --- @MarcZX10 re-checked at `311c8cf17c`, thanks for both fixes. My change request was on `682921f1fd`. - **CMake line:** `docs/dev/BUILD.md:42` now says 3.21 for the test build and names `file(COPY_FILE)` as the reason. The sub-command is still used at `core/libs/tests/AvPlayerHttpModules.cmake:42`, `:57`, `:155` and `core/libs/tests/SigvecModules.cmake:18`, `:31` at this head, and `CMakeLists.txt:1` still declares 3.20, so the line matches the tree. As before, I haven't configured with an older CMake; the 3.21 figure comes from CMake's documentation, not a run. - **Probe location:** the `ARCHITECTURE.md` link resolves to `core/libs/prx/libSceAgcDriver/Execution/src/FloatFlushProbe.cpp`, which defines `ProbeFloat32FlushToZero` (`FloatFlushProbe.cpp:235`), and `agc_driver_f32_denormal_flush` no longer appears anywhere in the tree at this head. **Overlap** (`tools/pr_overlap.py --branch` at this head, then GitHub's per-file patches for every PR it couldn't compare): - #15859 (Gonic0, `perf(agc)`, mergeable) rewrites the same `ARCHITECTURE.md` paragraph (`docs/dev/ARCHITECTURE.md` L232 on `main` `7383be1a19`) to add KosmicKrisp, and its new text still says "the three programs of `agc_driver_f32_denormal_flush`". Whichever merges second will need to resolve that line and keep the corrected file name. - #5021 edits the same `BUILD.md` requirements line (it keeps 3.22.1 and adds an Apple silicon sentence), but it already conflicts with `main`. - The other 19 PRs the tool listed touch `BUILD.md` or `ARCHITECTURE.md` elsewhere: none of their patches changes the CMake version or the f32 flush paragraph. Conventions passes on this head in CI. The PR changes only `docs/dev/BUILD.md` and `docs/dev/ARCHITECTURE.md` (GitHub's file list). Approved on reading; nothing was built. AI-assisted: yes (Claude Code)
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!15122
No description provided.