fix(shader): order wave LDS accesses with a memory barrier on AMD's proprietary driver #8134

Merged
wachi35676 merged 2 commits from upstream-pr/8134 into main 2026-10-21 05:46:42 +00:00
wachi35676 commented 2026-10-19 23:32:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-19T23:32:48Z.


What

When one guest wave is one host subgroup (WaveLdsScope), the recompiler orders that wave's LDS accesses with OpControlBarrier(Subgroup, Workgroup, AcquireRelease | WorkgroupMemory) between an LDS write and the next LDS access. AMD's proprietary Windows Vulkan driver compiles that barrier to a real s_barrier.

  • In the pipeline's internal ISA (VK_KHR_pipeline_executable_properties), a small wave32 LDS tree reduction had 26 s_barrier instead of the guest's 9.
  • Those barriers sit inside branches that only some waves of the workgroup take. The extra s_barriers pair with other waves' barriers, and those waves read LDS before it is written.
  • LLPC lowers a subgroup-scope control barrier to a wave barrier instead (SPIRVReader.cpp), so this is specific to AMD's closed compiler.
  • PS5LM Plus (PPSA99581, llama.cpp's Vulkan backend) answered with garbage on that GPU. The first compute dispatch of its first graph is an RMS norm with a 512-thread wave32 LDS tree reduction. It scaled every row except the first 32 elements by a partial sum, while NVIDIA matched a NumPy reference on identical inputs.

Changes:

  • SubgroupControlBarrierUsable(VkDriverId) in the new Execution/include/SubgroupBarrier.hpp is false only for VK_DRIVER_ID_AMD_PROPRIETARY.
  • The device passes that as the new SpirvTarget::waveLdsMemoryBarriers, which is part of the cache key.
  • With the flag set, the wave LDS barrier of a subgroup-scope wave is OpMemoryBarrier(Subgroup, AcquireRelease | WorkgroupMemory), which that driver compiles to no instruction. Every other driver, and the workgroup-scope case, keep the control barrier.
  • agc_shader_replay --wave-lds-memory-barriers replays a dumped request the way that driver compiles it. Like --robust2, the flag is not serialized.

The fix relies on two things that Vulkan does not guarantee. A 32-lane subgroup must be one hardware wave whose lanes run in lockstep. That wave must issue its LDS instructions in order. Both hold on RDNA, where wave32 is pinned with requiredSubgroupSize = 32. For LDS that the recompiler keeps in device memory (larger than the device's shared memory), the same is assumed for global loads and stores, and that case is not measured. Both points are recorded in docs/dev/debt/shader.md.

Not covered:

  • Only one GPU and driver was measured: the Radeon iGPU of a Ryzen 5 9600X (0x13c0, RDNA 2), Windows driver 32.0.21042.62 (Vulkan driver 2.0.353).
  • LeandroLP23 reports that a Radeon 860M (RDNA 3.5, 32.0.13058.8001) does not show the garbage. The gate still applies to every AMD proprietary driver version, because the ISA there was not inspected.
  • With flash attention on (-fa on), PS5LM Plus still drifts on this GPU. The cause is not established and this PR does not fix it.

Tested

Windows 11, WinLibs GCC 15.2, full Release build of this commit on main f29546ac4 (the later rebase onto eb7500680 changed only the debt file). ctest -R "agc|shader|spirv|recomp" (824 tests) ran with ANYPS5_REQUIRE_VULKAN=1 and -j4; failures were rerun alone. The baseline is the same tree with the emitter and device change reverted and the tests kept:

  • NVIDIA GeForce RTX 5070 Ti (617.42): 3 skipped, 3 failed: agc_driver_msaa_dcc_clear_4 ("requires watched guest memory"), agc_driver_pass_input_hazard and agc_driver_sgpr_pattern_fill_keys (timing; passes alone). All three fail on the baseline too.
  • AMD Radeon Graphics (0x13c0, 32.0.21042.62): 3 skipped, 5 failed: agc_driver_msaa_dcc_clear_4, agc_driver_layered_volume_draw and agc_driver_layered_volume_vertex (already in the debt file for this driver), agc_driver_draw_cache_reuse_off and agc_driver_stencil_replay_no_gpl. All five fail on the baseline too.

Linux (WSL Ubuntu 24.04, GCC 13.3, llvmpipe LLVM 20.1.2): full build with -DBUILD_TESTING=ON, the same ctest set: 814 tests, 17 failed. All 17 also fail with the change reverted; they need watched guest memory (no userfaultfd write protection in WSL) or llvmpipe features. agc_subgroup_barrier passes, and agc_driver_lds_tree_reduction skips.

New tests:

  • agc_driver_lds_tree_reduction sums 1..256 over eight wave32 waves the way the guest does. Its first three steps are behind branches that waves 0-3, 0-1 and 0 take, with an s_barrier after each step. Its last five steps run inside wave 0 with no s_barrier between them, so on AMD only the new memory barrier orders them. The test runs 16 rounds.
    • Without the change on AMD it fails with round 0: thread 32 (wave 1) read 388, expected 32896.
    • With the change it passes on AMD and NVIDIA.
    • It skips on llvmpipe, which has no 32-lane subgroups.
  • agc_subgroup_barrier needs no GPU, so it runs on every runner. It checks the driver quirk table, and it recompiles a branched LDS step with the flag off and on:
    • eight waves, flag off: subgroup OpControlBarrier only;
    • eight waves, flag on: subgroup OpMemoryBarrier only;
    • one wave: no subgroup-scope barrier either way.
    • Without the emitter change it fails on all three platforms.
  • agc_shader_disk_cache now also checks that the new flag changes the cache key.

PS5LM Plus v0.8.4, converted with this change on main 9127ea36d, was run with qwen2.5-0.5b-instruct-q4_k_m.gguf, -fa off -ngl 999 and the prompt "The capital of France is" at temperature 0:

  • AMD iGPU with this change: " Paris. It is the largest city in Europe and the second largest in the world". That is the same text as NVIDIA and the CPU. It held on 4 of 4 runs with a warm shader cache. The cold runs timed out on the guest's own 10 s fence wait while shaders compiled.
  • AMD iGPU without this change (main of 19 October, same configuration): garbage such as "足笔RESS害'])?ectorьянi…" on both runs that completed; the other runs hit the fence timeout.

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
  • Fixes: none
  • Unblocks: PPSA99581 #5601
  • GPUs tested: NVIDIA GeForce RTX 5070 Ti (617.42) and AMD Radeon Graphics (Ryzen 5 9600X iGPU, 0x13c0, 32.0.21042.62), Windows 11; llvmpipe (LLVM 20.1.2) on WSL Ubuntu 24.04, where the new GPU test skips
  • AI-assisted: yes (Claude Code); the results above were run on this machine.

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4928805578 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8134). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-19T23:32:48Z. --- ### What When one guest wave is one host subgroup (`WaveLdsScope`), the recompiler orders that wave's LDS accesses with `OpControlBarrier(Subgroup, Workgroup, AcquireRelease | WorkgroupMemory)` between an LDS write and the next LDS access. AMD's proprietary Windows Vulkan driver compiles that barrier to a real `s_barrier`. - In the pipeline's internal ISA (`VK_KHR_pipeline_executable_properties`), a small wave32 LDS tree reduction had 26 `s_barrier` instead of the guest's 9. - Those barriers sit inside branches that only some waves of the workgroup take. The extra `s_barrier`s pair with other waves' barriers, and those waves read LDS before it is written. - LLPC lowers a subgroup-scope control barrier to a wave barrier instead ([SPIRVReader.cpp](https://github.com/GPUOpen-Drivers/llpc/blob/40cb8d95ad8d6f7f1652e3fd47d39667594cce08/llpc/translator/lib/SPIRV/SPIRVReader.cpp#L10942-L10954)), so this is specific to AMD's closed compiler. - PS5LM Plus (PPSA99581, llama.cpp's Vulkan backend) answered with garbage on that GPU. The first compute dispatch of its first graph is an RMS norm with a 512-thread wave32 LDS tree reduction. It scaled every row except the first 32 elements by a partial sum, while NVIDIA matched a NumPy reference on identical inputs. Changes: - `SubgroupControlBarrierUsable(VkDriverId)` in the new `Execution/include/SubgroupBarrier.hpp` is false only for `VK_DRIVER_ID_AMD_PROPRIETARY`. - The device passes that as the new `SpirvTarget::waveLdsMemoryBarriers`, which is part of the cache key. - With the flag set, the wave LDS barrier of a subgroup-scope wave is `OpMemoryBarrier(Subgroup, AcquireRelease | WorkgroupMemory)`, which that driver compiles to no instruction. Every other driver, and the workgroup-scope case, keep the control barrier. - `agc_shader_replay --wave-lds-memory-barriers` replays a dumped request the way that driver compiles it. Like `--robust2`, the flag is not serialized. The fix relies on two things that Vulkan does not guarantee. A 32-lane subgroup must be one hardware wave whose lanes run in lockstep. That wave must issue its LDS instructions in order. Both hold on RDNA, where wave32 is pinned with `requiredSubgroupSize = 32`. For LDS that the recompiler keeps in device memory (larger than the device's shared memory), the same is assumed for global loads and stores, and that case is not measured. Both points are recorded in `docs/dev/debt/shader.md`. Not covered: - Only one GPU and driver was measured: the Radeon iGPU of a Ryzen 5 9600X (0x13c0, RDNA 2), Windows driver 32.0.21042.62 (Vulkan driver 2.0.353). - LeandroLP23 reports that a Radeon 860M (RDNA 3.5, 32.0.13058.8001) does not show the garbage. The gate still applies to every AMD proprietary driver version, because the ISA there was not inspected. - With flash attention on (`-fa on`), PS5LM Plus still drifts on this GPU. The cause is not established and this PR does not fix it. ### Tested Windows 11, WinLibs GCC 15.2, full Release build of this commit on `main` f29546ac4 (the later rebase onto eb7500680 changed only the debt file). `ctest -R "agc|shader|spirv|recomp"` (824 tests) ran with `ANYPS5_REQUIRE_VULKAN=1` and `-j4`; failures were rerun alone. The baseline is the same tree with the emitter and device change reverted and the tests kept: - NVIDIA GeForce RTX 5070 Ti (617.42): 3 skipped, 3 failed: `agc_driver_msaa_dcc_clear_4` ("requires watched guest memory"), `agc_driver_pass_input_hazard` and `agc_driver_sgpr_pattern_fill_keys` (timing; passes alone). All three fail on the baseline too. - AMD Radeon Graphics (0x13c0, 32.0.21042.62): 3 skipped, 5 failed: `agc_driver_msaa_dcc_clear_4`, `agc_driver_layered_volume_draw` and `agc_driver_layered_volume_vertex` (already in the debt file for this driver), `agc_driver_draw_cache_reuse_off` and `agc_driver_stencil_replay_no_gpl`. All five fail on the baseline too. Linux (WSL Ubuntu 24.04, GCC 13.3, llvmpipe LLVM 20.1.2): full build with `-DBUILD_TESTING=ON`, the same ctest set: 814 tests, 17 failed. All 17 also fail with the change reverted; they need watched guest memory (no userfaultfd write protection in WSL) or llvmpipe features. `agc_subgroup_barrier` passes, and `agc_driver_lds_tree_reduction` skips. New tests: - `agc_driver_lds_tree_reduction` sums 1..256 over eight wave32 waves the way the guest does. Its first three steps are behind branches that waves 0-3, 0-1 and 0 take, with an `s_barrier` after each step. Its last five steps run inside wave 0 with no `s_barrier` between them, so on AMD only the new memory barrier orders them. The test runs 16 rounds. - Without the change on AMD it fails with `round 0: thread 32 (wave 1) read 388, expected 32896`. - With the change it passes on AMD and NVIDIA. - It skips on llvmpipe, which has no 32-lane subgroups. - `agc_subgroup_barrier` needs no GPU, so it runs on every runner. It checks the driver quirk table, and it recompiles a branched LDS step with the flag off and on: - eight waves, flag off: subgroup `OpControlBarrier` only; - eight waves, flag on: subgroup `OpMemoryBarrier` only; - one wave: no subgroup-scope barrier either way. - Without the emitter change it fails on all three platforms. - `agc_shader_disk_cache` now also checks that the new flag changes the cache key. PS5LM Plus v0.8.4, converted with this change on `main` 9127ea36d, was run with `qwen2.5-0.5b-instruct-q4_k_m.gguf`, `-fa off -ngl 999` and the prompt "The capital of France is" at temperature 0: - AMD iGPU with this change: `" Paris. It is the largest city in Europe and the second largest in the world"`. That is the same text as NVIDIA and the CPU. It held on 4 of 4 runs with a warm shader cache. The cold runs timed out on the guest's own 10 s fence wait while shaders compiled. - AMD iGPU without this change (`main` of 19 October, same configuration): garbage such as `"足笔RESS害'])?ectorьянi…"` on both runs that completed; the other runs hit the fence timeout. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 - [x] Fixes: none - [x] Unblocks: PPSA99581 #5601 - [x] GPUs tested: NVIDIA GeForce RTX 5070 Ti (617.42) and AMD Radeon Graphics (Ryzen 5 9600X iGPU, 0x13c0, 32.0.21042.62), Windows 11; llvmpipe (LLVM 20.1.2) on WSL Ubuntu 24.04, where the new GPU test skips - [x] AI-assisted: yes (Claude Code); the results above were run on this machine. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-actions[bot] commented 2026-10-19 23:49:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T23:49:23Z.


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 6959 docs/dev/debt/shader.md L174
PR 8267 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp L21

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 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
docs/dev/debt/shader.md
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/shader.md
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5609 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.hpp
PR 5941 docs/dev/debt/shader.md
PR 6009 docs/dev/debt/shader.md
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.hpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6202 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6235 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.hpp
docs/dev/debt/shader.md
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
docs/dev/debt/shader.md
PR 6290 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6292 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/debt/shader.md
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
docs/dev/debt/shader.md
PR 6501 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6539 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 6615 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6683 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6718 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6804 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6820 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6924 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
docs/dev/debt/shader.md
PR 6946 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.hpp
PR 6947 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6970 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.hpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 7395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
docs/dev/debt/shader.md
PR 7449 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7484 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
docs/dev/debt/shader.md
PR 7505 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7514 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7550 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
PR 7644 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7677 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7684 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
docs/dev/debt/shader.md
PR 7689 core/shader/recompiler/Recompiler.hpp
PR 7800 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7816 core/shader/recompiler/Recompiler.cpp
PR 7888 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
docs/dev/debt/shader.md
PR 8014 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8077 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
docs/dev/debt/shader.md
PR 8206 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8246 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8278 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8295 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
docs/dev/debt/shader.md
PR 8484 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8552 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8564 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp
docs/dev/debt/shader.md
PR 8592 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8612 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6279894651 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8134#issuecomment-6279894651). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T23:49:23Z. --- <!-- 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 6959](https://www.github.com/boykopovar/AnyPS5/pull/6959) | `docs/dev/debt/shader.md` [L174](https://github.com/boykopovar/AnyPS5/blob/a07e985c8f6ef94c364b9fbc90cfc755cf03a0c6/docs/dev/debt/shader.md#L174) | | | | [PR 8267](https://www.github.com/boykopovar/AnyPS5/pull/8267) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` [L21](https://github.com/boykopovar/AnyPS5/blob/a07e985c8f6ef94c364b9fbc90cfc755cf03a0c6/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L21) | | | 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 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp` | | [PR 4472](https://www.github.com/boykopovar/AnyPS5/pull/4472) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/shader.md` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.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/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 5941](https://www.github.com/boykopovar/AnyPS5/pull/5941) | `docs/dev/debt/shader.md` | | [PR 6009](https://www.github.com/boykopovar/AnyPS5/pull/6009) | `docs/dev/debt/shader.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6202](https://www.github.com/boykopovar/AnyPS5/pull/6202) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`docs/dev/debt/shader.md` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`docs/dev/debt/shader.md` | | [PR 6290](https://www.github.com/boykopovar/AnyPS5/pull/6290) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`docs/dev/debt/shader.md` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6488](https://www.github.com/boykopovar/AnyPS5/pull/6488) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6718](https://www.github.com/boykopovar/AnyPS5/pull/6718) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6804](https://www.github.com/boykopovar/AnyPS5/pull/6804) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6820](https://www.github.com/boykopovar/AnyPS5/pull/6820) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6924](https://www.github.com/boykopovar/AnyPS5/pull/6924) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`docs/dev/debt/shader.md` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6970](https://www.github.com/boykopovar/AnyPS5/pull/6970) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`docs/dev/debt/shader.md` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`docs/dev/debt/shader.md` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7550](https://www.github.com/boykopovar/AnyPS5/pull/7550) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp` | | [PR 7644](https://www.github.com/boykopovar/AnyPS5/pull/7644) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7677](https://www.github.com/boykopovar/AnyPS5/pull/7677) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7684](https://www.github.com/boykopovar/AnyPS5/pull/7684) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`docs/dev/debt/shader.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) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7816](https://www.github.com/boykopovar/AnyPS5/pull/7816) | `core/shader/recompiler/Recompiler.cpp` | | [PR 7888](https://www.github.com/boykopovar/AnyPS5/pull/7888) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8077](https://www.github.com/boykopovar/AnyPS5/pull/8077) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [PR 8206](https://www.github.com/boykopovar/AnyPS5/pull/8206) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8246](https://www.github.com/boykopovar/AnyPS5/pull/8246) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8278](https://www.github.com/boykopovar/AnyPS5/pull/8278) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8295](https://www.github.com/boykopovar/AnyPS5/pull/8295) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`docs/dev/debt/shader.md` | | [PR 8484](https://www.github.com/boykopovar/AnyPS5/pull/8484) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8552](https://www.github.com/boykopovar/AnyPS5/pull/8552) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8564](https://www.github.com/boykopovar/AnyPS5/pull/8564) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cpp`<br>`docs/dev/debt/shader.md` | | [PR 8592](https://www.github.com/boykopovar/AnyPS5/pull/8592) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8612](https://www.github.com/boykopovar/AnyPS5/pull/8612) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/CacheKey.hpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp`<br>`core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` |
wachi35676 commented 2026-10-20 00:23:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-20T00:23:54Z.


Rebased onto main 3aa35dc01. The only conflict was in docs/dev/debt/shader.md, where main added the "Guest memory load guards" entry beside this PR's new entry; both are kept. The code is unchanged. Head 473497cbf.

Windows 11, WinLibs GCC 15.2.0, full build:

  • RTX 5070 Ti: the agc|shader|spirv|recomp|subgroup subset passes 824 of 827. The three failures also fail on main:
    • agc_driver_msaa_dcc_clear_4: #8103, from #6457.
    • agc_driver_pass_input_hazard: #7954.
    • agc_driver_sgpr_pattern_fill_keys: times out under load.
  • AMD iGPU: agc_subgroup_barrier, agc_driver_lds_tree_reduction, agc_shader_disk_cache and agc_shader_disk_cache_large_file pass.

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6280352664 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8134#issuecomment-6280352664). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-20T00:23:54Z. --- Rebased onto `main` `3aa35dc01`. The only conflict was in `docs/dev/debt/shader.md`, where `main` added the "Guest memory load guards" entry beside this PR's new entry; both are kept. The code is unchanged. Head `473497cbf`. Windows 11, WinLibs GCC 15.2.0, full build: - **RTX 5070 Ti:** the `agc|shader|spirv|recomp|subgroup` subset passes 824 of 827. The three failures also fail on `main`: - `agc_driver_msaa_dcc_clear_4`: #8103, from #6457. - `agc_driver_pass_input_hazard`: #7954. - `agc_driver_sgpr_pattern_fill_keys`: times out under load. - **AMD iGPU:** `agc_subgroup_barrier`, `agc_driver_lds_tree_reduction`, `agc_shader_disk_cache` and `agc_shader_disk_cache_large_file` pass. AI-assisted: yes (Claude Code); results above were run on this machine.
TheSovietWaffle commented 2026-10-20 07:37:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TheSovietWaffle on 2026-10-20T07:37:07Z.


Confirmed on a second AMD proprietary driver and device: RTX 3080 (NVIDIA 617.42) and AMD Radeon RDNA 2 iGPU (1002:164e, 32.0.21045.5002), Windows 10 Pro 22H2, WinLibs GCC 15.2.0, Release, head 473497cbf.

  • With this PR: agc_driver_lds_tree_reduction, agc_subgroup_barrier and agc_shader_disk_cache pass 3 of 3 on both GPUs.
  • Baseline, the same build with only state->subgroupControlBarriers = true; in VulkanDevice.cpp (so the AMD path is off), ANYPS5_NO_SHADER_CACHE=1: agc_driver_lds_tree_reduction fails 10 of 10 on the Radeon with round 0: thread 32 (wave 1) read 388, expected 32896, and passes 10 of 10 on the RTX 3080.

So the newer AMD driver (32.0.21045.5002, newer than the 32.0.21042.62 in the description) on RDNA 2 1002:164e needs the barrier too.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6285890643 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8134#issuecomment-6285890643). Originally posted by [TheSovietWaffle](https://github.com/TheSovietWaffle) on 2026-10-20T07:37:07Z. --- Confirmed on a second AMD proprietary driver and device: RTX 3080 (NVIDIA 617.42) and AMD Radeon RDNA 2 iGPU (`1002:164e`, 32.0.21045.5002), Windows 10 Pro 22H2, WinLibs GCC 15.2.0, Release, head `473497cbf`. - With this PR: `agc_driver_lds_tree_reduction`, `agc_subgroup_barrier` and `agc_shader_disk_cache` pass 3 of 3 on both GPUs. - Baseline, the same build with only `state->subgroupControlBarriers = true;` in `VulkanDevice.cpp` (so the AMD path is off), `ANYPS5_NO_SHADER_CACHE=1`: `agc_driver_lds_tree_reduction` fails 10 of 10 on the Radeon with `round 0: thread 32 (wave 1) read 388, expected 32896`, and passes 10 of 10 on the RTX 3080. So the newer AMD driver (32.0.21045.5002, newer than the 32.0.21042.62 in the description) on RDNA 2 `1002:164e` needs the barrier too. AI-assisted: yes (Claude Code).
root-over commented 2026-10-20 07:45:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by root-over on 2026-10-20T07:45:29Z.


RADV run, the other AMD driver: Linux (Ubuntu, kernel 7.0), Ryzen 5 5625U iGPU (Vega/GCN 5, RADV RENOIR, Mesa 26.0.8, 64-lane subgroups only), GCC 15.2.0, Release. main 3fd1cc393 against main with this head (473497cbf) merged (a clean merge), same build directory, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ctest -R '^agc_driver_graphics$|multisample|msaa|depth|lds|subgroup_barrier|shader_disk_cache' -V:

  • All 19 lds tests and the pixel LDS tests pass on both builds, as do agc_shader_disk_cache (with the new cache-key check) and the depth and multisample tests. This PR changes no result.
  • agc_subgroup_barrier passes.
  • agc_driver_lds_tree_reduction skips here: wave32 programs do not run on 32-lane subgroups (64 lanes). GCN 5 has only 64-lane subgroups, so the new test doesn't cover this device. With SubgroupControlBarrierUsable false only for VK_DRIVER_ID_AMD_PROPRIETARY, RADV keeps the subgroup OpControlBarrier, as on main.
  • Neither log reports the layer missing (was not found but was requested by env var VK_INSTANCE_LAYERS), and neither has a VUID- error.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6286028534 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8134#issuecomment-6286028534). Originally posted by [root-over](https://github.com/root-over) on 2026-10-20T07:45:29Z. --- RADV run, the other AMD driver: Linux (Ubuntu, kernel 7.0), Ryzen 5 5625U iGPU (Vega/GCN 5, RADV RENOIR, Mesa 26.0.8, 64-lane subgroups only), GCC 15.2.0, Release. `main` `3fd1cc393` against `main` with this head (`473497cbf`) merged (a clean merge), same build directory, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ctest -R '^agc_driver_graphics$|multisample|msaa|depth|lds|subgroup_barrier|shader_disk_cache' -V`: - All 19 `lds` tests and the pixel LDS tests pass on both builds, as do `agc_shader_disk_cache` (with the new cache-key check) and the depth and multisample tests. This PR changes no result. - `agc_subgroup_barrier` passes. - `agc_driver_lds_tree_reduction` skips here: `wave32 programs do not run on 32-lane subgroups (64 lanes)`. GCN 5 has only 64-lane subgroups, so the new test doesn't cover this device. With `SubgroupControlBarrierUsable` false only for `VK_DRIVER_ID_AMD_PROPRIETARY`, RADV keeps the subgroup `OpControlBarrier`, as on `main`. - Neither log reports the layer missing (`was not found but was requested by env var VK_INSTANCE_LAYERS`), and neither has a `VUID-` error.
thuanquang commented 2026-10-20 08:54:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by thuanquang on 2026-10-20T08:54:47Z.


A third AMD data point, on a discrete RDNA 2 card: RX 6700 XT (gfx1031), AMD's Windows driver 32.0.21045.5002, Windows 11 26200, Release. main f9012eed0 against main f9012eed0 with this head (473497cbf, clean merge), ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1.

main + this PR's LdsTreeReduction.cpp only this PR
agc_driver_lds_tree_reduction, 10 fresh processes fails 10/10: round 0: thread 32 (wave 1) read 388, expected 32896 passes 10/10

The failure is the same one TheSovietWaffle saw on the RDNA 2 iGPU, so it isn't specific to the integrated part.

Khronos validation layer A/B, ctest -V --repeat until-fail:3 on agc_driver_lds_tree_reduction, agc_subgroup_barrier, agc_shader_disk_cache, agc_driver_lds_atomics, agc_driver_lds_mixed_width_atomics and agc_driver_lds_float_atomic_modes:

  • main (no agc_subgroup_barrier there): the tree reduction fails as above, and the other 4 pass.
  • This PR: 6 of 6 pass.
  • Both sides: 0 VUID- messages and no was not found but was requested line.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6287263007 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8134#issuecomment-6287263007). Originally posted by [thuanquang](https://github.com/thuanquang) on 2026-10-20T08:54:47Z. --- A third AMD data point, on a discrete RDNA 2 card: RX 6700 XT (gfx1031), AMD's Windows driver 32.0.21045.5002, Windows 11 26200, Release. `main` `f9012eed0` against `main` `f9012eed0` with this head (`473497cbf`, clean merge), `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`. | | `main` + this PR's `LdsTreeReduction.cpp` only | this PR | |---|---|---| | `agc_driver_lds_tree_reduction`, 10 fresh processes | fails 10/10: `round 0: thread 32 (wave 1) read 388, expected 32896` | passes 10/10 | The failure is the same one TheSovietWaffle saw on the RDNA 2 iGPU, so it isn't specific to the integrated part. Khronos validation layer A/B, `ctest -V --repeat until-fail:3` on `agc_driver_lds_tree_reduction`, `agc_subgroup_barrier`, `agc_shader_disk_cache`, `agc_driver_lds_atomics`, `agc_driver_lds_mixed_width_atomics` and `agc_driver_lds_float_atomic_modes`: - `main` (no `agc_subgroup_barrier` there): the tree reduction fails as above, and the other 4 pass. - This PR: 6 of 6 pass. - Both sides: 0 `VUID-` messages and no `was not found but was requested` line.
wachi35676 commented 2026-10-20 16:00:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-20T16:00:45Z.


Rebased onto main d073fe6a1. The only conflict was in docs/dev/debt/shader.md, where main added the "Merged hull programs" entry beside this PR's entry; both are kept. The code is unchanged. Head 243925113. #8489 is restacked on it, at c1528a6e1.

Windows 11, WinLibs GCC 15.2.0, agc|shader|spirv|recomp|subgroup subset, both PRs together:

  • RTX 5070 Ti: 844 of 846 pass.
    • agc_driver_image_array_window_past_layer_limit doesn't compile with MinGW on main (alignas(65536); #8310 fixes it).
    • agc_driver_sgpr_pattern_fill_keys times out under load.
  • AMD RDNA2 iGPU (ANYPS5_GPU=AMD): the same two, plus agc_driver_tessellation.
    • It fails merged hull program, unculled: the level-1 patch was not drawn as one flat triangle, 3 of 3.
    • It also fails 3 of 3 on this iGPU on main + #7410 without these AMD changes, and passes on the RTX. So it comes from the new merged hull path (8b8219dce) on AMD's driver, not from this PR.

AI-assisted: yes (Claude Code); results above were run on this machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6295235565 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8134#issuecomment-6295235565). Originally posted by [wachi35676](https://github.com/wachi35676) on 2026-10-20T16:00:45Z. --- Rebased onto `main` `d073fe6a1`. The only conflict was in `docs/dev/debt/shader.md`, where `main` added the "Merged hull programs" entry beside this PR's entry; both are kept. The code is unchanged. Head `243925113`. #8489 is restacked on it, at `c1528a6e1`. Windows 11, WinLibs GCC 15.2.0, `agc|shader|spirv|recomp|subgroup` subset, both PRs together: - **RTX 5070 Ti:** 844 of 846 pass. - `agc_driver_image_array_window_past_layer_limit` doesn't compile with MinGW on `main` (`alignas(65536)`; #8310 fixes it). - `agc_driver_sgpr_pattern_fill_keys` times out under load. - **AMD RDNA2 iGPU** (`ANYPS5_GPU=AMD`): the same two, plus `agc_driver_tessellation`. - It fails `merged hull program, unculled: the level-1 patch was not drawn as one flat triangle`, 3 of 3. - It also fails 3 of 3 on this iGPU on `main` + #7410 without these AMD changes, and passes on the RTX. So it comes from the new merged hull path (8b8219dce) on AMD's driver, not from this PR. AI-assisted: yes (Claude Code); results above were run on this machine.
DavidAmsellem commented 2026-10-20 19:00:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DavidAmsellem on 2026-10-20T19:00:33Z.


First RADV run on RDNA 3, where the new reduction test actually runs. Head 243925113 merged onto main 2fee39f1b (clean merge), built in full and compared with the same main, on the same machine.

AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, Release.

Full suite (ANYPS5_REQUIRE_VULKAN=1 ctest -j8) at 4e2e3ced6: 1717/1718 with this PR, against 1715/1716 on main. The one failure is the same on both, so this PR adds none: agc_driver_guest_memory_lifetime (#7784, which #7849 addresses).

Comparing the JUnit output with main: the two new entries, agc_driver_lds_tree_reduction and agc_subgroup_barrier, run and pass. No other entry is added, and none is skipped or removed. With the Khronos validation layer, both pass and add no VUID (the only message is VkDeviceCreateInfo-pNext-pNext, which my older 1.3.275 layer prints for every device because it doesn't know maintenance8).

Unlike the GCN 5 iGPU in @root-over's run, agc_driver_lds_tree_reduction doesn't skip here: the device log reports Wave32 programs run on subgroups of 32: compute 1, mesh 1, so the wave32 rounds run on 32-lane subgroups. RADV isn't VK_DRIVER_ID_AMD_PROPRIETARY, so SubgroupControlBarrierUsable keeps the control barrier and no wave LDS memory barrier is emitted. The test passes on that path, so on RDNA 3 with RADV the reduction comes out right without the barrier this PR adds for AMD's proprietary driver.

GPUs tested: AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 / kernel 7.0.0-38

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6298820691 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8134#issuecomment-6298820691). Originally posted by [DavidAmsellem](https://github.com/DavidAmsellem) on 2026-10-20T19:00:33Z. --- First RADV run on RDNA 3, where the new reduction test actually runs. Head `243925113` merged onto `main` `2fee39f1b` (clean merge), built in full and compared with the same `main`, on the same machine. AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 (Ubuntu 24.04 base), kernel 7.0.0-38, GCC 13.3, Release. Full suite (`ANYPS5_REQUIRE_VULKAN=1 ctest -j8`) at `4e2e3ced6`: **1717/1718 with this PR**, against 1715/1716 on `main`. The one failure is the same on both, so this PR adds none: `agc_driver_guest_memory_lifetime` (#7784, which #7849 addresses). Comparing the JUnit output with `main`: the two new entries, `agc_driver_lds_tree_reduction` and `agc_subgroup_barrier`, run and pass. No other entry is added, and none is skipped or removed. With the Khronos validation layer, both pass and add no VUID (the only message is `VkDeviceCreateInfo-pNext-pNext`, which my older 1.3.275 layer prints for every device because it doesn't know `maintenance8`). Unlike the GCN 5 iGPU in @root-over's run, `agc_driver_lds_tree_reduction` doesn't skip here: the device log reports `Wave32 programs run on subgroups of 32: compute 1, mesh 1`, so the wave32 rounds run on 32-lane subgroups. RADV isn't `VK_DRIVER_ID_AMD_PROPRIETARY`, so `SubgroupControlBarrierUsable` keeps the control barrier and no wave LDS memory barrier is emitted. The test passes on that path, so on RDNA 3 with RADV the reduction comes out right without the barrier this PR adds for AMD's proprietary driver. GPUs tested: AMD Radeon RX 7900 XT (RADV NAVI31, gfx1100), Mesa 25.2.8, Linux Mint 22.3 / kernel 7.0.0-38 AI-assisted: yes
Amoenus commented 2026-10-21 06:05:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-21T06:05:25Z.


Independent post-merge component check on another AMD driver revision: agc_driver_lds_tree_reduction passes 3/3 fresh processes on AMD gfx1036 /32.0.21036.18 and 3/3 on RTX5080. Each process executes the fixture's16 reduction rounds. No skips/timeouts/VUIDs/validation errors or warnings.

agc_subgroup_barrier and agc_shader_disk_cache each pass3/3. The composition's agc_shader_memory additionally passes3/3 in each default/tape/compact/both verification mode (18 CPU processes across these groups). No pre-fix control was repeated here; this adds driver/composition regression coverage.

Windows 11 Enterprise 26200, WinLibs GCC15.2.0 r7/UCRT Release, SPIRV-Tools ON. Physical devices verified per log: RTX5080 10de:2c02, driver32.0.16.1062; Radeon Graphics/gfx1036 1002:13c0, driver32.0.21036.18. Required Vulkan, application cache/journal disabled, loaded Khronos1.4.363 verified; verbose serial CTest,30-second limit. Driver caches untouched.

This is a composition run on fork d67cb49872, incorporating main 53a0a27bb6, with the upstream fixture byte-identical. Focused targets and libraries built successfully; not literal main, an isolated red/green comparison, a full-suite or title result. AI-assisted: yes (Codex); author responsible.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6309286236 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8134#issuecomment-6309286236). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-21T06:05:25Z. --- Independent post-merge component check on another AMD driver revision: `agc_driver_lds_tree_reduction` passes **3/3 fresh processes on AMD gfx1036 /32.0.21036.18** and **3/3 on RTX5080**. Each process executes the fixture's16 reduction rounds. No skips/timeouts/VUIDs/validation errors or warnings. `agc_subgroup_barrier` and `agc_shader_disk_cache` each pass3/3. The composition's `agc_shader_memory` additionally passes3/3 in each default/tape/compact/both verification mode (18 CPU processes across these groups). No pre-fix control was repeated here; this adds driver/composition regression coverage. Windows 11 Enterprise 26200, WinLibs GCC15.2.0 r7/UCRT Release, SPIRV-Tools ON. Physical devices verified per log: RTX5080 `10de:2c02`, driver32.0.16.1062; Radeon Graphics/gfx1036 `1002:13c0`, driver32.0.21036.18. Required Vulkan, application cache/journal disabled, loaded Khronos1.4.363 verified; verbose serial CTest,30-second limit. Driver caches untouched. This is a **composition** run on [fork `d67cb49872`](https://github.com/Amoenus/AnyPS5/commit/d67cb49872f9183b852559b716c0c73156e850a0), incorporating main `53a0a27bb6`, with the upstream fixture byte-identical. Focused targets and libraries built successfully; not literal main, an isolated red/green comparison, a full-suite or title result. AI-assisted: yes (Codex); author responsible. <!-- codex-public-components-main53a0 -->
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!8134
No description provided.