fix(agc): reuse a data-only draw stage through a moved table and its data #20130
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20130"
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 relativespace2K on 2026-11-14T17:18:17Z.
What
Current-main port of #5609 plus the data-only half of #9755.
A draw that finds a shape-matched entry but no register-key entry (the data-only path) rebuilds a stage when a user word the SRT walk used as a base moves. This change:
asBaseor callee user word by its delta and validates them at the new addresses.GuestBuffersbinding and the flat-SRT copy (thebufferBaseSlots/patchBufferWordspath from #5609).APS5_VERIFY_DRAW_DATA_HITSto compare patched push constants and binding descriptors against the full build.The #5609 part is JJenkx's current-main support port (
4a91615413f7), which keeps the original authors. It is used because #5609's head does not merge withmainand its author has been inactive since 2026-10-19. This PR supersedes #5609; the data-only extension is new and is not implemented by another open PR.No speed claim: the reporter's Vampire Survivors capture is the measurement.
Rebased onto current
mainin4560329ee5, thenf456b0f164patches the high half of a moved read-only buffer's base (valueSlotsnow includes the descriptor word that carries the address high half, so a move that changes only that word still updates the descriptor), andc11b8791b1follows the mergedRecompileResultsize in the cache guard.Earlier rebase note: the merged
RecompileResultis 624 bytes,bufferBaseSlotsis serialized inEncodeResult/DecodeResult, and the shader disk cache format is 96. The hardware runs below were made before this rebase; the merge only adds the field to the cache format and resolves the size guard.Tested
Windows 11 Enterprise 22621, AMD RX 6800 XT (RDNA2, driver 26.10.1), MinGW-w64 GCC 15.2.0,
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 APS5_NO_GPL=1.agc_driver_draw_cache_relocation,agc_driver_draw_cache_moved_buffer,agc_driver_draw_cache_reuse,agc_driver_draw_data_hit_user_words,agc_draw_buffer_base_wordsand their verify/plan/evicted/kept/off/inline/indirect/push-word variants: 24/24 pass withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. The logs show 46Insert instance layer "VK_LAYER_KHRONOS_validation", nowas not found but was requested by env var VK_INSTANCE_LAYERS, and 0VUID-lines.agc_shader_disk_cache*: 5/5 pass.agc_driver_draw_cache_moved_buffercase: a data-only hit whose pointer table and V# base both move and whose payload changes draws the new payload and reuses both stages;agc_driver_draw_cache_moved_buffer_verifycompares both rebuilt stages.Checklist
main; no other open PR implements the same functions (this PR supersedes the stale #5609 branch; the data-only extension is new)NotImplemented_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 MarcZX10 on 2026-11-14T17:22:51Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed portions support the intended draw-stage reuse behavior; I did not run checks, and one oversized changed test file was not read.
What I ran
Reviewed head
792c913af84a188169ac315df605a717777afab4. No commands or tests were run. I read the prepared description, commit list, manifest, diff, and targeted source context usingrepo_read.py.Results
Findings
Blocking
None in the code read.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review folder because it was too large; I did not read it through the reader. I did not run the reported tests or inspect excluded files listed infiles.json(not available in the prepared folder). The author-reported Windows and Vulkan test results were not independently verified.Files read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch, and targeted ranges inDraw.cpp,DrawCache.cpp,DrawLookup.cpp,DrawRelocate.cpp, andSrtEvaluator.cpp. Files reviewed: 28 changed files; 27 were included in the review folder and one was excluded as oversized.To get this to a good state
Nothing is required.
Continued review (pass 2)
This continuation pass found no verified blocking defects in the specified added lines; it does not assess the rest of the pull request.
What I ran
792c913af84a188169ac315df605a717777afab4usingrepo_read.py.Results
Findings
Blocking
None in the reviewed continuation lines.
Non-blocking
None.
Not verified
This pass covers only the specified added lines and nearby context, not the full pull request. No tests were run here. The continuation files read were
DispatchCache.hpp,DrawCache.hpp,Driver.hpp,DrawCapture.cpp,DrawRegisterKey.cpp,DrawRelocate.cpp,Shaders.hpp,DrawBufferBaseWords.cpp,ShaderDiskCache.cpp,ShaderMemory.cpp, the three listed CMake test files,DrawCacheMovedBuffer.cpp,DrawCacheRelocation.cpp,DrawDataHitUserWords.cpp,BindingAllocator.hpp,ResourceProgram.hpp,SrtEvaluator.hpp,DescriptorBindingBuilder.cpp,SrtDescriptorEvaluation.cpp,SrtEvaluator.cpp,SrtTape.cpp,Recompiler.cpp,Recompiler.hpp, andUserDataUse.hpp. No excluded-file listing was available in the review artifacts read during this pass.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T01:07:23Z.
Review: COMMENTED
Reviewed — no blocking findings
The change adds draw-stage reuse when table or user-word addresses move, refreshing stage data and forwarded values while validating relocated inputs. It also tracks SRT buffer-base slots and adds coverage for moved-table and moved-buffer cases.
What I ran
No commands were run. The review read 30 of 30 changed files, 1,152 of 1,152 added lines, through the repository reader at head
b0af440e5fcf8bc37957b8fcba964108ccd2e186, in 3 parts.Results
Findings
Blocking
None.
Non-blocking
None.
Sources
github.com/boykopovar/AnyPS5@b0af440e5f/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp (L358)github.com/boykopovar/AnyPS5@b0af440e5f/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp (L367)github.com/boykopovar/AnyPS5@b0af440e5f/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp (L166)github.com/boykopovar/AnyPS5@b0af440e5f/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp (L291)github.com/boykopovar/AnyPS5@b0af440e5f/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp (L928)github.com/boykopovar/AnyPS5@b0af440e5f/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp (L426)github.com/boykopovar/AnyPS5@b0af440e5f/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp (L263)github.com/boykopovar/AnyPS5@b0af440e5f/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp (L923)github.com/boykopovar/AnyPS5@b0af440e5f/core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheMovedBuffer.cpp (L171)github.com/boykopovar/AnyPS5@b0af440e5f/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp (L3419)Not verified
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T05:03:40Z.
Review: COMMENTED
Reviewed — comments
Changes are required before merge: ensure partial stage donor matches cannot be treated as a complete draw entry.
What I ran
Reviewed head
5ad212b7f589abf4dfcf58a32c5576a197a52902usingrepo_read.pyreader tools. No tests or build commands were run; the test results in the PR description are author-reported.Results
Findings
Blocking
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp:343: when a stage donor is unavailable or a moved word is not relocatable, this loop marks the result incomplete and skips that stage, but the function still assigns the partially populatedDrawEntryand its decode at lines 377–380. The caller then treats the non-null decode as an available entry.lookupDrawindexesentry->stages[i]for each program after only checking that the vector size matches, and later accessesmatched[i]->compiledwhen a stage is accepted. An empty stage slot can therefore be dereferenced instead of causing a clean cache miss. Only install the relocated entry when every required stage is present, or have lookup reject entries with empty stage lists before iterating.Non-blocking
None.
Not verified
description.md,commits.md,manifest.json,diff.patch; full changed-file text forDispatchCache.hpp,DrawCache.hpp,Driver.hpp,Draw.cpp,DrawCache.cpp,DrawCapture.cpp,DrawLookup.cpp,DrawRegisterKey.cpp,DrawRelocate.cpp,Shaders.hpp,DrawBufferBaseWords.cpp,ShaderDiskCache.cpp,agc_draw_buffer_base_words_tests.cmake,agc_driver_draw_cache_relocation_tests.cmake,agc_srt_buffer_origins_tests.cmake,DrawCacheMovedBuffer.cpp,DrawCacheRelocation.cpp,DrawDataHitUserWords.cpp,DrawRelocateUserValues.cpp,BindingAllocator.hpp,ResourceProgram.hpp,SrtEvaluator.hpp,DescriptorBindingBuilder.cpp,SrtDescriptorEvaluation.cpp,SrtEvaluator.cpp,SrtTape.cpp,Recompiler.cpp,Recompiler.hpp,ShaderDiskCache.cpp, andUserDataUse.hpp.ShaderMemory.cppwas excluded as too large for the review folder; only its opening lines were checked. No other excluded files or full-file context were reviewed. The reviewed-file set could not be confirmed fromfiles.jsonbecause it was not available through the reader.To get this to a good state
Ensure relocation falls back to a miss whenever any required stage donor is absent or rejected, then rerun the draw-cache tests, including the verify variants, on the new head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T08:07:17Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change based on the code inspected; the Windows Vulkan test results are author-reported and were not run in this review.
What I ran
Reviewed head
318bce6855ee1193158c847d5aec56807dc55c9eagainstmain. No commands or tests were run; source was read throughrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The prepared review artifacts and changed code were inspected, including relocation, cache lookup, shader metadata, and the added
ShaderMemory.cpptest hunk.ShaderMemory.cppwas read through the pinned reader because its full text was excluded from the review folder. The diff excludes lockfiles, minified files,dist/,build/, and.svgfiles; no further excluded-file list was available. Runtime behavior, builds, and the author-reported tests were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T16:28:03Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change based on the source reviewed; the author reported targeted Windows test results, which I did not run.
What I ran
Reviewed head
83c8c5fc7a01b6c2d7ba7909370bf62b22757618. No tests or build commands were run. I read the description, commit list, diff, and manifest, plus the changed draw lookup and relocation code throughrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not read every changed file.
ShaderMemory.cppwas excluded from the review folder because it was too large; remaining source and test changes outside the targeted draw lookup and relocation paths were not inspected. I did not independently verify the reported tests, build, physical-console behavior, or other operating systems.Files read:
description.md,commits.md,manifest.json,diff.patch, andcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cppandDrawLookup.cppthroughrepo_read.py.files.jsonwas not available as a review document; the file listing identifiedShaderMemory.cppas excluded by size. Other changed files listed in the manifest were not read.To get this to a good state
Nothing is required. Optional: independently run the reported checks on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T01:21:32Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected code shows no verified blocking defect, but the review is incomplete because one changed test file was excluded and no checks were run.
What I ran
Reviewed head
6c5b95d6a61c7aa92711c600b933dcd5cda510c4using the prepared diff andrepo_read.py; no build or tests were run.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
The full text of
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded by size and not read. Most other changed files were not read in full; inspection focused on the prepared diff and selected draw relocation and lookup code. Build, tests, and console behavior were not verified. The description reports test results, but these were not run in this review.To get this to a good state
Nothing is required. Optional: review the excluded test source and run the reported checks before relying on the change.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T01:37:21Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
be4b99519cdc98cc75197d85c8640f4bee660c4f, againstmain.ShaderMemory.cppis too large for the folder, so only its changed hunks were read through the reader.Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp:710:drawStageDonorKeys.empty()is read beforedrawCacheMutexis taken, but the same vector is written under that mutex (Draw.cpp:165 and the relocation path). IfDriver::drawcan run on two threads, this is a data race. Plausible; whether draw calls can overlap was not checked. Taking the lock before the check removes it.core/shader/recompiler/ShaderDiskCache.cpp:1992: the result encoder gains a trailingbufferBaseSlotslist, andDecodeResultreads it, butRuntimeAbi::Versionand the file magic are not changed in this diff. Cache files written before this change have no such list. How they are rejected was not checked. Bumping the version would make the rejection deliberate.core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp:364:relocateDrawEntryrebases captured runs for every moved word. The lookup path inDrawLookup.cppskips the rebase for value words (itsif (!value)guard). The two paths agree only if a value word never owns a run. Not verified whethertagUserValueWordscan produce that.Draw.cpp:706andDraw.cpp:712: a stray blank line is left in thedrawHit || verifyHitblock, and the new loop under the lock is indented one level too deep.tests/ShaderMemory.cpp:3623has two blank lines insideverifySrtTape.Not verified
DrawLookup.cpp, thewasandnowcomparisons) were not traced to their callers. The callee-hash rule is enforced there. In the donor path it relies on the alias key, which was not traced.ShaderMemory.cpphas 13,839 lines. Only the changed hunks were read (lines 3391–3556, 3622–3652 and 13450–13454). The "no blocking findings" outcome covers those hunks and the rest of the diff; the rest of that file was not read.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T22:35:21Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change based on the inspected code; the author-reported test results were not independently run.
What I ran
Reviewed head
db02cd90df6a3aa600c5f0bb3459d7574c6a1f2eusingrepo_read.pyreader tools. No build or tests were run.Results
Findings
Blocking
None in the code inspected.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review folder because it was too large; its changed hunks were not reviewed. Tests and builds were not run. Other changed files were listed inmanifest.json; targeted source ranges were read for relocation, lookup, and draw assembly. Full file texts inreview/files/and the rest of the diff were not read.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T04:43:34Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
f7b9b1836a9144f06721f5a38af523602d112eeeagainst the prepared diff. Read the changed lines of 27 of 28 changed files; the oversizedcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas inspected only at its first 30 lines, not at its changed lines. No build or tests were run.Results
Findings
Blocking
None found in the source reviewed.
Non-blocking
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwere not read; the file is 14,125 lines and was excluded from the prepared bundle. No claims about those hunks are made.review/README.mdhad their changed hunks read, with targeted context in the core draw-cache, recompiler, and disk-cache paths.To get this to a good state
Nothing is required. Optional: run the stated suites on this rebased head, especially the SRT-origin tests affected by the unread
ShaderMemory.cpphunks.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T21:41:02Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this review; one changed test file was not read, so the evidence is not sufficient for approval.
What I ran
ab9ee8304809cdb7a2fd47617aa6f32c6309ae5cusingrepo_read.pyfor the prepared diff and targeted source ranges.Results
Findings
Blocking
None identified in the code reviewed.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review folder because it was too large; its changed lines were not read.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T02:46:39Z.
Review: COMMENTED
Reviewed — comments
The implementation changes several draw-cache relocation paths; I reviewed the main relocation and lookup logic, but did not read every changed file or run the checks needed for a formal decision.
What I ran
Reviewed head
734544b96e62db17fb9bf2f654d4f60d335de330. I read the prepared description, commit list, manifest and diff, plus targeted ranges inDrawRelocate.cppandDrawLookup.cppthrough the pinned readerrepo_read.py. I did not run commands or tests. The description reports Windows and GPU test results; those were not run by me.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
I did not read all changed files. In particular,
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review folder as too large; I did not inspect its changed ranges through the reader. I also did not read the other changed files beyond the targeted source ranges listed above, nor independently verify the reported test runs, build, performance, or console behavior.To get this to a good state
Nothing is required. The optional point is to complete review of the unread changed files and verify the reported checks on this head before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T06:02:05Z.
Review: COMMENTED
Actionable comments posted: 4
7eb9e0c6-1643-4ba2-b3c1-58ca3bfa95beReviewing files that changed from the base of the PR and between
3a62876b41and5630f57dca.core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Shaders.hppcore/libs/prx/libSceAgcDriver/tests/DrawBufferBaseWords.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_draw_buffer_base_words_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_draw_cache_relocation_tests.cmakecore/libs/prx/libSceAgcDriver/tests/cmake/agc_srt_buffer_origins_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/DrawCacheMovedBuffer.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawDataHitUserWords.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawRelocateUserValues.cppcore/shader/recompiler/Optimization/include/Optimization/BindingAllocator.hppcore/shader/recompiler/Optimization/include/Optimization/ResourceProgram.hppcore/shader/recompiler/Optimization/include/Optimization/SrtWalker/SrtEvaluator.hppcore/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cppcore/shader/recompiler/Optimization/src/SrtWalker/SrtDescriptorEvaluation.cppcore/shader/recompiler/Optimization/src/SrtWalker/SrtEvaluator.cppcore/shader/recompiler/Optimization/src/SrtWalker/SrtTape.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/UserDataUse.hppIncluded 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 MarcZX10 on 2026-11-27T06:12:26Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
aa705484cba74e9d3571ec3fb2225e12c02c68beusing the prepared diff andrepo_read.py; no tests were run.Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceAgcDriver/tests/cmake/agc_draw_buffer_base_words_tests.cmake:9applies the timeout toagc_draw_buffer_base_words, butagc_add_default_teststrips_testsfrom the target name and registers the test asagc_draw_buffer_base_words_tests's suffix-stripped form. As written, CMake reports the requested timeout test name as unknown and the new test runs without its intended 30-second timeout. Set the property on the registered test name.Not verified
No tests or build commands were run. The author-reported Windows/Vulkan results were not independently confirmed.
ShaderMemory.cppwas excluded from the prepared files because it is too large; its changed lines were inspected indiff.patch. All changed files listed in the review folder inventory were included except that file.To get this to a good state
Nothing is required. Optionally correct the timeout test name noted above.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T06:16:13Z.
Review: COMMENTED
Actionable comments posted: 1
1301b0f4-cc10-4d9f-a561-209a9dea3408Reviewing files that changed from the base of the PR and between
5630f57dcaandaa705484cb.core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawRelocateUserValues.cppcore/shader/recompiler/Optimization/src/SrtWalker/SrtDescriptorEvaluation.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T06:35:28Z.
Review: COMMENTED
Actionable comments posted: 1
9e47a647-8e24-431e-8e06-98da142dd714Reviewing files that changed from the base of the PR and between
11c14c2444and62e6795f4e.core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T06:39:40Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing in the inspected code demonstrates a blocking defect; this review is incomplete because some changed files were not read.
What I ran
Read the prepared diff and inspected selected changed code at head
b98659ee6b60b9fb1c3a98038aaeab75eb575995usingrepo_read.py. No build or tests were run. The description reports hardware and test results; these are author-reported, not independently verified.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
The review bundle lists 25 changed files; 24 are included. I read the diff and targeted source for the draw-cache relocation, buffer-word patching, shader metadata, and serialization paths, and read the included moved-buffer test. I did not read every changed file in full; in particular
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppis excluded from the bundle as too large, and was not inspected through the reader. I did not independently run the reported Windows/Vulkan tests or verify behavior on physical console hardware.To get this to a good state
Nothing is required. For a formal approval, complete review of the remaining changed files and run the relevant checks on this head.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T06:44:18Z.
Review: COMMENTED
Actionable comments posted: 1
47b181f3-0d61-4d91-a68b-b81760bb62bfReviewing files that changed from the base of the PR and between
62e6795f4eandb98659ee6b.core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T07:24:06Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this review; the points below are optional.
What I ran
Reviewed head
a1be807a8413e4e7842e3aad9350d63d58e9caa5using the prepared diff andrepo_read.pyat the pinned head. No build or tests were run; the test results in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text of
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded as too large; its changed additions were inspected indiff.patch, but were not read at the pinned head. Consequently, approval is not justified under the review completeness rule. No build, automated tests, or console behavior was independently verified. The other 28 changed files listed in the review manifest were read at the pinned head.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T16:10:05Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the focused review found no verified blocking defect, though the review is incomplete.
What I ran
75e38a4543f7afb2582ad2f41381306828841287and read targeted implementation/caller ranges throughrepo_read.py.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
The review was incomplete: the full contents of
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwere excluded as too large and were not read. Other changed files listed in the manifest were not read in full; implementation review focused onDraw.cpp,DrawLookup.cpp,DrawRelocate.cpp,DrawCache.cpp,DrawCapture.cpp,VariantValidation.cpp, andShaderDiskCache.cpp. The supplied hardware runs and claimed test results were not independently verified. The preparedfiles.jsonwas not readable through the review reader.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and run the reported test suite at this head before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T21:42:11Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected changes implement cached draw-stage relocation and data refresh; I found no verified blocking defect, but the full changed-file set was not reviewed.
What I ran
Reviewed prepared diff and targeted source context at head
b60dd708d46e507c206a04ddf65e818629215f23. No tests or build commands were run; the hardware and test results in the PR description are author-reported.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
The complete set of changed files was not read. Reviewed the manifest, description, commits and diff, plus targeted source ranges in
DrawRelocate.cpp; the majority of changed source and test files were not inspected. One file was excluded from the review folder as too large, and its contents were not read.files.jsonwas unavailable through the reader, so other exclusions were not verified. No tests, builds, or console behavior were independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T23:39:01Z.
Review: COMMENTED
57cb2f01-86dc-4b44-a2d5-b71f589a955cReviewing files that changed from the base of the PR and between
b98659ee6bandb60dd708d4.core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawCacheMovedBuffer.cppcore/shader/recompiler/Optimization/include/Optimization/ResourceProgram.hppcore/shader/recompiler/Optimization/include/Optimization/SrtWalker/SrtEvaluator.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppIncluded 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 MarcZX10 on 2026-11-28T10:13:46Z.
Review: COMMENTED
Reviewed — comments
The targeted review of head
a13613699864149fdd71d44ea7c8e3538a80745efound no verified blocking defect, but the full change set and its checks were not completely reviewed.What I ran
repo_read.py.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
The full contents of
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwere excluded from the review folder and not read. I also did not read every other changed file in full; the review focused onDrawRelocate.cpp,DrawLookup.cpp,DrawCapture.cpp,Draw.cpp, and relevant portions ofdiff.patch. The full manifest andfiles.jsonwere not read. No tests, build, or runtime checks were performed here. The hardware and test results in the PR description are author-reported.To get this to a good state
Nothing is required. The review should be completed across the remaining changed files and the excluded test file before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T19:42:56Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed change has no verified blocking defects; the prepared description reports successful Windows hardware tests, which I did not run here.
What I ran
Reviewed head
53074eab0a63052568462a9155727ef8695ba846using the prepared diff and targeted reads throughrepo_read.py. No tests or builds were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The prepared diff contains 27 changed files, all marked
included: truein the manifest; I did not read every included file in full. I readdescription.md,commits.md,manifest.json, anddiff.patch, plus targeted ranges inDraw.cpp,DrawCapture.cpp,DrawLookup.cpp,DrawRelocate.cpp,SrtEvaluator.cpp,SrtTape.cpp,Recompiler.cpp, andShaderDiskCache.cpp.files.jsonwas not available through the reader. No build, test, base comparison, or physical-console behavior was independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T22:09:00Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the evidence reviewed supports merging.
What I ran
Reviewed head
0c59b797bf9ef2d426ed1c6e5056b16d6982a8c3. No commands or tests were run; I reviewed the supplied diff and targeted source context.Results
Findings
Blocking
None.
Non-blocking
None.
Sources
Reviewed the supplied
review/diff.patchand head source for draw lookup, relocation, and draw materialization.Not verified
I read the description, commit list, diff, manifest, and the full text of the included changed files relevant to the draw cache and relocation paths.
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas listed as changed but excluded from the review folder due to size; I read only its first 30 lines. No tests or builds were run, so the reported test results were not independently confirmed. Remaining changes outside the targeted paths were not fully inspected.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T22:25:15Z.
Review: COMMENTED
Reviewed — comments
The core draw-cache relocation paths were inspected at head
8c0fcc66aabdddcae88d2e505a1d230198ab8b14, but the review is incomplete because several changed files were not fully read and no checks were run.What I ran
No build or tests were run. I read the prepared description, commit list, manifest, diff, and selected repository code through
repo_read.py.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
The change was not reviewed completely, so no approval decision is justified. In particular, the full contents of most changed files were not read.
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review folder because it was too large; only its opening lines were inspected through the reader. Other changed files, including shader recompiler and test changes, were only partially inspected or not read. No build, tests, or hardware behavior were independently verified; the reported runs in the description are author-reported.To get this to a good state
Complete review of all changed files and run the relevant checks on this head before a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:24:04Z.
Review: COMMENTED
The trial merge onto
a1b75b0947conflicts inShaderDiskCache.hpp. Please assign the schema from the merged shader semantics and keep the relocation fixture that moves the table and buffer contents together. It should still assert the cached stage hit and compare the rendered data. Those assertions catch separate failures in the lookup and descriptor patching paths.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T03:51:21Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed the prepared diff for head
ea45db20f9c71c12863172b8f07c22cf640ba91d. I inspected relevant sections ofDrawLookup.cppandDrawRelocate.cpp; no tests or builds were run.The reader could not complete subsequent reads because it attempted to write its log in the read-only run folder. Prepared snapshots were available for the two inspected source files.
files.jsonlists 32 reviewed files and no exclusions.Results
Findings
Blocking
None established from the inspected sections.
Non-blocking
No code feedback established from the inspected sections.
Sources
Not verified
The full contents and behavior of the other 30 reviewed files were not verified, nor were the uninspected portions of the two source files. The prepared snapshots cover all 32 reviewed files;
files.jsonreports no excluded files. Tests, build, and runtime behavior were not verified.To get this to a good state
Nothing is required. Optional: complete source review and run relevant non-compiling checks before making a formal decision.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.