fix(agc): replace with a stencil operation value the pixel shader exports #6762

Merged
simonbronk merged 3 commits from upstream-pr/6762 into main 2026-10-19 13:45:11 +00:00
simonbronk commented 2026-10-16 10:35:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-16T10:35:55Z.


What

DB_SHADER_CONTROL.STENCIL_OP_VAL_EXPORT_ENABLE (bit 2) lets the pixel shader supply the value that REPLACE_OP and the add and subtract operations use in place of DB_STENCILREFMASK.STENCILOPVAL (AMD_stencil_operation_extended, AMD_shader_stencil_value_export). The bit was refused as a whole: depth export, shader coverage or ordered fragment execution is unsupported (register 0x203 = 0x00000045).

  • With the 32_GR and 32_ABGR Z formats the export is accepted. Other Z formats still throw.
  • If no operation that reads the value is reachable through a non-zero write mask, the export cannot change the result and is ignored.
  • Without a test value export, a reachable REPLACE_OP (StencilOperationValueReplaces) becomes VK_STENCIL_OP_REPLACE with the exported value as FragStencilRefEXT. Devices without VK_EXT_shader_stencil_export use the existing bounded replay.
    • Both faces must compare without the test value (NEVER, ALWAYS or compare mask 0) and use no ONES or REPLACE_TEST, since those would need the register reference. Otherwise it throws.
    • Early tests with such an export throw.
  • These still throw:
    • the add and subtract operations (codes 5, 6, 8, 9) with the export;
    • REPLACE_OP together with a test value export.
  • Where the value is read. Bits 8-15 of the second MRTZ channel. Mesa's AMD drivers only write the test value, in bits 0-7 (emit_ps_mrtz_export), and I found no public source for the operation value. The evidence is the title's pixel shader below: right before exp mrtz, it shifts the value left by 8. The debt entry says this is the only evidence.
  • Plumbing. A new ShaderPixelStageInfo::stencilOperationValueExport flag carries this to the recompiler. It enters the recompile cache key, the draw lookup and register keys, and request serialization version 33 (#5884 took 31, 7a6cc7178 took 32). Replayed reference values use the same byte.

The title's case. Onimusha: Way of the Sword draws with:

  • DB_SHADER_CONTROL 0x45 and DB_STENCIL_CONTROL 0x40040 (REPLACE_OP on depth pass, both faces);
  • DB_STENCILREFMASK 0x00ff0000 (write mask 0xff, test and operation values 0) and compare ALWAYS;
  • Z format 9 (32_ABGR).

The pixel shader at 0x2112442100 ends with:

v_and_or_b32    v0, s0, 0xff, v0
s_mov_b64       exec, s[22:23]
...
v_lshlrev_b32   v0, 8, v0
s_mov_b64       exec, s[6:7]
exp mrtz v3, v0, off, off done vm

(words d7710000 0401fe00 000000ff, 34000088, f8001883 00000003).

Tested

  • Windows 11 Pro 26200, Onimusha: Way of the Sword (PPSA27836), APS5_NO_HOST_IMPORT=1 (#6374). The build was main 5d9dcc42d + #5907 + #5884 + #5915 + #6557 + #6727 + this change.
    • Before: the first scene load stopped at the refusal above (after #6727).
    • After: the draw is accepted, and the load stops later, at the next known gap: the compute read of the now stencil-written native multisample depth target (sample-preserving guest publication of native multisample depth is not implemented, #6570).
    • That run used the bits 0-7 layout. A local dump of the pixel shader in it gave the listing above, and this PR reads bits 8-15. The game was not rerun with the final layout, since it stops at #6570 before the result is visible.
  • agc_driver_graphics (stencilRefExportTests) covers 15 stencil-control cases, each under DB_SHADER_CONTROL 0x54, 0x56 and 0x45 with Z formats 2 and 9:
    • accepted and refused operations, write masks and compares;
    • the per-face REPLACE mapping and StencilReferenceUnused;
    • the pixel-stage flags, and the early-tests and skipped-program cases.
  • The recompiler tests check that, from a literal 0x2a05 export:
    • a test value replay takes 0x05 and an operation value replay takes 0x2a;
    • only the operation value export emits the shift;
    • the flag survives serialization and changes the cache key.
  • request_serializer and agc_shader_memory expect version 33. A version 32 pixel request reads no flag.
  • ctest -j 8 on both GPUs:
    • Non-GPU tests: all pass.
    • NVIDIA: all pass.
    • AMD: only #5271's three tests fail, plus agc_driver_preparation_scope_settle, which also fails about one run in three on its own on other branches. It has no stencil code.
    • On both, agc_driver_gpu_indirect_arguments_misaligned_writer_ahead (from main) does not build with WinLibs GCC (#6452).
  • python tools/check_conventions.py --base upstream/main: passed.

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 (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (the title also needs #6557 and #6727 to reach this draw)
  • Unblocks: PPSA27836 #5769
  • GPUs tested: NVIDIA GeForce RTX 5070, driver 617.42, Windows 11 Pro 26200; AMD Radeon Graphics (gfx1036 iGPU), driver 25.10.36, Windows 11 Pro 26200
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4887101696 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6762). Originally posted by [simonbronk](https://github.com/simonbronk) on 2026-10-16T10:35:55Z. --- ### What `DB_SHADER_CONTROL.STENCIL_OP_VAL_EXPORT_ENABLE` (bit 2) lets the pixel shader supply the value that `REPLACE_OP` and the add and subtract operations use in place of `DB_STENCILREFMASK.STENCILOPVAL` ([AMD_stencil_operation_extended](https://registry.khronos.org/OpenGL/extensions/AMD/AMD_stencil_operation_extended.txt), [AMD_shader_stencil_value_export](https://registry.khronos.org/OpenGL/extensions/AMD/AMD_shader_stencil_value_export.txt)). The bit was refused as a whole: `depth export, shader coverage or ordered fragment execution is unsupported (register 0x203 = 0x00000045)`. - With the 32_GR and 32_ABGR Z formats the export is accepted. Other Z formats still throw. - If no operation that reads the value is reachable through a non-zero write mask, the export cannot change the result and is ignored. - Without a test value export, a reachable `REPLACE_OP` (`StencilOperationValueReplaces`) becomes `VK_STENCIL_OP_REPLACE` with the exported value as `FragStencilRefEXT`. Devices without `VK_EXT_shader_stencil_export` use the existing bounded replay. - Both faces must compare without the test value (`NEVER`, `ALWAYS` or compare mask 0) and use no `ONES` or `REPLACE_TEST`, since those would need the register reference. Otherwise it throws. - Early tests with such an export throw. - These still throw: - the add and subtract operations (codes 5, 6, 8, 9) with the export; - `REPLACE_OP` together with a test value export. - **Where the value is read.** Bits 8-15 of the second MRTZ channel. Mesa's AMD drivers only write the test value, in bits 0-7 ([`emit_ps_mrtz_export`](https://gitlab.freedesktop.org/mesa/mesa/-/blob/3e32b0e1f132231b7a972c1b0b5b06c7e16cf8b9/src/amd/common/nir/ac_nir_lower_ps_late.c#L194)), and I found no public source for the operation value. The evidence is the title's pixel shader below: right before `exp mrtz`, it shifts the value left by 8. The debt entry says this is the only evidence. - **Plumbing.** A new `ShaderPixelStageInfo::stencilOperationValueExport` flag carries this to the recompiler. It enters the recompile cache key, the draw lookup and register keys, and request serialization version 33 (#5884 took 31, 7a6cc7178 took 32). Replayed reference values use the same byte. **The title's case.** Onimusha: Way of the Sword draws with: - `DB_SHADER_CONTROL` 0x45 and `DB_STENCIL_CONTROL` 0x40040 (`REPLACE_OP` on depth pass, both faces); - `DB_STENCILREFMASK` 0x00ff0000 (write mask 0xff, test and operation values 0) and compare `ALWAYS`; - Z format 9 (32_ABGR). The pixel shader at 0x2112442100 ends with: ``` v_and_or_b32 v0, s0, 0xff, v0 s_mov_b64 exec, s[22:23] ... v_lshlrev_b32 v0, 8, v0 s_mov_b64 exec, s[6:7] exp mrtz v3, v0, off, off done vm ``` (words `d7710000 0401fe00 000000ff`, `34000088`, `f8001883 00000003`). ### Tested - Windows 11 Pro 26200, Onimusha: Way of the Sword (PPSA27836), `APS5_NO_HOST_IMPORT=1` (#6374). The build was `main` 5d9dcc42d + #5907 + #5884 + #5915 + #6557 + #6727 + this change. - Before: the first scene load stopped at the refusal above (after #6727). - After: the draw is accepted, and the load stops later, at the next known gap: the compute read of the now stencil-written native multisample depth target (`sample-preserving guest publication of native multisample depth is not implemented`, #6570). - That run used the bits 0-7 layout. A local dump of the pixel shader in it gave the listing above, and this PR reads bits 8-15. The game was not rerun with the final layout, since it stops at #6570 before the result is visible. - `agc_driver_graphics` (`stencilRefExportTests`) covers 15 stencil-control cases, each under `DB_SHADER_CONTROL` 0x54, 0x56 and 0x45 with Z formats 2 and 9: - accepted and refused operations, write masks and compares; - the per-face `REPLACE` mapping and `StencilReferenceUnused`; - the pixel-stage flags, and the early-tests and skipped-program cases. - The recompiler tests check that, from a literal `0x2a05` export: - a test value replay takes 0x05 and an operation value replay takes 0x2a; - only the operation value export emits the shift; - the flag survives serialization and changes the cache key. - `request_serializer` and `agc_shader_memory` expect version 33. A version 32 pixel request reads no flag. - `ctest -j 8` on both GPUs: - Non-GPU tests: all pass. - NVIDIA: all pass. - AMD: only #5271's three tests fail, plus `agc_driver_preparation_scope_settle`, which also fails about one run in three on its own on other branches. It has no stencil code. - On both, `agc_driver_gpu_indirect_arguments_misaligned_writer_ahead` (from `main`) does not build with WinLibs GCC (#6452). - `python tools/check_conventions.py --base upstream/main`: passed. ### 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none (the title also needs #6557 and #6727 to reach this draw) - [x] Unblocks: PPSA27836 #5769 - [x] GPUs tested: NVIDIA GeForce RTX 5070, driver 617.42, Windows 11 Pro 26200; AMD Radeon Graphics (gfx1036 iGPU), driver 25.10.36, Windows 11 Pro 26200 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-16 10:51:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T10:51:48Z.


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
PR 6612 core/shader/recompiler/tests/RequestSerializerTests.cpp L210, L249, L274, L397-400, L411, L431, L433
PR 6679 core/shader/recompiler/tests/RequestSerializerTests.cpp L210, L249, L274, L397-400, L411, L431, L433
PR 6941 core/shader/recompiler/tests/RequestSerializerTests.cpp L210, L249, L274, L398, L411, L431, L433
PR 6959 core/shader/recompiler/StencilReplay.hpp L9
PR 7006 core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp L414-415
core/shader/recompiler/StencilReplay.cpp L604-606
PR 7332 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp L4742, L4860, L5029-5032
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp L797, L836
core/shader/recompiler/tests/RequestSerializerTests.cpp L210, L249, L274, L398, L411, L431, L433

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1191 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
PR 1341 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 3247 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 4040 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4072 core/shader/recompiler/Recompiler.cpp
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 5021 core/shader/recompiler/Recompiler.cpp
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5371 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 5441 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5499 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5500 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 5656 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 5925 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/debt/libSceAgcDriver.md
PR 6146 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6177 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
PR 6194 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6235 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 6252 docs/dev/debt/libSceAgcDriver.md
PR 6280 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6290 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6539 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 6548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6588 docs/dev/debt/libSceAgcDriver.md
PR 6604 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 6611 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp
PR 6636 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6645 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6683 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6741 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6804 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6808 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 docs/dev/debt/libSceAgcDriver.md
PR 6879 core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 6887 docs/dev/debt/libSceAgcDriver.md
PR 6924 core/shader/recompiler/Recompiler.cpp
PR 6946 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderInputState.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/debt/libSceAgcDriver.md
PR 6947 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderInputState.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6965 docs/dev/debt/libSceAgcDriver.md
PR 6970 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
PR 6972 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6973 docs/dev/debt/libSceAgcDriver.md
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/shader/recompiler/Recompiler.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6987 docs/dev/debt/libSceAgcDriver.md
PR 6989 docs/dev/debt/libSceAgcDriver.md
PR 6995 docs/dev/debt/libSceAgcDriver.md
PR 7002 docs/dev/debt/libSceAgcDriver.md
PR 7085 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7201 core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 7223 core/shader/recompiler/Recompiler.cpp
PR 7254 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7258 docs/dev/debt/libSceAgcDriver.md
PR 7381 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7390 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7395 core/shader/recompiler/Recompiler.cpp
PR 7426 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/debt/libSceAgcDriver.md
PR 7432 docs/dev/debt/libSceAgcDriver.md
PR 7446 docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7484 core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 7505 docs/dev/debt/libSceAgcDriver.md
PR 7604 docs/dev/debt/libSceAgcDriver.md
PR 7642 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderInputState.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7659 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7683 docs/dev/debt/libSceAgcDriver.md
PR 7689 core/shader/recompiler/Recompiler.hpp
PR 7800 docs/dev/debt/libSceAgcDriver.md
PR 7912 docs/dev/debt/libSceAgcDriver.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6213885911 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6762#issuecomment-6213885911). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T10:51:48Z. --- <!-- 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 | |---|---|---|---| | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `core/shader/recompiler/tests/RequestSerializerTests.cpp` [L210](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L210), [L249](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L249), [L274](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L274), [L397-400](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L397-L400), [L411](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L411), [L431](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L431), [L433](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L433) | | | | [PR 6679](https://www.github.com/boykopovar/AnyPS5/pull/6679) | `core/shader/recompiler/tests/RequestSerializerTests.cpp` [L210](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L210), [L249](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L249), [L274](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L274), [L397-400](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L397-L400), [L411](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L411), [L431](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L431), [L433](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L433) | | | | [PR 6941](https://www.github.com/boykopovar/AnyPS5/pull/6941) | `core/shader/recompiler/tests/RequestSerializerTests.cpp` [L210](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L210), [L249](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L249), [L274](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L274), [L398](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L398), [L411](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L411), [L431](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L431), [L433](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L433) | | | | [PR 6959](https://www.github.com/boykopovar/AnyPS5/pull/6959) | `core/shader/recompiler/StencilReplay.hpp` [L9](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/StencilReplay.hpp#L9) | | | | [PR 7006](https://www.github.com/boykopovar/AnyPS5/pull/7006) | `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` [L414-415](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp#L414-L415)<br>`core/shader/recompiler/StencilReplay.cpp` [L604-606](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/StencilReplay.cpp#L604-L606) | | | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` [L4742](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L4742), [L4860](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L4860), [L5029-5032](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp#L5029-L5032)<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp` [L797](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L797), [L836](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp#L836)<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp` [L210](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L210), [L249](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L249), [L274](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L274), [L398](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L398), [L411](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L411), [L431](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L431), [L433](https://github.com/boykopovar/AnyPS5/blob/3647fcc68a7c4fccac634a18222daa345decf3dd/core/shader/recompiler/tests/RequestSerializerTests.cpp#L433) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1191](https://www.github.com/boykopovar/AnyPS5/pull/1191) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` | | [PR 1341](https://www.github.com/boykopovar/AnyPS5/pull/1341) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 3247](https://www.github.com/boykopovar/AnyPS5/pull/3247) | `core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/shader/recompiler/Recompiler.cpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/shader/recompiler/Recompiler.cpp` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 5656](https://www.github.com/boykopovar/AnyPS5/pull/5656) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp`<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp` | | [PR 6252](https://www.github.com/boykopovar/AnyPS5/pull/6252) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6290](https://www.github.com/boykopovar/AnyPS5/pull/6290) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6549](https://www.github.com/boykopovar/AnyPS5/pull/6549) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6588](https://www.github.com/boykopovar/AnyPS5/pull/6588) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6604](https://www.github.com/boykopovar/AnyPS5/pull/6604) | `core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 6611](https://www.github.com/boykopovar/AnyPS5/pull/6611) | `core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp` | | [PR 6636](https://www.github.com/boykopovar/AnyPS5/pull/6636) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6645](https://www.github.com/boykopovar/AnyPS5/pull/6645) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp`<br>`core/shader/recompiler/Optimization/include/Optimization/ShaderStageInputInfo.hpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`core/shader/recompiler/Translation/src/ShaderInputInfoBuilder.cpp`<br>`core/shader/recompiler/tests/RequestSerializerTests.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6741](https://www.github.com/boykopovar/AnyPS5/pull/6741) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6804](https://www.github.com/boykopovar/AnyPS5/pull/6804) | `core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6887](https://www.github.com/boykopovar/AnyPS5/pull/6887) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6924](https://www.github.com/boykopovar/AnyPS5/pull/6924) | `core/shader/recompiler/Recompiler.cpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderInputState.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderInputState.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6965](https://www.github.com/boykopovar/AnyPS5/pull/6965) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6970](https://www.github.com/boykopovar/AnyPS5/pull/6970) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6972](https://www.github.com/boykopovar/AnyPS5/pull/6972) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6973](https://www.github.com/boykopovar/AnyPS5/pull/6973) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6987](https://www.github.com/boykopovar/AnyPS5/pull/6987) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6989](https://www.github.com/boykopovar/AnyPS5/pull/6989) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6995](https://www.github.com/boykopovar/AnyPS5/pull/6995) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp` | | [PR 7223](https://www.github.com/boykopovar/AnyPS5/pull/7223) | `core/shader/recompiler/Recompiler.cpp` | | [PR 7254](https://www.github.com/boykopovar/AnyPS5/pull/7254) | `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7258](https://www.github.com/boykopovar/AnyPS5/pull/7258) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7381](https://www.github.com/boykopovar/AnyPS5/pull/7381) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7390](https://www.github.com/boykopovar/AnyPS5/pull/7390) | `core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `core/shader/recompiler/Recompiler.cpp` | | [PR 7426](https://www.github.com/boykopovar/AnyPS5/pull/7426) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7432](https://www.github.com/boykopovar/AnyPS5/pull/7432) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7446](https://www.github.com/boykopovar/AnyPS5/pull/7446) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderInputState.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7659](https://www.github.com/boykopovar/AnyPS5/pull/7659) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7683](https://www.github.com/boykopovar/AnyPS5/pull/7683) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7689](https://www.github.com/boykopovar/AnyPS5/pull/7689) | `core/shader/recompiler/Recompiler.hpp` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7912](https://www.github.com/boykopovar/AnyPS5/pull/7912) | `docs/dev/debt/libSceAgcDriver.md` |
simonbronk commented 2026-10-16 12:22:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-16T12:22:10Z.


Rebased onto main eb901bcf4. #5884 was merged with request serialization version 31, and this PR also used 31. Git merged the two bumps without a conflict, but a version 31 request from main would then be read with a stencil flag it doesn't contain. The flag now comes with version 32. request_serializer and agc_shader_memory expect 32, and a version 31 pixel request reads no flag. Head c51ee6b82.

ctest -R "agc|shader|video_out" -j 8 on Windows 11 26200, RTX 5070 (617.42), with this PR merged into main eb901bcf4 alongside #5907, #5915, #6557, #6727 and #6763: everything passes except agc_driver_gpu_indirect_arguments_misaligned_writer_ahead, which doesn't build with MinGW on main either (64 KiB alignas).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6215400408 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6762#issuecomment-6215400408). Originally posted by [simonbronk](https://github.com/simonbronk) on 2026-10-16T12:22:10Z. --- Rebased onto `main` eb901bcf4. #5884 was merged with request serialization version 31, and this PR also used 31. Git merged the two bumps without a conflict, but a version 31 request from `main` would then be read with a stencil flag it doesn't contain. The flag now comes with version 32. `request_serializer` and `agc_shader_memory` expect 32, and a version 31 pixel request reads no flag. Head c51ee6b82. `ctest -R "agc|shader|video_out" -j 8` on Windows 11 26200, RTX 5070 (617.42), with this PR merged into `main` eb901bcf4 alongside #5907, #5915, #6557, #6727 and #6763: everything passes except `agc_driver_gpu_indirect_arguments_misaligned_writer_ahead`, which doesn't build with MinGW on `main` either (64 KiB `alignas`).
johnmaia commented 2026-10-16 13:56:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-16T13:56:29Z.


AMD run with this head (c51ee6b82) merged onto main 82ddae75b: AMD Radeon RX 7600 (RDNA 3, RADV NAVI33, Mesa 25.2.8), Ubuntu 24.04, GCC 13.3, Release, full ctest -j4.

  • main: 1286 / 1287. With this PR: 1286 / 1287, the same single failure.
  • The failure is agc_driver_graphics. It fails the same way on main (#6792, "VOP2 opcode is not implemented") and stops before the cases this PR adds to Graphics.cpp. With #6789 merged as well it passes, with this PR and without, so the new cases run and pass here.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217077444 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6762#issuecomment-6217077444). Originally posted by [johnmaia](https://github.com/johnmaia) on 2026-10-16T13:56:29Z. --- AMD run with this head (c51ee6b82) merged onto `main` 82ddae75b: AMD Radeon RX 7600 (RDNA 3, RADV NAVI33, Mesa 25.2.8), Ubuntu 24.04, GCC 13.3, Release, full `ctest -j4`. - `main`: 1286 / 1287. With this PR: 1286 / 1287, the same single failure. - The failure is `agc_driver_graphics`. It fails the same way on `main` (#6792, "VOP2 opcode is not implemented") and stops before the cases this PR adds to `Graphics.cpp`. With #6789 merged as well it passes, with this PR and without, so the new cases run and pass here. AI-assisted: yes (Claude Code)
simonbronk commented 2026-10-17 07:44:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-17T07:44:49Z.


Rebased onto main 17cfb1f4c, head aa0857a8d. Two changes:

  • main now uses request serialization version 32 for spannedWaves (7a6cc7178), so the stencil flag moves to version 33. As last time, Git merged the two version bumps without a conflict. request_serializer and agc_shader_memory expect 33, and a version 32 pixel request reads no flag.
  • State.cpp: decodeDepth keeps main's narrower DB_RENDER_CONTROL mask (0x101c, from 4cdd2f483). ShaderMemory.cpp: the older-version cases keep main's pop_back() for the trailing spannedWaves byte and also drop this PR's byte.

ctest -R "agc|shader|video_out|request_serializer" -j 8, Windows 11 26200, with this PR merged onto main 17cfb1f4c together with #5915, #6557, #6727 and #6911:

  • RTX 5070 (617.42): 666/666 pass.
  • AMD gfx1036 iGPU: 664/666. agc_driver_lds_mixed_width_atomics fails, as in #5271. agc_driver_layered_volume_vertex_no_gpl fails too: it's the driver VkCache that mixes GPL modes, the case #6436 covers. Neither test touches this change.

@johnmaia thanks for the RADV run.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6231350476 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6762#issuecomment-6231350476). Originally posted by [simonbronk](https://github.com/simonbronk) on 2026-10-17T07:44:49Z. --- Rebased onto `main` 17cfb1f4c, head aa0857a8d. Two changes: - `main` now uses request serialization version 32 for `spannedWaves` (7a6cc7178), so the stencil flag moves to **version 33**. As last time, Git merged the two version bumps without a conflict. `request_serializer` and `agc_shader_memory` expect 33, and a version 32 pixel request reads no flag. - `State.cpp`: `decodeDepth` keeps `main`'s narrower `DB_RENDER_CONTROL` mask (0x101c, from 4cdd2f483). `ShaderMemory.cpp`: the older-version cases keep `main`'s `pop_back()` for the trailing `spannedWaves` byte and also drop this PR's byte. `ctest -R "agc|shader|video_out|request_serializer" -j 8`, Windows 11 26200, with this PR merged onto `main` 17cfb1f4c together with #5915, #6557, #6727 and #6911: - RTX 5070 (617.42): 666/666 pass. - AMD gfx1036 iGPU: 664/666. `agc_driver_lds_mixed_width_atomics` fails, as in #5271. `agc_driver_layered_volume_vertex_no_gpl` fails too: it's the driver `VkCache` that mixes GPL modes, the case #6436 covers. Neither test touches this change. @johnmaia thanks for the RADV run.
simonbronk commented 2026-10-17 08:55:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-17T08:55:50Z.


A title result with this head, recorded here so nobody reads more into the earlier run than it showed.

On the RTX 5070, which doesn't expose VK_EXT_shader_stencil_export (vulkaninfo lists it only for the AMD iGPU), the title's 0x45 draw now stops in #5466's replay path:

shader 0x2107d4b600 stage 5: ShaderRecompiler::Recompile: stencil reference export emulation requires a proven set of at most 16 values

The request decodes to stencilRefExportEnable 1, stencilOperationValueExport 1. The pixel shader takes the value either from a user-data byte (s4 & 0xff) or from a buffer read, then shifts it left by 8 before exp mrtz. So the set of values can't be proven at compile time. The run on 2026-10-16 passed this draw only because the head at the time read bits 0-7, which that shift always leaves at 0.

So the throw is correct, and this PR doesn't change it. On devices with the extension the draw goes through FragStencilRef. Replaying an 8-bit operation value needs at most 256 values, but that is a change to #5466's emulation and not part of this PR.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6232000913 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6762#issuecomment-6232000913). Originally posted by [simonbronk](https://github.com/simonbronk) on 2026-10-17T08:55:50Z. --- A title result with this head, recorded here so nobody reads more into the earlier run than it showed. On the RTX 5070, which doesn't expose `VK_EXT_shader_stencil_export` (`vulkaninfo` lists it only for the AMD iGPU), the title's 0x45 draw now stops in #5466's replay path: ``` shader 0x2107d4b600 stage 5: ShaderRecompiler::Recompile: stencil reference export emulation requires a proven set of at most 16 values ``` The request decodes to `stencilRefExportEnable 1`, `stencilOperationValueExport 1`. The pixel shader takes the value either from a user-data byte (`s4 & 0xff`) or from a buffer read, then shifts it left by 8 before `exp mrtz`. So the set of values can't be proven at compile time. The run on 2026-10-16 passed this draw only because the head at the time read bits 0-7, which that shift always leaves at 0. So the throw is correct, and this PR doesn't change it. On devices with the extension the draw goes through `FragStencilRef`. Replaying an 8-bit operation value needs at most 256 values, but that is a change to #5466's emulation and not part of this PR.
adriadam10 commented 2026-10-19 13:45:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T13:45:35Z.


Rebased onto current main: it changed ShaderInputState.cpp, the request serializer and its tests again. The stencil operation value flag stays in request serialization version 37 (after the pixel sample locations), the old-version cases skip its byte, and Graphics.cpp accepts either the shifted literal or the constant 0x2a that the SPIR-V optimizer folds it to.

The PR logic is unchanged from the version checked: the flag is in the recompile cache key, the draw lookup/register keys and the serializer; add/subtract, REPLACE_OP with a test value export and early tests still throw; stencilRefExportTests pins accepted and refused cases. The bits 8-15 layout rests on the one pixel shader quoted in the PR, as the debt entry says. Build and ctest passed on the rebased head; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6268721718 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6762#issuecomment-6268721718). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T13:45:35Z. --- Rebased onto current `main`: it changed `ShaderInputState.cpp`, the request serializer and its tests again. The stencil operation value flag stays in request serialization version 37 (after the pixel sample locations), the old-version cases skip its byte, and `Graphics.cpp` accepts either the shifted literal or the constant `0x2a` that the SPIR-V optimizer folds it to. The PR logic is unchanged from the version checked: the flag is in the recompile cache key, the draw lookup/register keys and the serializer; add/subtract, `REPLACE_OP` with a test value export and early tests still throw; `stencilRefExportTests` pins accepted and refused cases. The bits 8-15 layout rests on the one pixel shader quoted in the PR, as the debt entry says. Build and ctest passed on the rebased head; merged.
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!6762
No description provided.