docs: bring ARCHITECTURE, TRACING and HW_ORACLE in line with the code #11454
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11454"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T14:13:52Z.
What
Statements in
ARCHITECTURE.md,TRACING.mdandHW_ORACLE.mdthat the code has moved past. Each commit corrects one statement that no longer matches the code onmain; the subject says what changed:Every change was checked against the current source (the file and line it describes) before it was committed. Nothing outside these documents changes.
Tested
python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/mainpass; every relative link still resolves.tools/pr_overlap.py --branchreports only text overlaps with open pull requests that edit nearby lines of the same documents.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T10:48:38Z.
Review: COMMENTED
Reviewed
4ef7e60ac8146184cfba9799970fc8ecc7859396against author merge base3fea2a937ba9fbab2f06c51691fe0c5763659aa3— partial source review.Checked the linked conversion/patching paths, shader cache format 48 and rejection checks, registration shutdown, and resource/rounding documentation against pinned source. The expanded architecture text also covers lifecycle, async fatal flushing and hardware-oracle behavior; I have not independently exercised all of those paths, so this is a partial source review rather than final approval.
Validation: checked the submitted Markdown diff, pinned implementation references and relative links;
git diff --checkpassed. This changes documentation only. Title disassembly and console observations were not independently reproduced; no runtime regression result is claimed.Imported from boykopovar/AnyPS5. Originally posted by malekaifa on 2026-10-30T10:16:16Z.
Review: COMMENTED
Scoped review of docs/dev/HW_ORACLE.md only, exact head 4ef7e60ac8146184cfba9799970fc8ecc7859396. The revised wording matches the implementation: hw_oracle.run() uses ROWS_PER_DISPATCH=1024 for wave32 and halves it to 512 for wave64, pads rows to a whole wave, then emits one oracle dispatch per chunk. GroupSegmentTests.test_wave64_dispatches_at_most_512_rows pins the expected chunk sizes ([1024, 32] for wave32; [512, 512, 64] for wave64). So changing 'workgroups of up to 1024 lanes' to 'dispatches of up to 1024 rows (512 with wave64), one workgroup each' is correct and materially clearer. I did not review the unrelated ARCHITECTURE.md/TRACING.md portions, so this is not a whole-PR approval.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T04:57:53Z.
Review: COMMENTED
Reviewed — format-48 paragraph is stale against main, no code change
The one reply that needs an answer asks to refresh the cache format number: this head still says 48, while main's
ShaderDiskCache.hppnow says 50.What I ran
4ef7e60ac8146184cfba9799970fc8ecc7859396(OPEN, same as batch file).gh apiGET of issue comments, PR reviews and review comments for #11454;gh pr view --json statusCheckRollup.git -C /marc/AnyPS5 show 4ef7e60…:core/shader/recompiler/ShaderDiskCache.hpp,…:docs/dev/ARCHITECTURE.md, andgit show d5ec8e6575:…ShaderDiskCache.hpp.gh api repos/boykopovar/AnyPS5/contents/core/shader/recompiler/ShaderDiskCache.hpp?ref=mainand?ref=4ef7e60….Results
Findings
docs/dev/ARCHITECTURE.md:126says "Cache format 48" and that other formats are rejected.core/shader/recompiler/ShaderDiskCache.hpp:16isFormatVersion = 48at this head, so the doc matches this branch's source. Main'sShaderDiskCache.hpp:16isFormatVersion = 50. After a merge with main the paragraph would describe 48 while the code accepts 50. The request offers two options (write 50, or point atFormatVersion). Not verified: the merged tree itself, which I did not build or diff.ShaderDiskCache.hpp:16at this head. No reply needed.docs/dev/HW_ORACLE.mdand raises no open point. No reply needed.Sources
github.com/boykopovar/AnyPS5@4ef7e60ac8/core/shader/recompiler/ShaderDiskCache.hpp (L16)github.com/boykopovar/AnyPS5@4ef7e60ac8/docs/dev/ARCHITECTURE.md (L126)926f7dd492b0b432d9287f4d6faaaf1c9d3c86c5:github.com/boykopovar/AnyPS5@926f7dd492/core/shader/recompiler/ShaderDiskCache.hpp (L16)Not verified
Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T14:33:14Z.
Review: DISMISSED
Reviewed — changes requested
The documentation corrections I checked match the source, but after merging into current
mainthe shader cache paragraph names format 48 while the code is at format 52.What I ran
Head
4ef7e60ac8146184cfba9799970fc8ecc7859396,main4f41f4c375f5abb487dbd184fbc150f31994d762, merged with--no-ffin a clean worktree.Results
git diff --checkcheck_conventions.pyFormatVersion = 52FormatVersion
Negative control
None: the PR adds and changes no tests.
Findings
Blocking
main.docs/dev/ARCHITECTURE.md:138in the merged tree says "Cache format 48".main'sShaderDiskCache.hpp#L16isFormatVersion = 52. The number matched the PR head when it was written (head L16 is 48). oneandonlydean already raised this on 2026-11-01, whenmainwas at 50. The author's 2026-11-02 review confirmed it but did not change the text. I am raising it again because I now see 52 onmain: the number has moved twice since the PR was updated. This PR exists to make the docs match the code, so landing it with a wrong number defeats its purpose. Suggested fix: refer toFormatVersioninShaderDiskCache.hppinstead of a literal number, so the paragraph stops going stale. Keep the sentence saying that other formats and other compiler source versions are rejected. That sentence is still correct:ShaderDiskCache.cpp:1452rejects onformat != FormatVersion || sourceVersion != SourceVersion(), and the stencil-reference set is still encoded (ShaderDiskCache.cpp:574-578).Non-blocking
None.
Claims I checked against the merged source, which hold:
Driver::stopcallsFlushAsyncLogAtEnd_nid_no_patch()(Lifecycle.cpp:207), which isAsyncLog::FlushAtEnd→FlushFor(EndFlushLimit)(AsyncLog.hpp:175-179). It is the bounded flush. The unboundedFlushis still reached throughFlushAsyncLog_nid_no_patch(Lifecycle.cpp:354-355).agc_async_log_fatalsentence: the child modes are abort, terminate, fault/raise and blocked (tests/AsyncLog.cpp:334-341). Onlyblockedskips the line-order check (tests/AsyncLog.cpp:317-321), so the change from "four" to "three" is correct.Driver::stopcallsCloseRegistrationPreparation()(Lifecycle.cpp:196), which closes the preparation and prebuild pools (ShaderRegistry.cpp:1600-1609).RuntimeAbi::ImageStorageTableBindingexists (RuntimeAbi.hpp:100).APS5_TRACE_SYNCis read in bothlibkernel/EventFlagandlibkernel/Semaphore.MayDecide,UntrackedHint,DeferFailedRegistration,ComputeEntryRounding/SetEntryRoundingandcheckRoundingUseexist in the files named.I did not repeat malekaifa's HW_ORACLE check.
Not verified
MayDeciderules, the rounding-mode propagation and the coverage list ofagc_shader_mode_register: I confirmed that the named symbols exist, but did not trace every condition.To get this to a good state
Rebase onto current
mainand change the format sentence indocs/dev/ARCHITECTURE.mdto nameFormatVersion(or 52, if it is still current when you push). Keep the rejection sentence as it is.