feat(agc): replay proven finite stencil reference exports #5466

Merged
fdfawef324 merged 15 commits from upstream-pr/5466 into main 2026-10-14 20:49:31 +00:00
fdfawef324 commented 2026-10-13 20:27:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-13T20:27:54Z.


What

Replay finite stencil reference exports on devices without VK_EXT_shader_stencil_export, for a conservative subset of shaders and draws whose equivalence can be proved. This PR establishes synthetic replay cases; it does not establish advancement in Demon's Souls. The title's quad DPP and ballot-based kill early-outs remain refused.

The recompiler proves complete export coverage and at most 16 eight-bit references, and reserves a bounded word in the existing push block. The driver keeps one Vulkan pipeline bound throughout each original draw and preserves instance, primitive and reference order. Both faces retain their stencil operations and masks, including depth-fail replacement. Multiple-reference replay admits direct triangle lists and preserves indexed offsets, base vertex and first instance.

Replay requires deterministic, read-only stages and no attachment feedback. Unsupported topology, indirect/restart draws, multisampling, early/ordered tests, incomplete coverage, unbounded references, side effects and surviving subgroup/helper dependence throw. Guarded read-only SRT faults are checked synchronously before host copyback. The native extension path is retained.

This revision separates the vertex lane-bound fold into #5914 and the empty-image feedback check into dependent #5917. GuardImplies and masked-export coverage helpers remain here because they prove the pixel export coverage needed for replay; the separate vertex optimizer is absent from this diff. Current-main vertex input layouts, sample-location grids and per-sample shading are retained.

The artifact schema uses format 34 and updates docs/dev/ARCHITECTURE.md. It rejects formats 31/32/33 and preserves current main's image-table invocation metadata and mapped persistent-cache tests. Merged #758 uses format 33; #5734 also touches this cache. Format 34 keeps the replay schema distinct. The feedback scan now also checks sampled ImageTable entries using main's validated eight-word image elements.

Tested

  • Rebased on e34c47921; original authors, author dates and full commit messages are preserved. Conventions and diff checks pass.
  • Fresh current-header whole-translation-unit g++ -O3 -fsyntax-only checks pass for Recompiler, the full ShaderDiskCache test, Draw, Pipeline, State and the native replay fixture. The fixture now copies the immutable SPIR-V span into a vector before mutation.
  • Fresh actual IR/optimizer builds and the full replay CPU fixture pass. The frozen export-coverage-disabled and malformed-message controls fail; their compiler-resolved source/header inputs match the current source after only CRLF-to-LF normalization.
  • Matching public layout/codec validation passes for artifact/invocation/result/binding/info/runtime sizes 264/200/472/592/352/48, stencil proof and push-slot fields, both binding layouts, and main's runtime image metadata. Existing artifact round trips, readonly native mapping, retained writer, alias copy-on-write, replace/remove lifetime, hand-built plan graph/metadata, damaged payload and malformed-plan checks pass. Changing only the codec to format 33 fails the explicit format-33 refusal. Fresh selected CPU checks use the whole current cache translation unit, six literal production helper bodies and matching fresh IR providers. Main's table poison/ranges/read ranges, buffer-read metadata and float-mode serialization are preserved. Format-33 and wrong replay-layout selective controls fail. The full frontend-dependent generated-plan suite has not been run on this head.
  • Earlier public synthetic GPU runs checked GPL and APS5_NO_GPL=1, without skips: overlapping primitives/instances, indexed offsets/base vertex, first instance, distinct face operations/masks, truncation, depth-fail replacement, fragment kills, adjacent push data and valid/poisoned SRT handling. These results predate this rebase. This current public head has no fresh native GPU or title run; that validation remains pending. Integration character-creation/FPS results are not evidence for this public head.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; silent stubs are listed in their library's technical debt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: synthetic finite-reference stencil replay cases only; no Demon's Souls advancement claimed
  • GPUs tested: NVIDIA GeForce RTX 3060 12 GB, driver 591.86 (32.0.15.9186), Vulkan 1.4.325, Windows Server 2025 10.0.26100 (earlier public/integration runs; current public head CPU-only)
  • AI-assisted: yes

Co-Authored-By: Codex [email protected]

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4849062302 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5466). Originally posted by [fdfawef324](https://github.com/fdfawef324) on 2026-10-13T20:27:54Z. --- ### What Replay finite stencil reference exports on devices without `VK_EXT_shader_stencil_export`, for a conservative subset of shaders and draws whose equivalence can be proved. This PR establishes synthetic replay cases; it does not establish advancement in Demon's Souls. The title's quad DPP and ballot-based kill early-outs remain refused. The recompiler proves complete export coverage and at most 16 eight-bit references, and reserves a bounded word in the existing push block. The driver keeps one Vulkan pipeline bound throughout each original draw and preserves instance, primitive and reference order. Both faces retain their stencil operations and masks, including depth-fail replacement. Multiple-reference replay admits direct triangle lists and preserves indexed offsets, base vertex and first instance. Replay requires deterministic, read-only stages and no attachment feedback. Unsupported topology, indirect/restart draws, multisampling, early/ordered tests, incomplete coverage, unbounded references, side effects and surviving subgroup/helper dependence throw. Guarded read-only SRT faults are checked synchronously before host copyback. The native extension path is retained. This revision separates the vertex lane-bound fold into #5914 and the empty-image feedback check into dependent #5917. `GuardImplies` and masked-export coverage helpers remain here because they prove the pixel export coverage needed for replay; the separate vertex optimizer is absent from this diff. Current-main vertex input layouts, sample-location grids and per-sample shading are retained. The artifact schema uses format 34 and updates `docs/dev/ARCHITECTURE.md`. It rejects formats 31/32/33 and preserves current main's image-table invocation metadata and mapped persistent-cache tests. Merged #758 uses format 33; #5734 also touches this cache. Format 34 keeps the replay schema distinct. The feedback scan now also checks sampled ImageTable entries using main's validated eight-word image elements. ### Tested - Rebased on `e34c47921`; original authors, author dates and full commit messages are preserved. Conventions and diff checks pass. - Fresh current-header whole-translation-unit `g++ -O3 -fsyntax-only` checks pass for Recompiler, the full ShaderDiskCache test, Draw, Pipeline, State and the native replay fixture. The fixture now copies the immutable SPIR-V span into a vector before mutation. - Fresh actual IR/optimizer builds and the full replay CPU fixture pass. The frozen export-coverage-disabled and malformed-message controls fail; their compiler-resolved source/header inputs match the current source after only CRLF-to-LF normalization. - Matching public layout/codec validation passes for artifact/invocation/result/binding/info/runtime sizes 264/200/472/592/352/48, stencil proof and push-slot fields, both binding layouts, and main's runtime image metadata. Existing artifact round trips, readonly native mapping, retained writer, alias copy-on-write, replace/remove lifetime, hand-built plan graph/metadata, damaged payload and malformed-plan checks pass. Changing only the codec to format 33 fails the explicit format-33 refusal. Fresh selected CPU checks use the whole current cache translation unit, six literal production helper bodies and matching fresh IR providers. Main's table poison/ranges/read ranges, buffer-read metadata and float-mode serialization are preserved. Format-33 and wrong replay-layout selective controls fail. The full frontend-dependent generated-plan suite has not been run on this head. - Earlier public synthetic GPU runs checked GPL and `APS5_NO_GPL=1`, without skips: overlapping primitives/instances, indexed offsets/base vertex, first instance, distinct face operations/masks, truncation, depth-fail replacement, fragment kills, adjacent push data and valid/poisoned SRT handling. These results predate this rebase. This current public head has no fresh native GPU or title run; that validation remains pending. Integration character-creation/FPS results are not evidence for this public head. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; silent stubs are listed in their library's technical debt - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: synthetic finite-reference stencil replay cases only; no Demon's Souls advancement claimed - [x] GPUs tested: NVIDIA GeForce RTX 3060 12 GB, driver 591.86 (32.0.15.9186), Vulkan 1.4.325, Windows Server 2025 10.0.26100 (earlier public/integration runs; current public head CPU-only) - [x] AI-assisted: yes Co-Authored-By: Codex <[email protected]>
tibzejoker commented 2026-10-14 01:17:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-14T01:17:23Z.


Intel run for this PR: Intel UHD Graphics 770 (Raptor Lake iGPU of an i9-13900K), driver 32.0.101.6129, Windows 11, MinGW-w64 GCC 15.2.0 Release, device picked with ANYPS5_GPU=Intel, at head 63368e11e.

  • agc_driver_stencil_replay and agc_driver_stencil_replay_no_gpl pass, as do agc_masked_select and agc_driver_graphics.
  • ctest -R "agc_driver|agc_masked|agc_shader" -j4: no failures out of 390 (362 pass, 28 skipped). These are the same 28 skips as main has on this GPU (f64, 64-bit and float atomics, fp16 interpolation and dot, mesh, shader clock and the like, which it does not support), and no new ones.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6158702517 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5466#issuecomment-6158702517). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-14T01:17:23Z. --- Intel run for this PR: Intel UHD Graphics 770 (Raptor Lake iGPU of an i9-13900K), driver 32.0.101.6129, Windows 11, MinGW-w64 GCC 15.2.0 Release, device picked with `ANYPS5_GPU=Intel`, at head `63368e11e`. - `agc_driver_stencil_replay` and `agc_driver_stencil_replay_no_gpl` pass, as do `agc_masked_select` and `agc_driver_graphics`. - `ctest -R "agc_driver|agc_masked|agc_shader" -j4`: no failures out of 390 (362 pass, 28 skipped). These are the same 28 skips as `main` has on this GPU (f64, 64-bit and float atomics, fp16 interpolation and dot, mesh, shader clock and the like, which it does not support), and no new ones. AI-assisted (Claude Code).
fdfawef324 commented 2026-10-14 01:57:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-14T01:57:05Z.


Thanks for testing head 63368e11e. I have recorded the Intel UHD 770 result separately from the local RTX 3060 matrix: both stencil pipeline modes and the masked-select/graphics checks passed, with 362 passes and the same 28 main-branch skips in the broader selection. The current rebase also needs compatibility checks for the disk resource-plan format that merged into main; those CPU results will be reported separately. A further vertex-mask case is being verified and is not covered by the tested head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6159169068 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5466#issuecomment-6159169068). Originally posted by [fdfawef324](https://github.com/fdfawef324) on 2026-10-14T01:57:05Z. --- Thanks for testing head 63368e11e. I have recorded the Intel UHD 770 result separately from the local RTX 3060 matrix: both stencil pipeline modes and the masked-select/graphics checks passed, with 362 passes and the same 28 main-branch skips in the broader selection. The current rebase also needs compatibility checks for the disk resource-plan format that merged into main; those CPU results will be reported separately. A further vertex-mask case is being verified and is not covered by the tested head.
fisherjoey commented 2026-10-14 01:58:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fisherjoey on 2026-10-14T01:58:12Z.


Demon's Souls (PPSA01341 v1.07) on Linux, RTX 5070 Ti, NVIDIA 595.91 (no VK_EXT_shader_stencil_export), tested at c7595e9fb. The setup and the per-build table are on #4276: https://github.com/boykopovar/AnyPS5/issues/4276 . The title stops on this PR's refusal stencil reference export emulation requires a replay-safe pixel shader with late tests. The pixel shader is 788 words. It is refused at four addresses: 0x24abb6d00 and 0x24ab57200 are byte-identical, and 0x24ab5a100 and 0x24ab6dc00 stop the same way, so they are most likely the same code, and the draw that matters writes the reference through write mask 0x80. Tests are late: the driver clears early Z when stencil export is on.

With your three #758 adaptations applied (the first removes a separate blocker, #758's EXEC operand on ImageSampleRaw), StencilReplaySafe still rejects the shader for two reasons. Line numbers are at 63368e11e. agc_shader_replay on the captured request reproduces both offline, and the in-game logs report the same reasons.

  1. The cross-lane rule (StencilReplay.cpp:702, DppMoveU32 / DppUpdateU32). The shader computes coarse derivatives by hand with DPP quad_perm: v_mov_b32 with quad_perm [0,0,0,0] at 0x234, 0x23c, 0x40c and 0x414, and v_sub_f32 with quad_perm [1,1,1,1] / [2,2,2,2] at 0x260-0x278 and 0x438-0x450. All use row_mask 0xf, bank_mask 0xf and bound_ctrl 1, so these are quad-local reads.
  2. control() (called at StencilReplay.cpp:110). It rejects six conditional branches, all kill early-outs: s_andn2_b64 s[20:21], s[20:21], vcc then s_cbranch_scc0. The IR condition is any() of the ballot mask, which guaranteed() can't prove. The kill exit is exec 0, exp null, s_endpgm. The main exit exports MRTZ with stencil 0 or 255.

With both rules bypassed locally, the shader recompiles (66435 SPIR-V words). The title then stops at t+513, still in the level load, on another limit: stencil replay requires an unused push constant dword (BindingAllocator.cpp:120), shader 0x24ac2cb00, whose push data already fills the push block. The bypass is a local experiment only.

The captured request holds the game's shader binary and captured guest memory, so I can't attach it. I can run a build or log specific values on request.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6159182067 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5466#issuecomment-6159182067). Originally posted by [fisherjoey](https://github.com/fisherjoey) on 2026-10-14T01:58:12Z. --- Demon's Souls (PPSA01341 v1.07) on Linux, RTX 5070 Ti, NVIDIA 595.91 (no `VK_EXT_shader_stencil_export`), tested at c7595e9fb. The setup and the per-build table are on #4276: https://github.com/boykopovar/AnyPS5/issues/4276 . The title stops on this PR's refusal `stencil reference export emulation requires a replay-safe pixel shader with late tests`. The pixel shader is 788 words. It is refused at four addresses: 0x24abb6d00 and 0x24ab57200 are byte-identical, and 0x24ab5a100 and 0x24ab6dc00 stop the same way, so they are most likely the same code, and the draw that matters writes the reference through write mask 0x80. Tests are late: the driver clears early Z when stencil export is on. With your three #758 adaptations applied (the first removes a separate blocker, #758's EXEC operand on `ImageSampleRaw`), `StencilReplaySafe` still rejects the shader for two reasons. Line numbers are at 63368e11e. `agc_shader_replay` on the captured request reproduces both offline, and the in-game logs report the same reasons. 1. The cross-lane rule (`StencilReplay.cpp:702`, `DppMoveU32` / `DppUpdateU32`). The shader computes coarse derivatives by hand with DPP `quad_perm`: `v_mov_b32` with `quad_perm [0,0,0,0]` at 0x234, 0x23c, 0x40c and 0x414, and `v_sub_f32` with `quad_perm [1,1,1,1]` / `[2,2,2,2]` at 0x260-0x278 and 0x438-0x450. All use row_mask 0xf, bank_mask 0xf and bound_ctrl 1, so these are quad-local reads. 2. `control()` (called at `StencilReplay.cpp:110`). It rejects six conditional branches, all kill early-outs: `s_andn2_b64 s[20:21], s[20:21], vcc` then `s_cbranch_scc0`. The IR condition is `any()` of the ballot mask, which `guaranteed()` can't prove. The kill exit is exec 0, `exp null`, `s_endpgm`. The main exit exports MRTZ with stencil 0 or 255. With both rules bypassed locally, the shader recompiles (66435 SPIR-V words). The title then stops at t+513, still in the level load, on another limit: `stencil replay requires an unused push constant dword` (`BindingAllocator.cpp:120`), shader 0x24ac2cb00, whose push data already fills the push block. The bypass is a local experiment only. The captured request holds the game's shader binary and captured guest memory, so I can't attach it. I can run a build or log specific values on request. AI-assisted: yes
adriadam10 commented 2026-10-14 12:42:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T12:42:30Z.

Review: CHANGES_REQUESTED


Reviewed at 47290fbea, merged onto current main (9a3e2ac4d).

  • Build fails on Linux/GCC: core/libs/prx/libSceAgcDriver/tests/execution/StencilReplay.cpp:109-142. RecompileResult::spirv.Words() now returns std::span<const std::uint32_t> (87911b3bb), so module.insert(...), module[3] = id and result.spirv = std::move(module) don't compile. Copy the words into a std::vector first. agc_driver_stencil_replay* never ran here because of this; please rebase on current main and rerun the PR's tests.
  • The stated goal isn't met yet: @fisherjoey's run on Linux/RTX 5070 Ti (Demon's Souls) still stops on stencil reference export emulation requires a replay-safe pixel shader with late tests, because StencilReplaySafe rejects the title's shader (DPP quad_perm moves/subs, and six any()-of-ballot kill branches that control() can't prove). Either handle those two patterns with proof (quad-local DPP with full row/bank masks; kill early-outs whose exit exports nothing) or reword the title and "Unblocks" so they don't claim the title advances. The character-creation result in the body includes private changes that aren't in this PR.
  • One topic per PR: this mixes the stencil replay, the vertex lane-mask fold (MaskedSelectEliminator/ConstantFolder), the null-image feedback fix and a disk-cache format bump. Please split the vertex fold and the null-image fix into their own PRs (each with its own test) and keep this one to the replay.
  • Disk format 33 collides with #758, which also moves to 33 with a different layout, and #5734 touches ShaderDiskCache.cpp lines 92-93. Please coordinate the number and list the PRs under Depends on; update docs/dev/ARCHITECTURE.md where the cache format is described.
  • Tested section: the GPU/title numbers predate the last two rebases and no native build is claimed on this base; rerun on the current head and update it.

I haven't measured anything on the HW oracle (stencil export is driver/pipeline behaviour, not an ISA op). Happy to re-review once the test builds and the scope is split.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5518041700 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5466#pullrequestreview-5518041700). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T12:42:30Z. **Review:** CHANGES_REQUESTED --- Reviewed at 47290fbea, merged onto current `main` (9a3e2ac4d). - Build fails on Linux/GCC: `core/libs/prx/libSceAgcDriver/tests/execution/StencilReplay.cpp:109-142`. `RecompileResult::spirv.Words()` now returns `std::span<const std::uint32_t>` (87911b3bb), so `module.insert(...)`, `module[3] = id` and `result.spirv = std::move(module)` don't compile. Copy the words into a `std::vector` first. `agc_driver_stencil_replay*` never ran here because of this; please rebase on current `main` and rerun the PR's tests. - The stated goal isn't met yet: @fisherjoey's run on Linux/RTX 5070 Ti (Demon's Souls) still stops on `stencil reference export emulation requires a replay-safe pixel shader with late tests`, because `StencilReplaySafe` rejects the title's shader (DPP `quad_perm` moves/subs, and six `any()`-of-ballot kill branches that `control()` can't prove). Either handle those two patterns with proof (quad-local DPP with full row/bank masks; kill early-outs whose exit exports nothing) or reword the title and "Unblocks" so they don't claim the title advances. The character-creation result in the body includes private changes that aren't in this PR. - One topic per PR: this mixes the stencil replay, the vertex lane-mask fold (`MaskedSelectEliminator`/`ConstantFolder`), the null-image feedback fix and a disk-cache format bump. Please split the vertex fold and the null-image fix into their own PRs (each with its own test) and keep this one to the replay. - Disk format 33 collides with #758, which also moves to 33 with a different layout, and #5734 touches `ShaderDiskCache.cpp` lines 92-93. Please coordinate the number and list the PRs under Depends on; update `docs/dev/ARCHITECTURE.md` where the cache format is described. - Tested section: the GPU/title numbers predate the last two rebases and no native build is claimed on this base; rerun on the current head and update it. I haven't measured anything on the HW oracle (stencil export is driver/pipeline behaviour, not an ISA op). Happy to re-review once the test builds and the scope is split.
fdfawef324 commented 2026-10-14 15:37:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-14T15:37:28Z.


Rebased to current main 84b01f9cd at head 821c8d7b5 and repaired the span mutation in the native fixture. Fresh matching-current-header whole Recompiler/cache test/Draw/Pipeline/State/native-fixture syntax checks pass with -O3; fresh actual replay IR tests pass, with the frozen selective failure controls matching the compiler-resolved current inputs after only CRLF normalization.

The vertex lane-bound optimizer is now separate in #5914; the empty-image feedback fix is separate in dependent #5917. The replay PR's final diff contains neither follow-up. GuardImplies and masked-export coverage remain because they are the proof for complete pixel stencil export coverage.

The body now explicitly limits Unblocks to synthetic cases. It makes no Demon's Souls advancement claim and records the remaining DPP/kill-branch refusal. Format 34 and ARCHITECTURE are updated; #758 and #5734 are listed for schema coordination. Please reserve a distinct compatible number between these changes.

Fresh current-public-head native GPU runs are still pending. The tested section distinguishes the current CPU checks from historical GPU/integration results; #5914 and #5917 are draft while native validation is pending.

AI-assisted: yes

Co-Authored-By: Codex [email protected]

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6172115935 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5466#issuecomment-6172115935). Originally posted by [fdfawef324](https://github.com/fdfawef324) on 2026-10-14T15:37:28Z. --- Rebased to current main `84b01f9cd` at head `821c8d7b5` and repaired the span mutation in the native fixture. Fresh matching-current-header whole Recompiler/cache test/Draw/Pipeline/State/native-fixture syntax checks pass with `-O3`; fresh actual replay IR tests pass, with the frozen selective failure controls matching the compiler-resolved current inputs after only CRLF normalization. The vertex lane-bound optimizer is now separate in #5914; the empty-image feedback fix is separate in dependent #5917. The replay PR's final diff contains neither follow-up. `GuardImplies` and masked-export coverage remain because they are the proof for complete pixel stencil export coverage. The body now explicitly limits Unblocks to synthetic cases. It makes no Demon's Souls advancement claim and records the remaining DPP/kill-branch refusal. Format 34 and ARCHITECTURE are updated; #758 and #5734 are listed for schema coordination. Please reserve a distinct compatible number between these changes. Fresh current-public-head native GPU runs are still pending. The tested section distinguishes the current CPU checks from historical GPU/integration results; #5914 and #5917 are draft while native validation is pending. AI-assisted: yes Co-Authored-By: Codex <[email protected]>
adriadam10 commented 2026-10-14 20:17:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T20:17:08Z.

Review: APPROVED


Re-checked at 436fc35e3: the build error, the title/"Unblocks" claim and the topic split are fixed, thanks.

Since your base, dd8f2eb8a also moved the shader disk cache to format 34 (with a different layout), so both would have loaded each other's entries. I rebased onto current main, resolved the docs/dev/ARCHITECTURE.md conflict, and moved the stencil artifacts to format 35 (ShaderDiskCache.hpp, ARCHITECTURE.md now says entries from formats 31 to 34 are rejected; the existing previous-version test covers 34).

Checked on the rebased tree: build, agc_driver_stencil_replay, agc_driver_stencil_replay_no_gpl, agc_shader_disk_cache, agc_masked_select, agc_driver_graphics pass; the PR's tests don't build without the code change. The only failing test in the area, agc_driver_tessellation, segfaults inside RADV on plain main too. Merging once the full Build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5524099077 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5466#pullrequestreview-5524099077). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T20:17:08Z. **Review:** APPROVED --- Re-checked at 436fc35e3: the build error, the title/"Unblocks" claim and the topic split are fixed, thanks. Since your base, dd8f2eb8a also moved the shader disk cache to format 34 (with a different layout), so both would have loaded each other's entries. I rebased onto current `main`, resolved the `docs/dev/ARCHITECTURE.md` conflict, and moved the stencil artifacts to format 35 (`ShaderDiskCache.hpp`, ARCHITECTURE.md now says entries from formats 31 to 34 are rejected; the existing previous-version test covers 34). Checked on the rebased tree: build, `agc_driver_stencil_replay`, `agc_driver_stencil_replay_no_gpl`, `agc_shader_disk_cache`, `agc_masked_select`, `agc_driver_graphics` pass; the PR's tests don't build without the code change. The only failing test in the area, `agc_driver_tessellation`, segfaults inside RADV on plain `main` too. Merging once the full Build is green.
github-actions[bot] commented 2026-10-14 20:22:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T20:22:06Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#5304 docs/dev/debt/libSceAgcDriver.md L81
#5734 core/shader/recompiler/ShaderDiskCache.cpp L93-94
#6032 core/shader/recompiler/ShaderDiskCache.hpp L16
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6177597500 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5466#issuecomment-6177597500). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T20:22:06Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #5304 | `docs/dev/debt/libSceAgcDriver.md` [L81](https://github.com/boykopovar/AnyPS5/blob/03f49fcf2e90a765551a1d7f36fbde4b5409300b/docs/dev/debt/libSceAgcDriver.md#L81) | | | | #5734 | `core/shader/recompiler/ShaderDiskCache.cpp` [L93-94](https://github.com/boykopovar/AnyPS5/blob/03f49fcf2e90a765551a1d7f36fbde4b5409300b/core/shader/recompiler/ShaderDiskCache.cpp#L93-L94) | | | | #6032 | `core/shader/recompiler/ShaderDiskCache.hpp` [L16](https://github.com/boykopovar/AnyPS5/blob/03f49fcf2e90a765551a1d7f36fbde4b5409300b/core/shader/recompiler/ShaderDiskCache.hpp#L16) | | |
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5466
No description provided.