fix(shader): order wave LDS accesses with a memory barrier on AMD's proprietary driver #8134
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8134"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by 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 withOpControlBarrier(Subgroup, Workgroup, AcquireRelease | WorkgroupMemory)between an LDS write and the next LDS access. AMD's proprietary Windows Vulkan driver compiles that barrier to a reals_barrier.VK_KHR_pipeline_executable_properties), a small wave32 LDS tree reduction had 26s_barrierinstead of the guest's 9.s_barriers pair with other waves' barriers, and those waves read LDS before it is written.Changes:
SubgroupControlBarrierUsable(VkDriverId)in the newExecution/include/SubgroupBarrier.hppis false only forVK_DRIVER_ID_AMD_PROPRIETARY.SpirvTarget::waveLdsMemoryBarriers, which is part of the cache key.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-barriersreplays 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 indocs/dev/debt/shader.md.Not covered:
-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
mainf29546ac4(the later rebase ontoeb7500680changed only the debt file).ctest -R "agc|shader|spirv|recomp"(824 tests) ran withANYPS5_REQUIRE_VULKAN=1and-j4; failures were rerun alone. The baseline is the same tree with the emitter and device change reverted and the tests kept:agc_driver_msaa_dcc_clear_4("requires watched guest memory"),agc_driver_pass_input_hazardandagc_driver_sgpr_pattern_fill_keys(timing; passes alone). All three fail on the baseline too.agc_driver_msaa_dcc_clear_4,agc_driver_layered_volume_drawandagc_driver_layered_volume_vertex(already in the debt file for this driver),agc_driver_draw_cache_reuse_offandagc_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_barrierpasses, andagc_driver_lds_tree_reductionskips.New tests:
agc_driver_lds_tree_reductionsums 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 ans_barrierafter each step. Its last five steps run inside wave 0 with nos_barrierbetween them, so on AMD only the new memory barrier orders them. The test runs 16 rounds.round 0: thread 32 (wave 1) read 388, expected 32896.agc_subgroup_barrierneeds 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:OpControlBarrieronly;OpMemoryBarrieronly;agc_shader_disk_cachenow also checks that the new flag changes the cache key.PS5LM Plus v0.8.4, converted with this change on
main9127ea36d, was run withqwen2.5-0.5b-instruct-q4_k_m.gguf,-fa off -ngl 999and the prompt "The capital of France is" at temperature 0:" 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.mainof 19 October, same configuration): garbage such as"足笔RESS害'])?ectorьянi…"on both runs that completed; the other runs hit the fence timeout.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
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.
main)docs/dev/debt/shader.mdL174core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppL21Some 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.
core/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/Recompiler.hppdocs/dev/debt/shader.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/Recompiler.hppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tools/ShaderReplay.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppcore/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppdocs/dev/debt/shader.mdcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvFlowEmitter.cppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CacheKey.hppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hppcore/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hppcore/shader/recompiler/SpirvBackend/src/SpirvEmitter.cppImported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-20T00:23:54Z.
Rebased onto
main3aa35dc01. The only conflict was indocs/dev/debt/shader.md, wheremainadded the "Guest memory load guards" entry beside this PR's new entry; both are kept. The code is unchanged. Head473497cbf.Windows 11, WinLibs GCC 15.2.0, full build:
agc|shader|spirv|recomp|subgroupsubset passes 824 of 827. The three failures also fail onmain: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.agc_subgroup_barrier,agc_driver_lds_tree_reduction,agc_shader_disk_cacheandagc_shader_disk_cache_large_filepass.AI-assisted: yes (Claude Code); results above were run on this machine.
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, head473497cbf.agc_driver_lds_tree_reduction,agc_subgroup_barrierandagc_shader_disk_cachepass 3 of 3 on both GPUs.state->subgroupControlBarriers = true;inVulkanDevice.cpp(so the AMD path is off),ANYPS5_NO_SHADER_CACHE=1:agc_driver_lds_tree_reductionfails 10 of 10 on the Radeon withround 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:164eneeds the barrier too.AI-assisted: yes (Claude Code).
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.
main3fd1cc393againstmainwith 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:ldstests and the pixel LDS tests pass on both builds, as doagc_shader_disk_cache(with the new cache-key check) and the depth and multisample tests. This PR changes no result.agc_subgroup_barrierpasses.agc_driver_lds_tree_reductionskips 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. WithSubgroupControlBarrierUsablefalse only forVK_DRIVER_ID_AMD_PROPRIETARY, RADV keeps the subgroupOpControlBarrier, as onmain.was not found but was requested by env var VK_INSTANCE_LAYERS), and neither has aVUID-error.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.
mainf9012eed0againstmainf9012eed0with this head (473497cbf, clean merge),ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1.main+ this PR'sLdsTreeReduction.cpponlyagc_driver_lds_tree_reduction, 10 fresh processesround 0: thread 32 (wave 1) read 388, expected 32896The 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:3onagc_driver_lds_tree_reduction,agc_subgroup_barrier,agc_shader_disk_cache,agc_driver_lds_atomics,agc_driver_lds_mixed_width_atomicsandagc_driver_lds_float_atomic_modes:main(noagc_subgroup_barrierthere): the tree reduction fails as above, and the other 4 pass.VUID-messages and nowas not found but was requestedline.Imported from boykopovar/AnyPS5. Originally posted by wachi35676 on 2026-10-20T16:00:45Z.
Rebased onto
maind073fe6a1. The only conflict was indocs/dev/debt/shader.md, wheremainadded the "Merged hull programs" entry beside this PR's entry; both are kept. The code is unchanged. Head243925113. #8489 is restacked on it, atc1528a6e1.Windows 11, WinLibs GCC 15.2.0,
agc|shader|spirv|recomp|subgroupsubset, both PRs together:agc_driver_image_array_window_past_layer_limitdoesn't compile with MinGW onmain(alignas(65536); #8310 fixes it).agc_driver_sgpr_pattern_fill_keystimes out under load.ANYPS5_GPU=AMD): the same two, plusagc_driver_tessellation.merged hull program, unculled: the level-1 patch was not drawn as one flat triangle, 3 of 3.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.
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
243925113merged ontomain2fee39f1b(clean merge), built in full and compared with the samemain, 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) at4e2e3ced6: 1717/1718 with this PR, against 1715/1716 onmain. 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_reductionandagc_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 isVkDeviceCreateInfo-pNext-pNext, which my older 1.3.275 layer prints for every device because it doesn't knowmaintenance8).Unlike the GCN 5 iGPU in @root-over's run,
agc_driver_lds_tree_reductiondoesn't skip here: the device log reportsWave32 programs run on subgroups of 32: compute 1, mesh 1, so the wave32 rounds run on 32-lane subgroups. RADV isn'tVK_DRIVER_ID_AMD_PROPRIETARY, soSubgroupControlBarrierUsablekeeps 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
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_reductionpasses 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_barrierandagc_shader_disk_cacheeach pass3/3. The composition'sagc_shader_memoryadditionally 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/gfx10361002: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 main53a0a27bb6, 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.