fix(agc): account draw-cache variant bytes on insert, replace and evict #27831
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27831"
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 doenermitzwiebeln-ship-it on 2026-11-27T14:46:07Z.
Fixes #23485
What
Tested
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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T14:51:58Z.
Review: COMMENTED
Actionable comments posted: 2
2a0bf1e0-eab1-45fc-a454-b93c9fd9f8c0Reviewing files that changed from the base of the PR and between
8eced8d38bandb4689e0be0.core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-11-27T15:03:55Z.
Review: COMMENTED
The
DrawDecodecharge atb4689e0be0overlaps #24987. That PR has a tested handoff on top of main with #23486 merged, including separate tests for reaching the byte limit and refunding the charge on eviction. Using that decode accounting leaves the entry and stage-vector allocations and mutable recipe storage as a smaller follow-up.There is one additional replacement path to cover in that follow-up.
DrawLookup.cpprebuilds the stage vectors when promoting an older variant and swaps the new entry into the LRU map. Those copies can have different capacities. Refresh the entry charge there as well as on insertion, recipe publication and eviction.AI-assisted review. Source inspection only.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T15:05:52Z.
Review: APPROVED
Reviewed — looks good
The change accounts additional draw-entry storage when entries are inserted, replaced, or evicted; I found no verified blocking defect in the reviewed paths.
What I ran
Reviewed head
b4689e0be0b53c3dfeedb59360a2b5abd8d4f5ec. No tests or build commands were run. I read the prepared description, commits, manifest, diff, and the full text of both changed files, plus targeted context in draw-cache types, recipe handling, relocation, and cache statistics.Results
files.jsonwas unavailable through the readerFindings
Blocking
None.
Non-blocking
None.
Not verified
The prepared
files.jsonwas not accessible through the reader, so I could not confirm its reviewed/excluded classification. No tests, build, or console behavior were run. The repository files read werecore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp,core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCacheStatistics.cpp,core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/DispatchCache.cpp, andcore/libs/prx/libSceAgcDriver/Execution/include/Recipe.hpp. Other repository files were excluded from this review.To get this to a good state
Nothing is required.
Pull request closed