feat(recompiler): run waterfall loops over per-lane T#s through image tables #21776
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21776"
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-16T19:22:29Z.
What
Re-lands the per-lane T# waterfall image table from #6488 on current
main. #6488 is a draft, conflicts withmainand has a change request; its three commits are kept with their original authorship, plus one commit that adapts them to the current table model.A compute shader that loops over lanes and loads a T# per lane (
buffer_load_dword*with IDXEN from one SRT-evaluable V#) now plans one image-table column keyed by each lane's index instead of stopping withGetImageResource dword 0 is not a valid runtime value. The recognition covers every T# dword read withv_readlane_b32orv_readfirstlane_b32where the EXEC the results are written under proves each dword equals the lane's own VGPR. The descriptor-load predicate is kept separately from the numeric key, so an EXEC-masked load yields the zero descriptor even when a nonempty table has an invalid layout, while an active realUINT32_MAXkey still faults for unsupported OOB modes.The adaptation to current
mainadds thelaneKey/implicitDerivativestable-column fields, bumps the image table ABI (TableWords8 -> 9 andTableRecordCount) and the shader disk plan format, and fits the load predicate into the current SPIR-V table emitter. The debt entry is a fragment. The compute-LOD device feature is not included: #10867 owns enablingVK_KHR_compute_shader_derivatives, so the GPU test here does not run LOD queries; the lane table'simplicitDerivativesmodes stay covered by the CPU test.Rebased onto
main8763aeffdcinc8c333a295, combining the lane-key fields withmain'spointerKeyedimage-table columns. The shader disk plan format moved to 99 after mergingmain16329049af3:maintook 98 and the plan now encodeslaneKey/implicitDerivativesafterindirect.On Linux the new
agc_driver_waterfall_imagestarget builds; it skips on lavapipe because the emit needs a 32-lane subgroup.agc_shader_disk_cache_testspasses with format 99, including the previous-version rejection. The Windows and AMD runs below were made before this rebase.Tested
Windows 11 Pro, AMD Radeon RX 6800 XT (vendor 0x1002, device 0x73bf), driver 32.0.21045.16010, subgroup 64, WinLibs GCC 15.2.0, Release. Khronos validation layer 1.4.363.
agc_driver_waterfall_imageswithANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer: passed, the loader inserted the layer, 0VUID-.agc_shader_memory_tests(default and--bindless): passed, including the lane image table, masked load predicate, disk plan round trip,LaneRecordLayout,LaneModesand shared-mode resolution reuse.agc_shader_disk_cache_tests: passed, format 96 after the rebase onto86d2ba260c.agc_driver_image_table_testsand--nested, with the same validation environment: passed, 0VUID-.ShootanoJumper ran the new
agc_driver_waterfall_imagestest and the 1332 tests the change reaches on an RTX 4060 (driver 616.56): the new test passes, and the only failures are onesmainalso has (#23232, #23711). nexus1692 ran the branch on an RTX 5070 Ti (driver 621.24, Windows 11 26300) under validation 1.4.363: the 39 reached CPU/image-table tests pass 39/39 onmain, the candidate passes 40/40 on three consecutive runs withagc_driver_waterfall_imagesexecuting at subgroup 32 (2.01 s cold, 0.42/0.43 s warm), the layer is inserted in every process and there are noVUID-lines; an emptyVK_LAYER_PATHcontrol logs the missing layer. blawesom ran the branch on an RX 9070 XT (RADV GFX1201, Mesa 26.2.6, validation 1.4.363):agc_driver_waterfall_imagesexecuted and passed at subgroup 64, the masked-only mode passed, and the CPU bindless, shader-memory, disk-cache and image-table-cache tests passed. A cold and a warm-cache process left every cache entry with the same filename, SHA-256, size and mtime. The full candidate CTest run was 6404/6407; the three failures reproduce on cleanmain.The GPU test skips a host subgroup narrower than 32 lanes: LLVM 15 in lavapipe aborts with
LLVM ERROR: Cannot emit physreg copy instructionbefore the test can read its own result. The RX 6800 XT and RTX 4060 runs are on 64- and 32-lane subgroups.No title was run on this branch. The shape is the stop reported for Watch Dogs: Legion (PPSA01487) compute
0xe001c80100in #21176, and for the RE Engine titles in #7345: a per-laneLoadBufferU32x4T# selected by aBallotbit and made uniform withReadLaneat a loopPhilane. The new GPU test covers thev_readlane_b32whole-wave, partial-wave, masked, compare and guarded waterfall forms on synthetic shaders.Checklist
main; this supersedes the draft #6488 and keeps its commits and authorshipNotImplemented_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-16T20:41:59Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
98d48523d0e1a22506b5bf2a1f74ceca9a67527bfrom the prepared diff and targeted source reads. No commands or tests were run; the Windows and GPU runs 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 for the review folder; its changed hunks were inspected indiff.patch, but the full file was not read. No build, tests, hardware run, cache compatibility check, or full test-file review was performed. The remaining changed files were read through the diff and targeted source ranges; prepared full texts were available forShaderDiskCache.cpp,tests/execution/WaterfallImages.cpp,ImageTableAbi.hpp,ControlFlowInfo.hpp,ResourcePlan.hpp,ResourceMaterializer.cpp,ResourceTracker.cpp,Recompiler.cpp,ShaderDiskCache.cpp(implementation),ShaderDiskCache.hpp,SpirvEmitter.cpp,SpirvImageEmitter.cpp, and the debt entry. No changed files were listed as excluded other thanShaderMemory.cpp.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T11:26:55Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the reviewed implementation and supplied test results support merging.
What I ran
Reviewed head
f7624cea7f86e72c650461b471f2dbacb155b9d7. No commands or tests were run in this review. Read the prepared description, commits, manifest, diff, and changed source lines for the recompiler, materializer, SPIR-V emitter, cache, ABI, and metadata. The completeShaderMemory.cppwas excluded by the review bundle as too large, so its changed lines were not verified.Results
ShaderMemory.cppexcludedFindings
Blocking
None identified in the changed implementation that was read.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas listed as changed but not included because it is too large; its changes were not read. No independent build, tests, console run, or hardware validation was performed. The author reports Windows 11 / Radeon RX 6800 XT runs in the PR description; these are not results from this review.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T17:06:16Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because only selected ranges of 5 of 14 changed files were read, and no tests were run.
What I ran
Reviewed prepared diff and selected source ranges at head
c6b569ed677494133f7b30da8be296d67305b53dusing the repository reader. No test commands were run.Results
Negative control
Not run.
Findings
Blocking
None identified in the ranges read.
Non-blocking
None.
Sources
Selected ranges read:
ResourceTracker.cpp,ResourceMaterializer.cpp,ImageTableAbi.hpp,SpirvImageEmitter.cpp, andShaderDiskCache.cpp, pinned to this review head.Not verified
The remaining 9 changed files were not read from the repository at head; this includes
ShaderMemory.cpp, which the manifest says is too large for the review folder. Other changed files were inspected only through the prepared diff, not their repository contents. Author-reported test results and hardware behavior were not independently verified.To get this to a good state
Nothing is required. Optional: read the remaining changed files and run the reported checks before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T02:03:39Z.
Review: COMMENTED
Reviewed — no blocking findings
The targeted source review found no verified blocking defect, but I could not run the checks needed to justify a formal approval.
What I ran
Reviewed head
847c6f8ec914448a6b37f95bc986a8b7e09fed3dagainst basemainusing the prepared review artifacts andrepo_read.pysource reads. No commands or tests were run by me; the Windows and GPU test results in the description are author-reported.Results
Negative control
Not run. The description reports test runs, but I did not execute a negative control on this head.
Findings
Blocking
None verified in the targeted source ranges.
Non-blocking
None.
Sources
Not verified
I read the description, commits, manifest, README, and diff. I read targeted ranges in
ResourceTracker.cpp,ResourceMaterializer.cpp,SpirvImageEmitter.cpp,ImageTableAbi.hpp,ResourcePlan.hpp,ShaderMemory.cpp,WaterfallImages.cpp, andShaderDiskCache.cpp. Other changed files were not read in full; the review folder excluded the full text ofShaderMemory.cpp, which I accessed through targeted reader ranges. I did not run tests or verify hardware behavior. The reported lack of a title run is author-stated.To get this to a good state
Nothing is required. Optional: run the relevant test suite on this head before treating this review as a merge approval.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T04:52:17Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed changes add per-lane image-table planning and handling; I found no verified blocking defect, but did not run the checks needed to justify approval.
What I ran
Reviewed head
74c1d6a5a7538b81f01a18bbdbdb6c2fc1069027using the prepared diff andrepo_read.pyat the pinned head. No commands or tests were run.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Sources
Reviewed the changed code in
ResourceTracker.cpp,ResourceMaterializer.cpp,SpirvImageEmitter.cpp, and the changed test lines inShaderMemory.cpp, along with the prepared diff. The fullShaderMemory.cpptext was excluded from the review folder; its changed lines were read through the pinned repository reader. Other changed files and added lines are listed inreview/README.mdandreview/manifest.json.Not verified
Tests were not run. The author reports Linux and Windows builds and test results in the description; those results were not independently verified. The full text of
ShaderMemory.cppwas not read.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T15:35:00Z.
Review: COMMENTED
Actionable comments posted: 8
909380d2-1783-4a33-b5ea-67ebb4ad36ebReviewing files that changed from the base of the PR and between
8763aeffdcand7073781188.core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_shader_memory_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/WaterfallImages.cppcore/shader/recompiler/ImageTableAbi.hppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/ResourceTracker.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppdocs/dev/debt/changes/waterfall-lane-image-tables.mdIncluded 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-26T15:46:45Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation and inspected evidence support merging.
What I ran
Reviewed head
50ecb344753ff778cdd3b58ae611b2ae93451764. Read the prepared description, commits, diff, manifest, and targeted source ranges using the pinnedrepo_read.pyreader. No commands or tests were run by me; test results in the PR description are author or CI reported.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded as too large and could not be read with the available reader access; its new test cases were visible in the diff. Hardware behavior and the reported builds and test runs were not independently verified. No other changed file was excluded by the manifest.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T15:47:00Z.
Review: COMMENTED
Actionable comments posted: 1
b9ced3c7-11a4-413e-bfbd-af75db61b7a0Reviewing files that changed from the base of the PR and between
7073781188and58a1c4b370.core/shader/recompiler/Optimization/src/ResourceTracker.cppcore/shader/recompiler/ShaderDiskCache.cppdocs/dev/debt/changes/waterfall-lane-image-tables.mdIncluded 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 MarcZX10 on 2026-11-26T15:50:15Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the findings below are optional.
What I ran
Reviewed head
06df3b5360c3fcabd3eeeabeef8251c86c54bac9. No commands or tests were run in this review. Readreview/description.md,review/commits.md,review/manifest.json,review/diff.patch, and the included changed filesShaderDiskCache.cpp,agc_shader_memory_tests.cmake,WaterfallImages.cpp,ImageTableAbi.hpp,ControlFlowInfo.hpp,ResourcePlan.hpp,DeadCodeEliminator.hpp,DeadCodeEliminator.cpp,ResourceMaterializer.cpp,ResourceTracker.cpp,Recompiler.cpp,ShaderDiskCache.cpp,ShaderDiskCache.hpp,SpirvEmitter.cpp,SpirvImageEmitter.cpp, andwaterfall-lane-image-tables.md. Also read targeted ranges in the excluded-by-sizeShaderMemory.cppthroughrepo_read.py.files.jsonand the full contents ofShaderMemory.cppwere not available to this review.Results
ShaderMemory.cpponly read in targeted rangesFindings
Blocking
None.
Non-blocking
None.
Not verified
The full
ShaderMemory.cppfile andfiles.jsonwere not read. No build, unit test, Vulkan execution, or title run was performed. The reported platform-specific runs in the PR description remain author-reported.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T15:59:37Z.
Review: COMMENTED
Actionable comments posted: 1
2ea1da7c-01ca-46f9-bbe7-72669188f9cbReviewing files that changed from the base of the PR and between
58a1c4b370and06df3b5360.core/shader/recompiler/Optimization/include/Optimization/DeadCodeEliminator.hppcore/shader/recompiler/Optimization/src/DeadCodeEliminator.cppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/ResourceTracker.cppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppdocs/dev/debt/changes/waterfall-lane-image-tables.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T16:13:23Z.
Review: COMMENTED
Actionable comments posted: 1
cb9b4367-2fe3-4be5-9943-cf48ed2f5734Reviewing files that changed from the base of the PR and between
e481d7fa07andcb477f3a82.core/shader/recompiler/Optimization/src/ResourceTracker.cppcore/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cppdocs/dev/debt/changes/waterfall-lane-image-tables.mdIncluded 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-26T16:23:37Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected diff shows no confirmed blocking defect, but the full review is incomplete because one changed source file was excluded and repository tests were not run.
What I ran
Reviewed head
a54dbb952143a4baacab20e4ef64eb97fc9e296c. Read the prepared description, commits, manifest, and full diff; usedrepo_read.pytools to inspect repository context. No test or build commands were run.Results
ShaderMemory.cppwas excluded as too largeFindings
Blocking
None confirmed in the inspected code.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review folder; its changed code was not read. Other changed files were inspected through the diff, but targeted repository context was read only forResourceMaterializer.cpp,ResourceTracker.cpp, andSpirvImageEmitter.cpp. Builds, tests, Windows behavior, and physical-console behavior were not independently verified; reported runs in the PR description are author-reported.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T16:27:58Z.
Review: COMMENTED
Reviewed — no blocking findings
The review is incomplete because
ShaderMemory.cppwas excluded for size and I could not inspect every changed hunk or run the checks.What I ran
No commands or tests were run. I inspected the PR description, commit list, file manifest, and portions of the diff and changed source files at head
1c4e3f6dba57c213ce9ac982916c80fbecff2dc0usingrepo_read.py.Results
Findings
Blocking
None verified.
Non-blocking
None.
Sources
Read:
description.md,commits.md,manifest.json, portions ofdiff.patch,ResourceTracker.cpp,ResourceMaterializer.cpp,SpirvImageEmitter.cpp, andImageTableAbi.hpp.Excluded:
ShaderMemory.cpp(too large for the review folder). Other changed files and diff hunks were not fully inspected.Not verified
The correctness of the complete implementation, the changed tests, and the reported Windows/GPU/CI results were not verified. A formal approval is not justified by this partial review.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T03:36:07Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks merging based on the inspected implementation; tests were not run in this review.
What I ran
Reviewed head
9dd200865f383e2d5572dc746c1d6c3ddd75ddcausing the prepared diff andrepo_read.pysearch/cat reads. No commands or tests were run. Author and CI test reports in the description were not independently verified.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
ShaderMemory.cppwas excluded from the review bundle; its added lines were located via search but its full changed ranges were not read. The remaining 15 changed files were included in the bundle, but I did not read every added line in every file. I read the description, commits, manifest, full diff, README, and targeted portions ofResourceTracker.cpp,ResourceMaterializer.cpp, andSpirvImageEmitter.cpp. No build, test, physical-console behavior, or GPU validation was confirmed independently. Therefore this review does not meet the completeness bar for approval.To get this to a good state
Nothing is required. Optional: review the remaining changed ranges and run the reported checks on this exact head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T07:42:59Z.
Review: COMMENTED
Reviewed — comments
The core lane-table changes were inspected, but the oversized
ShaderMemory.cpptest changes could not be verified, so a formal approval is not justified.What I ran
Reviewed head
0d3317eae3d96ba88abb4a66427137fdea37a7f9. No build or tests were run; this was a source review using the prepared diff and the pinned reader.Results
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded because it is too large for the review folder, and the reader did not provide it. Its added lines are present in the diff, but the full changed file could not be read. Other changed files and hunks were inspected through the prepared diff; key lane-table tracking, materialization, and SPIR-V emission code was also 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-28T16:51:47Z.
Review: COMMENTED
Reviewed — comments
Changes are not ready for approval because the reading-path mapping may cover bytes beyond the checked 32-bit offset range; the affected integration could not be fully verified.
What I ran
d0ac694b3017c347bed09b83ad4da4a7dc67b31eusingrepo_read.py.Results
Findings
Blocking
None verified.
Non-blocking
ResourceMaterializer.cpp:1131checks that the last dword's starting byte offset is at mostUINT32_MAX, butResourceMaterializer.cpp:1169reads the complete run, including the final dword's remaining bytes. A record whose final dword begins at0xfffffffccrosses the 32-bit byte-offset limit while passing this check. Confirm the guest addressing semantics at this boundary and, if the access must not wrap, also check the end byte offset before reading.Not verified
ShaderMemory.cppwas excluded from the review bundle because it is too large; its changed hunks were visible indiff.patchbut its full head text was not read.To get this to a good state
Nothing is required. The boundary point above is optional feedback.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T07:12:35Z.
Review: APPROVED
I read the diff at
d0ac694b30. Windows 11, GCC 15.2, merged intomainatcde48b5800etogether with other open PRs (so not an isolated build), withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1andVK_LAYER_KHRONOS_validationon an RTX 5080 (621.24) and a Radeon iGPU (26.11.2).agc_driver_waterfall_images: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has aVUID-orSYNC-HAZARDline.main's):agc_driver_waterfall_imagesfails on both GPUs: "GetImageResource dword 0 is not a valid runtime value".agc_shader_disk_cacheandagc_shader_memorydo not compile without the new fields.Not checked: a title.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:13:55Z.
Review: COMMENTED
The trial merge onto
a1b75b0947conflicts inShaderDiskCache.hpp. Resolve the schema against the final image-table ABI and keep the tests for descriptor holes and nonuniform table decoration with the lowering changes. The executable fixture exercises lane-varying image selection. The shader-memory and cache cases check separate failure and persistence paths, so please run both on the merged head.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T01:02:11Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks the inspected changes; the points below are optional because the full
ShaderMemory.cppand reported runtime checks were not verified here.What I ran
Reviewed head
d5b1ba7b613b0d49af31be987a44fc78b4263c6bagainstmain; no merged-preview check was run. I used the prepared diff and the pinnedrepo_read.pyfor source context in a read-only environment. No build or test commands were run.Results
Negative control
Not run; no test was executed.
Findings
Blocking
None observed in the inspected changed hunks.
Non-blocking
No code issue identified in the inspected changes. This is a comment because review coverage and runtime validation are incomplete.
Sources
Not verified
Changed hunks were inspected for all 17 files listed under
reviewedinfiles.json:ShaderDiskCache.cpp,ShaderMemory.cpp,agc_shader_memory_tests.cmake,WaterfallImages.cpp,ImageTableAbi.hpp,ControlFlowInfo.hpp,ResourcePlan.hpp,DeadCodeEliminator.hpp,DeadCodeEliminator.cpp,ResourceMaterializer.cpp,ResourceTracker.cpp,Recompiler.cpp,ShaderDiskCache.cpp,ShaderDiskCache.hpp,SpirvEmitter.cpp,SpirvImageEmitter.cpp, andwaterfall-lane-image-tables.md. The prepared folder excludes the full text ofShaderMemory.cppas too large; its changed hunks were read from the diff. No files were listed underexcludedinfiles.json. Hardware behavior and the author-reported CPU, GPU, and cache runs were not independently verified.To get this to a good state
Nothing is required. Optional: complete review of the full
ShaderMemory.cppand independently reproduce the relevant CPU and GPU checks.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T03:44:58Z.
Review: APPROVED
Reviewed — looks good
The lane-key image table change is consistent across resource planning, snapshot construction, SPIR-V lookup, and cache encoding.
What I ran
Reviewed head
a18f8b8e439e4e56b6e32f56b7c27ad5f4cb29ddagainst the prepared diff and pinned source context. No merged-preview check, build, or test was run; the environment is read-only. I usedsedon the prepared diff andpython3 repo_read.py cat,search, andlsfor targeted source context.Results
Negative control
Not run; no source mutation or test execution was performed.
Findings
Blocking
None.
Non-blocking
None.
Sources
Not verified
The reported GPU, CTest, validation-layer, and cache results in the PR description were not rerun. No title-level behavior was checked. Changed lines were reviewed for all 17 files in the manifest;
ShaderMemory.cppfull text was excluded from the review bundle due to size, and its changed ranges were read throughrepo_read.py.files.jsonlists no rule-excluded paths.To get this to a good state
Nothing is required.
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.