fix(shader): preserve vector destinations through TYPE 2 and 3 buffer descriptors #22628
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22628"
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 JJenkx on 2026-11-17T23:33:58Z.
What
Vector buffer loads through a TYPE 2 or 3 V# preserve their destination registers instead of throwing
buffer descriptor uses an unsupported type. The existing PS5 CFI-1115B firmware 12.20 measurement covers the single-dword case. For raw loads of two, three and four dwords, local RX 6650 XT (gfx1032) hardware-oracle measurements cover both wave32 and wave64, mapped descriptors and distinct prior destination words. The PS5 multi-dword case remains unmeasured.The materializer retries eligible shaders as
typedBufferLoadsvariants. A per-buffer specialization constant makesTranslationContext::bufferLoadselect the prior value of each destination register; the descriptor is bound as null. TYPE 0 shader emission keeps its existing path. The variant, snapshot and prepared-shader cache keys include the preservation state; the shader disk cache format is 102. Split table-call parts also retry typed loads; readable TYPE 0 FORMAT 0 descriptors do not acquire destination-preservation state.Split-part preparation now rechecks converted-sample, layer-row and typed-load requirements under the part mutex before publishing its handle. An outdated preparation is discarded and retried, and a concurrently published valid handle is reused. A required-variant exception is terminal only when the failing invocation already requested that variant; another caller enabling it no longer makes the retry throw or discard the valid cached handle.
Multi-dword support is limited to raw 32-bit loads from read-only buffers. Packed D16 loads explicitly remain refused, including the single-component form. Preservation variants with MUBUF LDS are also refused. Formatted multi-component loads, mixed read/write multi-dword buffers, atomics, TYPE 1, typed accesses, FORMAT above 77, GCN, image aliases and runtime descriptors retain their refusals.
Overlap: #21199 is an alternative implementation of TYPE 2/3 preservation, using additional operands on buffer-load IR operations and a broader formatted-load scope. This branch uses the staged variant and specialization path instead. The two should not be combined as dependencies; whichever approach is selected needs to retain the other measured cases and regression coverage.
Tested
December 3 Linux qualification at the merged head
10cd3099ca5con main3ff040106481. The cache format is now 102 to invalidate caches from both parents. All 13/13 selected main checks and 15/15 selected branch checks passed. The two additional branch checks exercise typed split-table calls under GPU and CPU round selection. The 10 main and 12 merged-branch Vulkan cases each selected the RX 6650 XT and inserted Khronos validation 1.4.363. Both runs completed with zero skips, VUIDs or synchronization hazards. Linux 7.3.6, RADV Mesa 26.3.1-arch1.3, GCC 16.2.1 Release, shader cache disabled. The runs cover the focused shader and cache fixtures.Concurrent variant publication at
7e17fa50740f7d867232481c484a2364d2edc56c(2026-11-27 UTC): fixed the stale-handle publication race raised in review4714647567, including the same race for converted/layer-row variants and the related concurrent retry check.b722a101463c, controlled two-thread schedules9e576183ebe9, fresh focused CTestsThe scheduling harness extracts the exact two production function bodies and substitutes compilation, interface-key matching and memory capture. Its seven publication schedules cover every nonempty combination of the three flags; three schedules make two callers request the same missing variant, and three check that already-requested errors still propagate. This is attached local evidence, not a committed CI regression or a real concurrent GPU dispatch test.
The real CTests use the unchanged committed descriptor, unsupported-buffer, shader-cache and split-call fixtures from the preceding qualification; both CPU/GPU round-selection strategies execute on the RX 6650 XT. Linux 7.3.5, GCC16.2.1 Release, SPIRV-Tools disabled. Required physical hardware, disabled shader cache and Khronos validation1.4.363 (headers335) enforced. Zero skips, VUIDs or SYNC-HAZARDs; 21/17 actual layer insertions. Selected loader traces initialize each arm's raw driver. Source, executable and driver hashes remain unchanged; 49 matching recursive dependency pins (optional test262 uninitialized on both). Original CTest history remains intact, no fixture processes remain, and each whole FIFO arm released its sentinel after terminal cleanup. The final build and both GPU arm services exited0.
Conventions and whitespace checks pass. Current main
583b6fc6bfd7has a clean source-only merge preview; it was not rebuilt. The baseline is the frozen build named above. This adds no fresh Windows, native-title, console, hardware-oracle or performance qualification. Earlier reports below retain their original revision scope.Reproducer source, exact-function hashes, commands, complete logs/JUnit and cleanup receipts — 112 payloads, anonymous download and every payload hash verified; SHA-256
80b149d747a5c66fb1e6112895372138873a6ff5e532b372ddb4530549ed01b7.Review fixes at
b722a101463c0cd0d1ffb527a63b7a01e9c3b8ca(2026-11-27 UTC): TYPE 0 FORMAT 0 loads still return zero when typed-load mode is enabled. Split table-call parts now track typed mode per part, apply it to their prepared invocation, and retry both capture and materialization. An already-enabled part is not retried indefinitely.b722a101463ce320c2ca6b059e576183ebe9, original committed fixturesThe pre-fix control returns
0xa1a2a3a4instead of zero for a TYPE 0 FORMAT 0 load in typed mode; both typed split-call cases fail witha vector buffer load reads through a TYPE 2 or 3 V#. The fixed candidate passes those exact cases. The width 1–4 fixture covers valid TYPE 0 and zero-format TYPE 0 in typed mode; split callees exercise TYPE 2/3 under both GPU and CPU round-selection strategies. Both strategies execute on the physical GPU. Eleven common test names use each arm's own committed fixtures; the two new typed split cases are absent from main.Linux 7.3.5-arch1-1, Ryzen 9 7950X, RX 6650 XT / RADV Mesa 26.3.1-2, GCC 16.2.1 Release, SPIRV-Tools disabled. Required hardware, disabled shader cache and Khronos validation 1.4.363 (headers335) enforced. Zero skips and zero VUIDs on all three arms; 21/21/17 actual layer insertions. Selected loader traces initialize each arm's own raw driver. All source/executable/driver hashes remain unchanged, 49 matching recursive dependency pins, and no fixture processes remain. Each whole arm used the shared FIFO and released its sentinel after terminal cleanup. All build and validation services exited0; the control's three software failures are expected outcomes.
Conventions, debt-fold and topic whitespace checks pass. Later main
ad7582bad4aecmerges cleanly by source-only preview. The optional inactive-exec-lane assertion remains unadded. No new full SDK, Windows, native-title, console, hardware-oracle or performance qualification.Exact source patches, commands/environments, complete logs, JUnit, provider and cleanup receipts — 102 payloads, anonymously downloaded and every hash verified; SHA-256
721b6fcad4762c9dd033d851b12481654949a316023bdb925677fa99ba021919.Earlier Linux refresh (2026-11-26), head
9e71d3ca3b8653956d5367c0a3d667b9af09dee9merged with main9e576183ebe9971f8018c078449d850a417a1a0e: the only merge conflict is the cache format number. Format 101 invalidates both old branch format 99 and pinned main format 97; main's specialized-cache code and the 13-field buffer / 52-field image schema are retained.The same nine focused CTests pass on both arms: seven physical RX 6650 XT GPU cases and two CPU cache cases, zero skips, 13 validation-layer insertions per arm, no VUIDs. Linux 7.3.5-arch1-1, RADV/Mesa 26.3.1, GCC Release, SPIRV-Tools disabled; required hardware, disabled shader cache and validation 1.4.363 (headers 335) enforced. Independent source/build trees use 49 matching recursive dependency pins. Source, fixture binaries and raw-driver hashes stay unchanged;
lddresolves each arm's own build. Conventions, debt-fold and topic whitespace checks pass.The tested main is the pin above. A later fetched main
a725d3f948da991d01cc482ed80070bc8df3ef36merges cleanly in a source-only preview; it was not rebuilt. This adds no new full SDK, native-title, Windows, PS5 multi-dword, hardware-oracle or FPS qualification. The initial local-reference fetch hit unresolved Git pack deltas; it was preserved and replaced by an independent network clone. The first whitespace check included unchanged main whitespace; the topic diff against main passes without unrelated edits.Exact source/resolution patches, commands, pins, complete build/test logs, JUnit and hash/loader receipts — 73 payloads, anonymous download and every payload hash verified; SHA-256
a6c4d16445b106d866a3f567736cbdcbe6be10d6b17661cc3c6bd0216c56ad2b.Earlier qualifications below retain their original heads and cache versions.
Earlier Linux qualification (2026-11-24), head
0c47c6076a7eon maine68be05111f4: resolves the cache-schema merge conflict by retaining the 13-field buffer schema and current main’s 52-field image schema. The cache round-trip fixture now setstypedLoads = trueso losing that flag is observable. Cache format 99 remains distinct from this main’s format 96.The same nine focused CTest cases pass on main and the changed tree: seven physical RX 6650 XT GPU cases and two CPU cache cases per arm, zero skips, 13 validation-layer insertions per arm and no VUIDs. Linux 7.3.5-arch1-1, RADV/Mesa 26.3.1, GCC 16.2.1, Release, SPIRV-Tools disabled; required Vulkan, disabled shader cache and validation 1.4.363 were enforced. Source, fixture executable and raw driver hashes remain unchanged. These focused builds are not a new full raw/patched SDK, title, Windows, PS5 or FPS qualification.
A separate CPU-only sensitivity check omits
typedLoadsfrom both encoder and decoder in a private archive copy. The unchanged qualified fixture object detects the loss (entry round trip: shader info differs); fixed controls pass before and after (exit 0 / 1 / 0). Qualified source, archive, executables and modules are unchanged. The initial baseline preflight stopped at missing local registrations for already-correct nested dependencies; after registration, all 47 dependency commits were verified and the baseline built successfully. Both attempts are retained in the evidence.The refreshed branch-overlap scan still reports shared lines and incomparable branches, including the documented alternative #21199 and cache-format/schema edits. No compatibility claim is made for combining these PRs. The candidate merges cleanly with the separately inspected main
f898d20ab064; execution results above use maine68be05111f4.Source patch, exact commands, complete build/test/mutation logs and provenance (SHA-256
80d1fe47a8e5d9a1e439f019de5d21caec47ab215da26c5662cbe50baea90c87; downloaded archive and all 85 payload hashes verified).Earlier qualifications below retain their original heads.
Additional Windows NVIDIA qualification (reported 2026-11-24): maskym’s head-matched retest applies
ae8b35b7dealone to main2b09db6f11. Windows 11 26300, i7-12700K, RTX 2070 SUPER, WinLibs GCC 15.2.0, Release; the GPU driver version is not specified. With required Vulkan, shader-cache disabling and validation 1.4.366, both main and the PR pass 2170/2171 AGC/VideoOut/pad checks, with 1966 layer insertions per tree, no missing-layer reports and no VUIDs. The shared failure isagc_driver_store_over_untracked; the contributor reports every test added or changed by this PR passing in that run. These are contributor-reported compatibility results, not an all-green full suite, console measurement or performance result.Refresh 2026-11-21: four topic commits rebased onto main
729981cb5aa1; qualified headae8b35b7deae. Merge-only commits were dropped; the existing specialization ranges and all refusal boundaries are retained. The disk cache format is 99 (main at the tested base is 96), invalidating earlier branch entries.Linux, RX 6650 XT, RADV/Mesa 26.3.1, GCC 16.2.1, Release, SPIRV-Tools enabled. Full raw/patched SDK, relinker and replay tools build on both main and the change. The same nine focused CTest cases pass on both: seven physical-GPU cases and two cache cases, 13 validation-layer insertions per arm, no skips or VUID errors. Vulkan validation 1.4.363, required hardware and shader-cache disabling were enforced. The tested driver and fixture binary hashes remain unchanged after each full SDK build. These are additional compatibility checks; no fresh title, PS5 multiword-oracle or FPS result is claimed.
Commands, source patch, build/test logs and numeric provenance (SHA-256
4d80bfd24c86d4ffeae90fc9ab8e3ad11b7ccf91c8cb54cee99b2eb4006f9b42; downloaded again and every payload hash verified). Latest-main merge-tree check at publication:123765a75afa, clean. Earlier measurements below remain scoped to their original heads.Linux, Ryzen 9 7950X, RX 6650 XT, RADV/Mesa 26.2.7, GCC 16.2.1, Release,
ANYPS5_ENABLE_SPIRV_TOOLS=OFF.5af6a9bbc726and upstream76b03d3a6a88: full SDKs built independently and frozen; the same 23 focused CTest cases pass on both (23/23 each, no skips). This includes buffer descriptors, refused-draw modes, LDS wave32/wave64 loads, guarded memory, tessellation, graphics and selected libc/SSL regressions.ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, Khronos validation and loader-layer logging were enabled. Each log has 17 validation-layer insertions, a selected physical RX 6650 XT and zero VUID errors. The final fixture also checks that preservation variants with LDS loads are refused while a TYPE 0 LDS load still dispatches.6daf3cbf0a9ffixture linked against the earlier0a3d0fa0c72cproduction SDK fails its unmeasured packed-load acceptance check; the other 16 cases pass, with 14 validation-layer insertions and zero VUID errors. This exposed the packed D16 boundary rather than treating the broader load family as covered.27beeee0a8fcand that main plus the originalb8741f6999both abort on a pixel-stage TYPE 2buffer_load_dwordx2, buffer 3 at PC0x130. The isolated private raw-multiword extension6daf3cbf0a9fclears that refusal: authenticated retained cache plans for the same original shader hashes contain destination-preserving variants. It then aborts at 368.3 s on a different refusal,unnormalized coordinates with anisotropic filtering. The transition remains dark/inverted and gameplay is unverified; no FPS gain or title unblock is claimed. Final publication head additionally has the LDS refusal above, verified in its own GPU gate. Every native run restored assets, saves/settings seeds, SDK hashes, overlays and kernel settings, with no leftover native process.tools/check_conventions.py: passed. Official overlap report records shared-file conflicts and the alternative #21199; it is not a clean-overlap claim. A local merge-tree check against current upstream92b7c3747dc1is clean.Download logs, synthetic oracle kernels/results, source patch and reviewed native metadata (SHA-256
904dfeb66c91656f76a8e9be9566ac00766cf85a2150fb53465a53a8ac3c2bc5; downloaded again and all 80 payload hashes verified). No original shaders, modules, saves or game files are included.The original head
b8741f6999has independent contributor-reported NVIDIA results: RTX 3070 and RTX 4090. The latter reports 103/103 focused tests passing on both sides and both negative-control runs failing with main production files, with Khronos validation loaded and no VUID errors. Those runs cover the original single-dword scope, not this raw multiword extension.This changes the shader disk cache field counts and format as #22583 does; whichever merges second needs to rebase the cache version.
Integration follow-up with viewport PR #20827: controllable Agnea tavern gameplay and full evidence on private
c5b9a1688519. Movement across the stage and down its stairs, camera tracking and gameplay HUD are verified; native exit 0 at 573.3 s. This is combination evidence, not a standalone title-unblock claim for this PR. Captured 4K gameplay remains about 5.23 presented FPS; no speedup or audio/full-game stability claim.Independent AMD Windows validation reported by Helldiverr: current head
ae8b35b7demerged onto mainefc6f9c3baas1b75e192bc, R9700/gfx1201, driver 32.0.31044.16, Windows 11, validation 1.4.363. The contributor reports three passing focused runs with no VUIDs, a failing new-fixture main control, and four detected mutations. Native gfx1201 TYPE 2/3 loads preserve destinations for the measured forms, including forms this PR still conservatively refuses; gfx1013 remains unmeasured. The shader-memory test was not run because of the host's post-link objcopy failure. The review also records composition conflicts and overlapping specialization-ID allocations with other open PRs; the individual PR runs do not validate those compositions. These are contributor-reported results.Hosted Windows CI for this refreshed head
0c47c6076a7e, merged onto main199c91cf36a1, has completed: 4,098 passed, 1,622 skipped, zero failed out of 5,720 registered tests. Windows Server 2025 (26100), WinLibs GCC 15.2.0 UCRT r7, Release/Ninja. All fiveagc_shader_disk_cache*cases pass, including the cache round trip withtypedLoads = true.The seven BufferDescriptorRuntime/DrawUnsupportedBufferType GPU cases are skipped in this hosted host-only path; the full SDK and video-output steps are skipped too. This adds Windows host-build/cache coverage, not a new physical-GPU, validation-layer, native-title or FPS result. Earlier physical Windows results remain scoped to their recorded heads.
Completed job; full log, exact per-test rows and provenance, SHA-256
2eae6ca8d18c499f602b2f0b5df9d07f89dc1f7fa4386b49c9a26572991d2408; all 7 payload hashes verified after download.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 MarcZX10 on 2026-11-18T01:42:48Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed changes in head
b8741f69991d40298625115cc4d49a60f48aab0fhave no verified blocking defects; the staged retry, null-descriptor binding, destination preservation, and specialization path are consistent in the code inspected.What I ran
No build or tests were run in this review. I read the supplied description, commits, diff, manifest, and targeted source ranges through
repo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The review manifest lists 23 changed files, all marked included. The changed files read were
ResourceMaterializer.cpp,BufferInstructions.cpp, andSpirvMemoryInstructions.cpp; the remaining changed files were not read in full.files.jsonand the ruling file were unavailable through the reader, so excluded-file details and full-file coverage are not verified. Builds, automated tests, and console behavior were not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T15:21:41Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
5af6a9bbc726cb703359017d6af085a638ad4ac1using the supplied diff and the pinnedrepo_read.pyreader. No commands or tests were run in this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author reports Linux/RX 6650 XT tests and hardware-oracle measurements in the PR description; these were not independently reproduced. No PS5 multi-dword measurement is claimed. No excluded files were listed in the available review-folder inventory.
To get this to a good state
Nothing is required.
Optional: retain the stated scope limitation that PS5 multi-dword behavior remains unmeasured.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T04:32:42Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected changes show no verified blocking defect, but this review is incomplete because not every changed file was read and no checks were run.
What I ran
Reviewed head
e795b3ae9ffa774c4010d8fd9dc8bbe61914bfe6using the prepared review bundle andrepo_read.py. No commands or tests were run.Read:
description.md,commits.md,manifest.json,diff.patch,ShaderRegistry.cpp,BufferInstructions.cpp,ResourceMaterializer.cpp,Recompiler.cpp,DescriptorBindingBuilder.cpp,SpirvMemoryInstructions.cpp, andCacheKey.hpp. The file listing showed 25 changed files, all included. The other changed files were not read; excluded files were not confirmed.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
The remaining 18 changed files, excluded-file list, build and test results, runtime behavior, and the full claims in the description were not independently verified.
To get this to a good state
Nothing is required. The points above describe the incomplete review and are not merge requirements.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T21:44:34Z.
Review: APPROVED
Reviewed — looks good
The reviewed head
c4af40f0ad323735473c7f0baa12a0a280977156implements the described staged destination-preservation path; no blocking defect was found in the inspected code, and the claimed hardware and CI runs are author-reported rather than runs performed here.What I ran
Read the prepared diff and changed-file sources at the pinned head. No commands, builds, or tests were run.
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build, test suite, native console run, or GPU-oracle run was performed. The hardware and CI results in the description were not independently verified. No changed files were excluded: all 26 files listed as changed in the review inventory were read at their changed lines;
diff.patch,description.md,commits.md,manifest.json, andREADME.mdwere read.files.jsonwas not provided in the review folder.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T04:40:59Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected implementation and focused runtime fixtures show no verified blocking defect; material test and exclusion details remain unverified, so I cannot support a formal approval.
What I ran
Reviewed head
08c7e625fdac61b6c7fe5abf49e5088529b6cef5. I did not run commands or tests. I read the prepared description, commits, manifest, diff, and targeted code throughrepo_read.py.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
Not verified
manifest.json; I read those files and targeted surrounding source. I did not inspect every line of every included file.files.jsonwas not available through the reader, so excluded files and their reasons are not verified.To get this to a good state
Nothing is required. The reported hardware and test results remain optional context for this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T08:35:30Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the reported PS5 multi-dword behavior remains unmeasured, and the added runtime coverage and descriptor gating are consistent with the stated scope.
What I ran
Read the prepared diff and changed-file sources at head
c103a98a8cd815f7072b59271330af9b5ab3fe62. No commands or tests were run in this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The changed files listed below were read in full:
ShaderRegistry.hpp,ShaderRegistry.cpp,BufferDescriptorRuntime.cpp,DrawUnsupportedBufferType.cpp,CacheKey.hpp,ResourcePlan.hpp,Resources.hpp,IrOpcode.hpp,IrOpcode.cpp,ResourceMaterializer.hpp,DescriptorBindingBuilder.cpp,ResourceMaterializer.cpp,TessellationLowering.cpp,PipelineSpecialization.hpp,Recompiler.cpp,Recompiler.hpp,ShaderDiskCache.cpp,ShaderDiskCache.hpp,SpirvEmitterInstructions.hpp,SpirvFlowEmitter.cpp,SpirvMemoryInstructions.cpp,InstructionTranslator.hpp,TranslationContext.hpp,InstructionTranslator.cpp,BufferInstructions.cpp, anddocs/dev/debt/changes/fix-agc-typed-buffer-loads-keep-destination.md.All changed files were included in
files/; no changed files were excluded. PS5 multi-dword behavior and the reported hardware measurements were not independently verified. No tests were run.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T07:31:27Z.
Review: APPROVED
Reviewed — looks good
The inspected change implements the documented destination-preservation path and explicit refusal boundaries; I found no concrete blocking defect in the code read.
What I ran
No commands or tests were run. I reviewed head
ae8b35b7deaeb5922221c50f94149b7e2c2ceed4using the prepared diff and repository reader.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The nine CTest results and hardware measurements described in the PR body were not independently verified. I read the changed lines for all 25 files listed as reviewed in
review/README.md; no files were excluded by the manifest.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T08:56:44Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
0c47c6076a7ed8beeb9e224aae17a275b2cb1fe6. Read the prepared description, commit list, manifest, diff, and all 27 changed files listed in the manifest. Usedrepo_read.pyto inspect targeted code and callers. No build or tests were run in this review; qualification results in the PR description are author-reported.Results
Findings
Blocking
None.
Non-blocking
Not verified
No tests or builds were run. Physical PS5 multi-dword behavior, Windows physical-GPU behavior, and native-title behavior were not independently verified. The PR reports these limits explicitly. No files were excluded by the manifest; every changed file was included and read.
To get this to a good state
Nothing is required. Optional: retain the PS5 multi-dword measurement as an explicit follow-up, as documented in the change.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-26T23:16:49Z.
Review: COMMENTED
Actionable comments posted: 1
b4ebf46a-0ecb-4a27-8edf-be54c88ad72cReviewing files that changed from the base of the PR and between
9e576183eband9e71d3ca3b.core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/execution/BufferDescriptorRuntime.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawUnsupportedBufferType.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrOpcode.hppcore/shader/recompiler/IntermediateRepresentation/src/IrOpcode.cppcore/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hppcore/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/TessellationLowering.cppcore/shader/recompiler/PipelineSpecialization.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterInstructions.hppcore/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cppcore/shader/recompiler/Translation/include/Translation/InstructionTranslator.hppcore/shader/recompiler/Translation/include/Translation/TranslationContext.hppcore/shader/recompiler/Translation/src/InstructionTranslator.cppcore/shader/recompiler/Translation/src/MemoryInstructions/BufferInstructions.cppdocs/dev/debt/changes/fix-agc-typed-buffer-loads-keep-destination.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-26T23:18:46Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this review; the points below are optional.
What I ran
Reviewed head
9e71d3ca3b8653956d5367c0a3d667b9af09dee9usingrepo_read.pyfor the prepared description, commit list, manifest, diff, and targeted source. No build or tests were run in this review.Results
Findings
Blocking
None.
Non-blocking
exec-masked case. Consider adding a masked-lane case to guard that the prior destination is retained when the load is inactive. Relevant changed lines:core/libs/prx/libSceAgcDriver/tests/execution/BufferDescriptorRuntime.cpp:149-153.Not verified
No commands, builds, or tests were run. Contributor-reported measurements and test results in the PR description were not independently verified. The review bundle lists 27 changed files, all marked included; targeted source reads covered
BufferInstructions.cpp,ResourceMaterializer.cpp, andPipelineSpecialization.hpp, while the other changed files were reviewed through the diff. The excluded-file list was not available in the bundle.To get this to a good state
Nothing is required. Optional: add an inactive-lane preservation assertion to the GPU fixture.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T00:55:49Z.
Review: COMMENTED
Actionable comments posted: 1
10fc6cd6-1ac7-4577-a580-c67cde8c63bbReviewing files that changed from the base of the PR and between
9e71d3ca3bandb722a10146.core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cppcore/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_split_table_call_driver_tests.cmakecore/libs/prx/libSceAgcDriver/tests/execution/BufferDescriptorRuntime.cppcore/libs/prx/libSceAgcDriver/tests/execution/SplitTableCallDriver.cppcore/shader/recompiler/Optimization/src/ResourceMaterializer.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-27T01:01:48Z.
Review: APPROVED
Reviewed — looks good
Nothing in the inspected changes blocks merging; the focused qualification is author-reported, and this review did not run checks.
What I ran
Read the prepared diff and targeted source context at head
b722a101463c0cd0d1ffb527a63b7a01e9c3b8ca; no commands or tests were run. The author reports focused Linux qualification indescription.md.Results
Findings
Blocking
None found in the inspected code.
Non-blocking
None.
Not verified
Full text was read for all 27 changed files marked
includedinreview/manifest.json. No changed files were excluded, andreview/files.jsonwas not available as a review-folder file. I reviewed targeted ranges rather than the full contents of most files. I did not independently verify the reported hardware runs, build, test outputs, or merge preview.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T02:14:23Z.
Review: APPROVED
Reviewed — looks good
Nothing in the inspected changes blocks merging; the focused evidence reported in the description is author supplied, and I did not run checks.
What I ran
Reviewed head
7e17fa50740f7d867232481c484a2364d2edc56c. No commands or tests were run. Read the review description, commits, manifest, diff, README, and source ranges inShaderRegistry.cpp,ResourceMaterializer.cpp,DescriptorBindingBuilder.cpp,PipelineSpecialization.hpp,BufferInstructions.cpp,IrOpcode.cpp,TessellationLowering.cpp,Recompiler.cpp,ShaderDiskCache.cpp, andShaderDiskCache.hpp. All 26 changed files are marked included in the manifest; only selected ranges were read, not every added line.Results
Findings
Blocking
None identified in the inspected ranges.
Non-blocking
None.
Not verified
The full contents and all added lines of the 26 changed files were not read. No build, test, negative control, physical-console behavior, or multi-dword PS5 measurement was independently verified. Test and hardware results in the description are author reported.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T04:40:06Z.
Review: COMMENTED
d79018a4-78b4-4c10-afaf-d1cd8a98fb1dReviewing files that changed from the base of the PR and between
7e17fa5074andcb60458977.core/libs/prx/libSceAgcDriver/tests/execution/BufferDescriptorRuntime.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hppcore/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Optimization/src/TessellationLowering.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Translation/include/Translation/TranslationContext.hppdocs/dev/debt/changes/fix-type23-multi-dword-stores.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 MarcZX10 on 2026-11-27T04:54:05Z.
Review: COMMENTED
Reviewed — comments
This review inspected selected implementation paths at head
cb60458977c8466ebdb42bbbdb430b9984ef956c; the full changed-line audit and checks were not completed.What I ran
No build or tests were run. I read the prepared description, commit list, manifest and diff; repository code was read through
repo_read.pytools.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None. The review is incomplete, so this is not a merge recommendation.
Sources
Reviewed source excerpts are pinned to head
cb60458977c8466ebdb42bbbdb430b9984ef956c.Not verified
The manifest lists 26 included changed files. I inspected the changed lines in the diff, but did not read every changed line in every file. Targeted repository reads covered
core/shader/recompiler/Translation/src/MemoryInstructions/BufferInstructions.cpp,core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp,core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp,core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp,core/shader/recompiler/Recompiler.cpp,core/shader/recompiler/PipelineSpecialization.hpp, and portions ofcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp. The prepared folder did not containfiles.json; the manifest reported all changed files included. Build behavior, test outcomes, and uninspected changed code remain unverified.To get this to a good state
Nothing is required. Optional: complete the changed-line audit and run the focused tests before making a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T09:55:46Z.
Review: COMMENTED
Reviewed — no blocking findings
The pinned change implements destination preservation for the stated buffer-load cases, and the inspected code and supplied focused-test reports reveal no verified blocking defect.
What I ran
Reviewed head
428f9264ee7a330de4ec6ff2f474bc3ee1528d29. No tests or builds were run in this review; the test results below are author-reported in the PR description.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I read
review/description.md,review/commits.md,review/manifest.json, andreview/diff.patch. The changed source files inspected werecore/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp,core/shader/recompiler/Translation/src/MemoryInstructions/BufferInstructions.cpp, andcore/shader/recompiler/Optimization/src/ResourceMaterializer.cpp. The manifest marks all 22 changed files as included; I did not read every included file, so the remaining changed files and their behavior are not verified. I could not retrievefiles.jsonthrough the available reader. No build, test, or hardware behavior was independently verified. The description's reported CTest and GPU results are author-supplied, not runs performed here.To get this to a good state
Nothing is required. The unverified areas above remain outside this review's evidence.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T21:51:32Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the physical hardware and CTest results below are author-reported, and I did not run checks in this review.
What I ran
Reviewed head
c0b3387d2921e8c2d99355166b1b5e009c717805. No commands or tests were run. Read the prepared description, commits, manifest, diff, and all added lines for the changed files; read targeted source ranges for the materialization, translation, specialization, cache, and split-call retry paths. The review bundle reports every changed file included; none are excluded.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not run the reported Linux CTests, hardware-oracle measurements, Windows checks, or console measurements. Those qualification results are author-reported in
description.md, not verified by this review.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T13:16:56Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
fbf9dc3ce401d55c6a551bcb39dea83873f7d9ccusing the prepared description, commits, manifest, diff, and pinned reader. I did not run tests or build commands.Results
Findings
Blocking
None.
Non-blocking
Not verified
ShaderRegistry.hpp,ShaderRegistry.cpp,BufferDescriptorRuntime.cpp,SplitTableCallDriver.cpp,ResourceMaterializer.cpp,BufferInstructions.cpp, andSpirvMemoryInstructions.cpp.manifest.jsonwere not read in full; no conclusions are made about their complete contents. No tests, builds, PS5 measurements, or hardware-oracle runs were performed.To get this to a good state
Nothing is required. The optional point above is informational.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T18:42:24Z.
Review: COMMENTED
Reviewed — comments
A formal decision is not justified because I inspected the diff and targeted source ranges, but did not read every changed file or run the checks.
What I ran
Reviewed head
63edf19dd8f3889c09fad89f1df5c74863d60f3dusing the prepared review materials andrepo_read.py; no commands or tests were run.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
No specific code issue identified in the inspected ranges.
Not verified
The manifest lists 29 changed files, all included in the review folder. I read targeted ranges from
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp,core/shader/recompiler/Translation/src/MemoryInstructions/BufferInstructions.cpp,core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp,core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp,core/shader/recompiler/PipelineSpecialization.hpp, andcore/shader/recompiler/Recompiler.cpp. I did not read the other 23 changed files in full or run tests. No changed files were excluded by the manifest.To get this to a good state
Nothing is required. Optional: complete inspection of the remaining changed files and run the relevant checks before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T11:58:47Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
845ac053015c41a1bfc6d75286fd1ec30eb333bdfrom the prepared diff and the pinned repository reader. No build or tests were run in this review.Results
Findings
Blocking
None.
Non-blocking
Not verified
No tests, build, merged-preview check, physical console behavior, or hardware measurements were run by this review. All changed files listed in the manifest were read; no changed files were excluded.
To get this to a good state
Nothing is required. Optional: measure the multi-dword cases on PS5 and add the results to the qualification evidence.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T14:28:38Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
10cd3099ca5ccbe3046a4f5d43b0e97e0d78f9c4. Read the prepared description, commits, manifest, diff, and files list. Inspected relevant hunks and available file snapshots, including buffer translation, resource materialization, shader preparation, cache keys, and focused tests. No tests or builds were run.Commands used:
The reader search returned results; the subsequent reader call failed because it could not write its read log in this read-only workspace.
Results
Negative control
Not run; no tests were run.
Findings
Blocking
None identified in the hunks inspected. This is not a complete source review: not every changed file was read in full.
Non-blocking
The description explicitly limits multi-dword preservation measurements to RX 6650 XT hardware and says the PS5 multi-dword case remains unmeasured. Keep that boundary clear in any claims about console support.
Sources
Not verified
The full text of every changed file and repository callers beyond the inspected hunks were not reviewed. The reader did not provide further source context because it could not write its log. No tests, negative controls, builds, PS5 multi-dword measurements, or runtime behavior were verified. The manifest lists 29 changed files, all included in
files/;files.jsonlists no excluded files. Focused source review coveredBufferInstructions.cpp,ResourceMaterializer.cpp,ShaderRegistry.cpp,DescriptorBindingBuilder.cpp,Recompiler.cpp, and selected cache and execution-test hunks. Other files were not individually read.To get this to a good state
Nothing is required. If a formal approval is needed, complete the source review of the remaining changed files and rerun the reader when its log can be written.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T16:02:59Z.
Review: COMMENTED
The runtime buffer-descriptor, scalar-buffer, and split-table GPU-rounds CTests passed on main and the patched tree. The added typed-load GPU and CPU rounds also passed on the patched tree. All Vulkan runs used the same Linux lavapipe device with Vulkan required, shader cache disabled, and validation layer 1.4.369. The logs show layer insertion and contain no missing-layer diagnostic or
VUID-entry.AI-assisted: yes.
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.