fix(shader): read GLC/DLC BDA dwords with device-scope atomic loads #2259

Merged
TheAggie merged 2 commits from upstream-pr/2259 into main 2026-10-11 08:26:29 +00:00
TheAggie commented 2026-10-09 13:30:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TheAggie on 2026-10-09T13:30:47Z.


What

A GLC/DLC global load is translated as a Volatile load through a physical-storage pointer. Under the GLSL450 memory model, Volatile doesn't make another workgroup's stores visible within the same dispatch. On NVIDIA, a workgroup that spins on a flag written by another workgroup never sees the store.

This is the pattern of decoupled look-back prefix scans. RADV's acceleration-structure build uses it (the radix sort), and vkQuake (PPSA99010) triggers that build with r_rtshadows. Under AnyPS5 the scan spins until the GPU is lost (VK_ERROR_DEVICE_LOST), or spins silently.

When the non-faulting BDA probe gives a coherent dword read a non-null, 4-byte-aligned physical address, SpirvBdaRead.cpp now emits OpAtomicLoad at ScopeDevice with relaxed semantics instead of OpLoad ... Volatile. That covers the wide path in EmitBdaDwordReads and the coherent single-dword helper in DefineBdaDwordReadFunctions. Unaligned addresses, unmapped addresses and reads that span two BDA ranges still take the existing byte path, which reports faults exactly as before. With byte reads forced (no probe), nothing changes. Non-coherent loads are unchanged.

Tests:

  • New tests/execution/CrossWorkgroupFlag.cpp: 25 hand-assembled GFX10 words, two workgroups. Workgroup 0 stores a flag with global_store_dword glc. Workgroup 1 spins on global_load_dword glc dlc and writes 2 if it sees the flag, or 3 after a 1M-iteration bailout, so a failure can't hang the GPU. It runs as wave64 and wave32. A control run with the flag preset by the CPU checks the harness itself.
    • NVIDIA without this change: result 3 (gave up) for both wave sizes. With it: 2.
    • lavapipe passes with and without the change.

This conflicts textually with #1267, which reworks the same read sites; I'll rebase onto whichever lands first.

Tested

Windows 11 Pro (26200), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, NVIDIA GeForce RTX 5070 Ti (driver 610.88).

  • Full local suite: 508 tests, 506 passed, 1 skipped; guest_sce_net timed out (it times out locally on unrelated branches too, likely my network filtering). It was run from the generated CTestTestfile.cmake commands because antivirus blocks ctest.exe on this machine.
  • tools/check_conventions.py --base origin/main passes.
  • CrossWorkgroupFlag fails on this NVIDIA GPU without the change and passes with it; lavapipe passes either way.
  • vkQuake (PPSA99010) on my local test branch (current main plus my open RADV PRs and local stubs): the GPU hang during RADV's BVH build went away. The build's output is still wrong for a separate reason I haven't found yet, so r_rtshadows doesn't work yet.

Not tested on Linux or macOS.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4801102342 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2259). Originally posted by [TheAggie](https://github.com/TheAggie) on 2026-10-09T13:30:47Z. --- ### What A GLC/DLC global load is translated as a `Volatile` load through a physical-storage pointer. Under the GLSL450 memory model, `Volatile` doesn't make another workgroup's stores visible within the same dispatch. On NVIDIA, a workgroup that spins on a flag written by another workgroup never sees the store. This is the pattern of decoupled look-back prefix scans. RADV's acceleration-structure build uses it (the radix sort), and vkQuake (PPSA99010) triggers that build with `r_rtshadows`. Under AnyPS5 the scan spins until the GPU is lost (`VK_ERROR_DEVICE_LOST`), or spins silently. When the non-faulting BDA probe gives a coherent dword read a non-null, 4-byte-aligned physical address, `SpirvBdaRead.cpp` now emits `OpAtomicLoad` at `ScopeDevice` with relaxed semantics instead of `OpLoad ... Volatile`. That covers the wide path in `EmitBdaDwordReads` and the coherent single-dword helper in `DefineBdaDwordReadFunctions`. Unaligned addresses, unmapped addresses and reads that span two BDA ranges still take the existing byte path, which reports faults exactly as before. With byte reads forced (no probe), nothing changes. Non-coherent loads are unchanged. Tests: - New `tests/execution/CrossWorkgroupFlag.cpp`: 25 hand-assembled GFX10 words, two workgroups. Workgroup 0 stores a flag with `global_store_dword glc`. Workgroup 1 spins on `global_load_dword glc dlc` and writes 2 if it sees the flag, or 3 after a 1M-iteration bailout, so a failure can't hang the GPU. It runs as wave64 and wave32. A control run with the flag preset by the CPU checks the harness itself. - NVIDIA without this change: result 3 (gave up) for both wave sizes. With it: 2. - lavapipe passes with and without the change. This conflicts textually with #1267, which reworks the same read sites; I'll rebase onto whichever lands first. ### Tested Windows 11 Pro (26200), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, NVIDIA GeForce RTX 5070 Ti (driver 610.88). - Full local suite: 508 tests, 506 passed, 1 skipped; `guest_sce_net` timed out (it times out locally on unrelated branches too, likely my network filtering). It was run from the generated `CTestTestfile.cmake` commands because antivirus blocks `ctest.exe` on this machine. - `tools/check_conventions.py --base origin/main` passes. - `CrossWorkgroupFlag` fails on this NVIDIA GPU without the change and passes with it; lavapipe passes either way. - vkQuake (PPSA99010) on my local test branch (current `main` plus my open RADV PRs and local stubs): the GPU hang during RADV's BVH build went away. The build's output is still wrong for a separate reason I haven't found yet, so `r_rtshadows` doesn't work yet. Not tested on Linux or macOS. ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
joelfernandes23 commented 2026-10-09 14:29:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by joelfernandes23 on 2026-10-09T14:29:04Z.


Tested exact PR head fc01be39fa2a6e1389a3a8f9e892b53f1b408ed2 on AMD Windows, based on main d70b89989473ba1f6ae13e44e079e67f1f8a44b0.

Environment: Windows 11 Pro 10.0.26200, Ryzen 7 7700X, RX 7900 XT (RDNA 3, Vulkan device 0x744c), AMD driver 32.0.31041.1004, Vulkan 1.4.349. WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7, Release, BUILD_TESTING=ON, SPIRV-Tools OFF. ANYPS5_GPU=7900 XT and ANYPS5_REQUIRE_VULKAN=1.

  • Full build and explicit libs target passed.
  • agc_driver_cross_workgroup_flag passed 30/30 consecutive runs with the PR. The verbose run selects the RX 7900 XT; both CPU-preset controls and both cross-workgroup dispatches report flag 1, result 2 in wave64 and wave32.
  • Restored only SpirvBdaRead.cpp to main, retaining the identical regression source, and rebuilt the test and its dependencies. The test also passed 30/30 runs without the production fix. This is an AMD Windows passing control, not a reproduction of the reported NVIDIA failure.
  • Full CTest with the unmodified PR: 504 passed, 3 failed, 1 skipped, 508 total, 36.83 seconds. Two failures are the independently reproduced existing agc_driver_shader_clock (#1615) and agc_driver_vopc_compare_table (#825). The third was a 30-second windows_import_modules timeout; an isolated rerun passed in 4.38 seconds. Its cause has not been established. The skip is guest_video_out_wqhd_detection_no_vulkan.

No title test or native-instruction hardware oracle was performed. No modifications to the PR implementation are proposed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6082944597 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2259#issuecomment-6082944597). Originally posted by [joelfernandes23](https://github.com/joelfernandes23) on 2026-10-09T14:29:04Z. --- Tested exact PR head `fc01be39fa2a6e1389a3a8f9e892b53f1b408ed2` on AMD Windows, based on main `d70b89989473ba1f6ae13e44e079e67f1f8a44b0`. Environment: Windows 11 Pro 10.0.26200, Ryzen 7 7700X, RX 7900 XT (RDNA 3, Vulkan device 0x744c), AMD driver 32.0.31041.1004, Vulkan 1.4.349. WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7, Release, BUILD_TESTING=ON, SPIRV-Tools OFF. ANYPS5_GPU=7900 XT and ANYPS5_REQUIRE_VULKAN=1. - Full build and explicit libs target passed. - `agc_driver_cross_workgroup_flag` passed 30/30 consecutive runs with the PR. The verbose run selects the RX 7900 XT; both CPU-preset controls and both cross-workgroup dispatches report `flag 1, result 2` in wave64 and wave32. - Restored only `SpirvBdaRead.cpp` to main, retaining the identical regression source, and rebuilt the test and its dependencies. The test also passed 30/30 runs without the production fix. This is an AMD Windows passing control, not a reproduction of the reported NVIDIA failure. - Full CTest with the unmodified PR: 504 passed, 3 failed, 1 skipped, 508 total, 36.83 seconds. Two failures are the independently reproduced existing `agc_driver_shader_clock` (#1615) and `agc_driver_vopc_compare_table` (#825). The third was a 30-second `windows_import_modules` timeout; an isolated rerun passed in 4.38 seconds. Its cause has not been established. The skip is `guest_video_out_wqhd_detection_no_vulkan`. No title test or native-instruction hardware oracle was performed. No modifications to the PR implementation are proposed.
adriadam10 commented 2026-10-10 07:53:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T07:53:33Z.


Reviewed the diff: the atomic path is only taken for mapped, 4-byte-aligned addresses (SpirvBdaRead.cpp:176, :254), the byte path and non-coherent loads are unchanged, and the phi/merge structure is correct. Built merged onto main; agc_driver_cross_workgroup_flag passes on RADV.

What we can't confirm here: the test also passes without the change on RADV/lavapipe (and on an RX 7900 XT per @joelfernandes23), so it only fails on NVIDIA, which we can't run.

@oneandonlydean could you run agc_driver_cross_workgroup_flag on the RTX 4090 with and without this change (expected: result 3 without, 2 with)? If it reproduces, this is good to merge.

@TheAggie: this conflicts with #2349 in SpirvBdaRead.cpp and libSceAgcDriver/CMakeLists.txt; whichever lands second will need a rebase.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6095319622 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2259#issuecomment-6095319622). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T07:53:33Z. --- Reviewed the diff: the atomic path is only taken for mapped, 4-byte-aligned addresses (`SpirvBdaRead.cpp:176`, `:254`), the byte path and non-coherent loads are unchanged, and the phi/merge structure is correct. Built merged onto main; `agc_driver_cross_workgroup_flag` passes on RADV. What we can't confirm here: the test also passes without the change on RADV/lavapipe (and on an RX 7900 XT per @joelfernandes23), so it only fails on NVIDIA, which we can't run. @oneandonlydean could you run `agc_driver_cross_workgroup_flag` on the RTX 4090 with and without this change (expected: result 3 without, 2 with)? If it reproduces, this is good to merge. @TheAggie: this conflicts with #2349 in `SpirvBdaRead.cpp` and `libSceAgcDriver/CMakeLists.txt`; whichever lands second will need a rebase.
Mouhand-Kaddo commented 2026-10-10 10:05:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-10T10:05:26Z.


Additional platform validation on standalone PR head 8d6f765bd8e0f6abbcbe2f65b610a41ffd981fd7:

Linux: passed — Arch Linux in WSL2 (kernel 6.6.87.2), GCC 16.2.1 20260810; CMake 4.3.1 / Ninja.

Release / BUILD_TESTING=ON: built the selected test targets; 1 CTest cases, 0 failures, 0 CTest skips.

Tests: agc_driver_cross_workgroup_flag.

Reproduce after building the test targets: ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^agc_driver_cross_workgroup_flag$".

Vulkan: Mesa lavapipe 26.2.4 software Vulkan; no native Linux GPU/retail-title validation.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096396729 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2259#issuecomment-6096396729). Originally posted by [Mouhand-Kaddo](https://github.com/Mouhand-Kaddo) on 2026-10-10T10:05:26Z. --- <!-- anyps5-platform-validation:8d6f765bd8e0f6abbcbe2f65b610a41ffd981fd7 --> Additional platform validation on standalone PR head `8d6f765bd8e0f6abbcbe2f65b610a41ffd981fd7`: **Linux: passed** — Arch Linux in WSL2 (kernel 6.6.87.2), GCC 16.2.1 20260810; CMake 4.3.1 / Ninja. Release / `BUILD_TESTING=ON`: built the selected test targets; 1 CTest cases, 0 failures, 0 CTest skips. Tests: `agc_driver_cross_workgroup_flag`. Reproduce after building the test targets: `ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^agc_driver_cross_workgroup_flag$"`. Vulkan: Mesa lavapipe 26.2.4 software Vulkan; no native Linux GPU/retail-title validation.
klosixgaming-arch commented 2026-10-10 10:58:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-10T10:58:55Z.


Independent validation on real hardware

I built and ran the PR head 8d6f765b on my own box (not the author's):

  • Windows 11 Pro (26200), WinLibs MinGW-w64 GCC 15.2.0 (r7), Release, BUILD_TESTING=ON.
  • GPUs: NVIDIA GeForce RTX 5090, NVIDIA GeForce RTX 4090, AMD Radeon (iGPU, Ryzen 9950X3D). Driver 610.47.
  • I do not have an RTX 5070 Ti, so I can't reproduce the author's exact GPU — the numbers below are from my 5090/4090/iGPU.

Result with the fix (PR head): agc_driver_cross_workgroup_flag_tests PASSES on all three GPUs — result 2 (flag seen) for both wave64 and wave32, and the CPU-preset control run also returns 2.

  • 5090: PASS
  • 4090: PASS
  • AMD Radeon iGPU: PASS — the author only reported NVIDIA + lavapipe; it also passes on this AMD iGPU.

Rigor check (is the test real, or a pass-through?): I reverted only core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp back to the PR base (00112489) — i.e. OpAtomicLoad ScopeDevice → the old OpLoad Volatile / byte path — rebuilt the test, and re-ran on the 5090:

  • control (CPU-preset flag) still result 2 → the harness itself is correct;
  • the cross-workgroup global_load_dword glc dlc spin → result 3 ("a workgroup did not see another workgroup's flag store") on both wave64 and wave32 → FAIL (exit 1).

Restoring the fix puts it back to PASS. So this is a genuine regression test: it fails on base NVIDIA and the atomic-load change is exactly what turns it green — which matches the author's reported "result 3 → result 2" on NVIDIA.

Bottom line: On my 5090/4090/iGPU the PR is green, the new test is a real (non-pass-through) regression test, and it additionally passes on an AMD iGPU beyond what was reported. I did not test Linux/macOS or the 5070 Ti, and I didn't evaluate the noted textual conflict with #1267 (rebase is the author's call).

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096790587 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2259#issuecomment-6096790587). Originally posted by [klosixgaming-arch](https://github.com/klosixgaming-arch) on 2026-10-10T10:58:55Z. --- **Independent validation on real hardware** I built and ran the PR head `8d6f765b` on my own box (not the author's): - **Windows 11 Pro (26200)**, WinLibs MinGW-w64 **GCC 15.2.0 (r7)**, `Release`, `BUILD_TESTING=ON`. - GPUs: **NVIDIA GeForce RTX 5090**, **NVIDIA GeForce RTX 4090**, **AMD Radeon (iGPU, Ryzen 9950X3D)**. Driver 610.47. - I do **not** have an RTX 5070 Ti, so I can't reproduce the author's exact GPU — the numbers below are from my 5090/4090/iGPU. **Result with the fix (PR head):** `agc_driver_cross_workgroup_flag_tests` **PASSES on all three GPUs** — `result 2` (flag seen) for both wave64 and wave32, and the CPU-preset control run also returns `2`. - 5090: PASS - 4090: PASS - AMD Radeon iGPU: PASS — the author only reported NVIDIA + lavapipe; it also passes on this AMD iGPU. **Rigor check (is the test real, or a pass-through?):** I reverted **only** `core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp` back to the PR base (`00112489`) — i.e. `OpAtomicLoad ScopeDevice` → the old `OpLoad Volatile` / byte path — rebuilt the test, and re-ran on the **5090**: - control (CPU-preset flag) still `result 2` → the harness itself is correct; - the cross-workgroup `global_load_dword glc dlc` spin → **`result 3`** ("a workgroup did not see another workgroup's flag store") on **both** wave64 and wave32 → **FAIL (exit 1)**. Restoring the fix puts it back to PASS. So this is a genuine regression test: it fails on base NVIDIA and the atomic-load change is exactly what turns it green — which matches the author's reported "result 3 → result 2" on NVIDIA. **Bottom line:** On my 5090/4090/iGPU the PR is green, the new test is a real (non-pass-through) regression test, and it additionally passes on an AMD iGPU beyond what was reported. I did **not** test Linux/macOS or the 5070 Ti, and I didn't evaluate the noted textual conflict with #1267 (rebase is the author's call). Written with AI assistance.
fma-rc commented 2026-10-10 12:52:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-10T12:52:40Z.


Merged onto main 197ffac9 this no longer builds (Linux, GCC 16.2.1):

CrossWorkgroupFlag.cpp:44: error: no matching function for call to
'GuestAllocations::Mutation::Add(uint8_t*&, const std::size_t&, bool, bool)'

Add takes a fifth argument (bool gpu) since c84694ad, merged 2026-10-10; the other execution tests pass true there. GitHub still reports the PR as mergeable because there is no textual conflict.

With Add(block, BlockBytes, true, true, true) applied locally, agc_driver_cross_workgroup_flag, 5 runs each on Linux:

NVIDIA RTX 5080 (615.78.08) RADV 26.1.4, Radeon 610M
with this change 5/5 pass 5/5 pass
SpirvBdaRead.cpp reverted 0/5 pass (wave64: flag 1, result 3) 5/5 pass
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097697849 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2259#issuecomment-6097697849). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-10T12:52:40Z. --- Merged onto `main` 197ffac9 this no longer builds (Linux, GCC 16.2.1): CrossWorkgroupFlag.cpp:44: error: no matching function for call to 'GuestAllocations::Mutation::Add(uint8_t*&, const std::size_t&, bool, bool)' `Add` takes a fifth argument (`bool gpu`) since c84694ad, merged 2026-10-10; the other execution tests pass `true` there. GitHub still reports the PR as mergeable because there is no textual conflict. With `Add(block, BlockBytes, true, true, true)` applied locally, `agc_driver_cross_workgroup_flag`, 5 runs each on Linux: | | NVIDIA RTX 5080 (615.78.08) | RADV 26.1.4, Radeon 610M | |---|---|---| | with this change | 5/5 pass | 5/5 pass | | `SpirvBdaRead.cpp` reverted | 0/5 pass (`wave64: flag 1, result 3`) | 5/5 pass |
Silverash-i8 commented 2026-10-11 02:10:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-11T02:10:52Z.


Same as fma-rc's note above, still the case on current main (d31b57a4, and 84cc975e) on Windows 11 with WinLibs GCC 15.2.0: CrossWorkgroupFlag.cpp:44 needs the fifth gpu argument of GuestAllocations::Mutation::Add (c11a9cb5, merged in c84694ad). Sorry for the repeat, I missed the earlier comment.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6104497269 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2259#issuecomment-6104497269). Originally posted by [Silverash-i8](https://github.com/Silverash-i8) on 2026-10-11T02:10:52Z. --- Same as fma-rc's note above, still the case on current `main` (d31b57a4, and 84cc975e) on Windows 11 with WinLibs GCC 15.2.0: `CrossWorkgroupFlag.cpp:44` needs the fifth `gpu` argument of `GuestAllocations::Mutation::Add` (c11a9cb5, merged in c84694ad). Sorry for the repeat, I missed the earlier comment. AI-assisted (Claude Code).
TheAggie commented 2026-10-11 07:47:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by TheAggie on 2026-10-11T07:47:28Z.


Thanks @fma-rc and @Silverash-i8, fixed. The branch is rebased onto main 2bb78d2c, and eb33094e passes true for the new gpu argument of Mutation::Add in CrossWorkgroupFlag.cpp, as the other execution tests do.

On Windows 11 / RTX 5070 Ti it builds again, and agc_driver_cross_workgroup_flag passes along with the BDA and recompiler tests I reran with it (4 of 4).

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106823228 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2259#issuecomment-6106823228). Originally posted by [TheAggie](https://github.com/TheAggie) on 2026-10-11T07:47:28Z. --- Thanks @fma-rc and @Silverash-i8, fixed. The branch is rebased onto `main` 2bb78d2c, and eb33094e passes `true` for the new `gpu` argument of `Mutation::Add` in `CrossWorkgroupFlag.cpp`, as the other execution tests do. On Windows 11 / RTX 5070 Ti it builds again, and `agc_driver_cross_workgroup_flag` passes along with the BDA and recompiler tests I reran with it (4 of 4). AI-assisted (Claude Code).
adriadam10 commented 2026-10-11 08:26:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:26:26Z.


Checked the diff (atomic path only for mapped, 4-byte-aligned addresses; byte path and non-coherent loads unchanged; phi/merge structure correct). Built merged onto main: agc_driver_cross_workgroup_flag and the rest of the Agc/AgcDriver ctest pass on RADV. The test only fails without the change on NVIDIA, which is confirmed independently by @fma-rc (Linux, RTX 5080: 5/5 with the change, 0/5 reverted, result 3) and @klosixgaming-arch (Windows, RTX 5090: fails reverted, passes with the change). Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107117832 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2259#issuecomment-6107117832). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T08:26:26Z. --- Checked the diff (atomic path only for mapped, 4-byte-aligned addresses; byte path and non-coherent loads unchanged; phi/merge structure correct). Built merged onto main: `agc_driver_cross_workgroup_flag` and the rest of the Agc/AgcDriver ctest pass on RADV. The test only fails without the change on NVIDIA, which is confirmed independently by @fma-rc (Linux, RTX 5080: 5/5 with the change, 0/5 reverted, `result 3`) and @klosixgaming-arch (Windows, RTX 5090: fails reverted, passes with the change). Merging.
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!2259
No description provided.