fix(recompiler): write a coherent dwordx2 as one 64-bit atomic store #7603

Merged
HQasper merged 1 commit from upstream-pr/7603 into main 2026-10-20 10:44:29 +00:00
HQasper commented 2026-10-18 16:40:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by HQasper on 2026-10-18T16:40:16Z.


What

A glc or dlc buffer_store_dwordx2 is one 64-bit write on the GPU. It was emitted as two dword stores, flag word first. A workgroup that polls the pair can then read the new flag with the old value. #919 made the coherent buffer_load_dwordx2 one 64-bit read, but only in programs that already had the u64 storage-buffer view, which means programs with 64-bit buffer atomics. The store side was never covered.

GTA V (PPSA04264) builds each BLAS with a single-pass decoupled look-back scan. Its tiles publish {flag, value} with a glc buffer_store_dwordx2 and poll the earlier tiles with glc buffer_load_dwordx2. The program has no 64-bit atomics, so both its stores and its loads were split. I dumped one build (45 tiles):

  • Three tiles started too low. Tile 4's look-back came to 94 instead of 202, which is tiles 0 and 2 with tiles 1 and 3 counted as 0.
  • The scan total came out at 1822 instead of 1986.
  • The BVH built from those offsets has overlapping nodes, and the per-frame refit kernel loops forever on it. This is the device lost (or frozen queue) a few seconds into Story mode.

Changes:

  • The u64 view in more programs. A program with a coherent raw LoadBufferU32x2 or StoreBufferU32x2 now gets the u64 view (buffers_u64, Int64, Int64Atomics) when the device has shaderBufferInt64Atomics. Before, only programs with 64-bit buffer atomics got it. On a device without that feature nothing changes.
  • The store. When both dwords are in bounds, adjacent and 8-byte aligned, the pair is now written as one device-scope OpAtomicStore. Otherwise it keeps the per-dword path.
  • The load. It takes the same condition through a shared coherentPair. Before, it only checked the first dword with an 8-byte access, which went wrong in two cases:
    • In a structured buffer, a pair whose second dword lies past the record (offset 0, stride 4) was still read in one piece.
    • In a swizzled buffer, whose two dwords are not adjacent, the pair was read from adjacent memory.

Tested

Windows 11 Pro 26300, NVIDIA GeForce RTX 5090 (617.42, 32-lane subgroups), MinGW-w64 Release build of this branch on main 91ddd9e3a. After the rebase onto 81cb86339, whose two new commits touch neither the recompiler nor the AGC driver, agc_driver_look_back_scan passes again.

  • agc_driver_look_back_scan_tests now also runs its scan kernel with the two buffer_atomic_swap_x2 replaced by glc buffer_store_dwordx2 (0xe0745000). Without the recompiler change the new variant fails its first whole scan: buffer_store_dwordx2 whole scan 0: block 116's prefix is 57920, expected 58669. With it both variants pass, in 6 of 6 runs.
  • Full ctest -j 24: 1488 of 1489 pass. The one failure, agc_driver_pixel_lds, is unrelated. It loses the device (Vulkan result -4) on this RTX 5090, and did so on plain main 55f82fee8 too.
  • GTA V with this change on top of #6488: Story mode loads and the prologue plays for 5 minutes. Before, every run lost the device or froze about 16 s into Story.
  • I also replayed the game's own scan kernel locally over the dumped input, with all 45 tiles in one dispatch (not part of this PR, since it uses the game's code). The scan was wrong in 382 of 500 runs before and in 0 of 500 runs after.

Linux and AMD not tested.

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: PPSA04264 #1203
  • GPUs tested: NVIDIA GeForce RTX 5090, driver 617.42, Windows 11 Pro 26300
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4910872028 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7603). Originally posted by [HQasper](https://github.com/HQasper) on 2026-10-18T16:40:16Z. --- ### What A glc or dlc `buffer_store_dwordx2` is one 64-bit write on the GPU. It was emitted as two dword stores, flag word first. A workgroup that polls the pair can then read the new flag with the old value. #919 made the coherent `buffer_load_dwordx2` one 64-bit read, but only in programs that already had the u64 storage-buffer view, which means programs with 64-bit buffer atomics. The store side was never covered. GTA V (PPSA04264) builds each BLAS with a single-pass decoupled look-back scan. Its tiles publish `{flag, value}` with a glc `buffer_store_dwordx2` and poll the earlier tiles with glc `buffer_load_dwordx2`. The program has no 64-bit atomics, so both its stores and its loads were split. I dumped one build (45 tiles): - Three tiles started too low. Tile 4's look-back came to 94 instead of 202, which is tiles 0 and 2 with tiles 1 and 3 counted as 0. - The scan total came out at 1822 instead of 1986. - The BVH built from those offsets has overlapping nodes, and the per-frame refit kernel loops forever on it. This is the device lost (or frozen queue) a few seconds into Story mode. Changes: - **The u64 view in more programs.** A program with a coherent raw `LoadBufferU32x2` or `StoreBufferU32x2` now gets the u64 view (`buffers_u64`, `Int64`, `Int64Atomics`) when the device has `shaderBufferInt64Atomics`. Before, only programs with 64-bit buffer atomics got it. On a device without that feature nothing changes. - **The store.** When both dwords are in bounds, adjacent and 8-byte aligned, the pair is now written as one device-scope `OpAtomicStore`. Otherwise it keeps the per-dword path. - **The load.** It takes the same condition through a shared `coherentPair`. Before, it only checked the first dword with an 8-byte access, which went wrong in two cases: - In a structured buffer, a pair whose second dword lies past the record (offset 0, stride 4) was still read in one piece. - In a swizzled buffer, whose two dwords are not adjacent, the pair was read from adjacent memory. ### Tested Windows 11 Pro 26300, NVIDIA GeForce RTX 5090 (617.42, 32-lane subgroups), MinGW-w64 Release build of this branch on `main` 91ddd9e3a. After the rebase onto 81cb86339, whose two new commits touch neither the recompiler nor the AGC driver, `agc_driver_look_back_scan` passes again. - `agc_driver_look_back_scan_tests` now also runs its scan kernel with the two `buffer_atomic_swap_x2` replaced by glc `buffer_store_dwordx2` (`0xe0745000`). Without the recompiler change the new variant fails its first whole scan: `buffer_store_dwordx2 whole scan 0: block 116's prefix is 57920, expected 58669`. With it both variants pass, in 6 of 6 runs. - Full `ctest -j 24`: 1488 of 1489 pass. The one failure, `agc_driver_pixel_lds`, is unrelated. It loses the device (`Vulkan result -4`) on this RTX 5090, and did so on plain `main` 55f82fee8 too. - GTA V with this change on top of #6488: Story mode loads and the prologue plays for 5 minutes. Before, every run lost the device or froze about 16 s into Story. - I also replayed the game's own scan kernel locally over the dumped input, with all 45 tiles in one dispatch (not part of this PR, since it uses the game's code). The scan was wrong in 382 of 500 runs before and in 0 of 500 runs after. Linux and AMD not tested. ### 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: PPSA04264 #1203 - [x] GPUs tested: NVIDIA GeForce RTX 5090, driver 617.42, Windows 11 Pro 26300 - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-18 16:54:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T16:54:58Z.


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 5021 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 6177 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp
PR 6235 core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 6412 core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp
PR 6488 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 6947 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 6977 core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp
PR 7201 core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 7332 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
PR 7392 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 7484 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp
PR 7642 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp
PR 7922 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 8004 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6252568619 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7603#issuecomment-6252568619). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T16:54:58Z. --- <!-- pr-overlap --> 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 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp` | | [PR 6488](https://www.github.com/boykopovar/AnyPS5/pull/6488) | `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp` | | [PR 7392](https://www.github.com/boykopovar/AnyPS5/pull/7392) | `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvRuntimeBuffer.cpp` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp`<br>`core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvEmitterHelpers.cpp` | | [PR 7922](https://www.github.com/boykopovar/AnyPS5/pull/7922) | `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` | | [PR 8004](https://www.github.com/boykopovar/AnyPS5/pull/8004) | `core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp` |
LeandroLP23 commented 2026-10-18 18:06:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-18T18:06:18Z.


AMD run, since the description lists AMD as not tested. Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON. Build: main c3591adf9 with #7623, #7612, #7611, #7603, #7579, #7563 and #7541 merged together (each merge clean, built once).

agc_driver_look_back_scan and agc_driver_pixel_lds pass 3 runs of 3.

AI-assisted

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6253307837 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7603#issuecomment-6253307837). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-18T18:06:18Z. --- AMD run, since the description lists AMD as not tested. Radeon 860M (RDNA 3.5, driver 32.0.13058.8001), Windows 11 26300, WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`. Build: `main` `c3591adf9` with #7623, #7612, #7611, #7603, #7579, #7563 and #7541 merged together (each merge clean, built once). `agc_driver_look_back_scan` and `agc_driver_pixel_lds` pass 3 runs of 3. AI-assisted
akkadbakkad89 commented 2026-10-18 18:44:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-18T18:44:09Z.


Verified at head e5b4bd72d: agc_driver_look_back_scan passes on NVIDIA RTX 3070 (driver 617.42) and Intel UHD 630 (ANYPS5_GPU=UHD, igvk64) - second NVIDIA datapoint and first Intel. Windows 11, MinGW (WinLibs GCC 15.2.0), Release.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6253694277 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7603#issuecomment-6253694277). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-18T18:44:09Z. --- Verified at head `e5b4bd72d`: `agc_driver_look_back_scan` passes on NVIDIA RTX 3070 (driver 617.42) and Intel UHD 630 (`ANYPS5_GPU=UHD`, igvk64) - second NVIDIA datapoint and first Intel. Windows 11, MinGW (WinLibs GCC 15.2.0), Release.
savvaniss commented 2026-10-18 21:53:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-18T21:53:04Z.


RDNA 4 data: agc_driver_look_back_scan fails on main and passes with this PR on an AMD RX 9070 XT. The Intel UHD 770 skips it, since it has no shaderBufferInt64Atomics.

Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, ANYPS5_NO_SHADER_CACHE=1, serial CTest. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088. AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31041.1004, with VkCache emptied first. This head e5b4bd72d merged into main f3059421f. "Without" means this PR's test files on main f3059421f, with none of its other changes.

Tests, ×3 UHD 770 RX 9070 XT
This head: agc_driver_look_back_scan skipped (no shaderBufferInt64Atomics) pass
Without skipped fails: buffer_store_dwordx2 whole scan 0: block 2's prefix is 0, expected 27

I also ran full CTest with this PR and the 14 other open AGC PRs I tested in the same batch merged together (#7647, #7641, #7630, #7627, #7600, #7591, #7579, #7535, #7533, #7474, #7462, #7050, #7048, #7650). Neither GPU showed a failure beyond main's own, except #7650's new test.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255602648 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7603#issuecomment-6255602648). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-18T21:53:04Z. --- RDNA 4 data: `agc_driver_look_back_scan` fails on `main` and passes with this PR on an AMD RX 9070 XT. The Intel UHD 770 skips it, since it has no `shaderBufferInt64Atomics`. Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, `ANYPS5_NO_SHADER_CACHE=1`, serial CTest. Intel UHD Graphics 770 (`8086:a780`), driver 32.0.101.7088. AMD Radeon RX 9070 XT (`1002:7550`), driver 32.0.31041.1004, with `VkCache` emptied first. This head `e5b4bd72d` merged into `main` `f3059421f`. "Without" means this PR's test files on `main` `f3059421f`, with none of its other changes. | Tests, ×3 | UHD 770 | RX 9070 XT | |---|---|---| | This head: `agc_driver_look_back_scan` | skipped (no `shaderBufferInt64Atomics`) | pass | | Without | skipped | fails: `buffer_store_dwordx2 whole scan 0: block 2's prefix is 0, expected 27` | I also ran full CTest with this PR and the 14 other open AGC PRs I tested in the same batch merged together (#7647, #7641, #7630, #7627, #7600, #7591, #7579, #7535, #7533, #7474, #7462, #7050, #7048, #7650). Neither GPU showed a failure beyond `main`'s own, except #7650's new test. AI-assisted: yes (Claude Code)
thuanquang commented 2026-10-19 12:14:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by thuanquang on 2026-10-19T12:14:53Z.


RDNA 2 data, the PS5's own architecture, which this PR hasn't had yet: RX 6700 XT (gfx1031), AMD driver 32.0.21045.5002, Windows 11 26200, WinLibs GCC 15.2.0 r7, Release. main 676269473; full builds in both columns.

The test. agc_driver_look_back_scan, 10 runs each:

  • main with only this PR's LookBackScan.cpp: fails 10 of 10, always in buffer_store_dwordx2 whole scan 0, e.g. block 6's prefix is 1605, expected 2399 and block 4's prefix is 794, expected 1589.
  • main + this PR (e5b4bd72d): passes 10 of 10. The 27 tests matching look_back|buffer_store|buffer_load|atomic|coherent|glc pass, except agc_driver_lds_mixed_width_atomics, which fails on main here too (#6976).

The hardware claim ("a glc or dlc buffer_store_dwordx2 is one 64-bit write"), measured natively through HIP. In one dispatch of 32 wave32 waves, 16 waves each store 20,000 pairs {i, i * 0x9e3779b9} with glc to 32 slots, and the other 16 waves read those slots 20,000 times with glc dlc and count pairs whose halves don't match. 10,240,000 reads per run, 3 runs per row:

writer / reader torn pairs per run
buffer_store_dwordx2 / buffer_load_dwordx2 0, 0, 0
global_store_dwordx2 / global_load_dwordx2 0, 0, 0
control: two global_store_dword / global_load_dwordx2 2,296,992; 3,584,736; 1,728,480
control: global_store_dwordx2 / two global_load_dword 76,256; 65,120; 30,176

So on RDNA 2 the 64-bit store and the 64-bit load are each single accesses, and the two controls show the check catches a split write or a split read when one exists. That supports emitting the pair as one 64-bit store and reading it as one, as this PR does. Desktop RDNA 2, not a PS5.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6266959637 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7603#issuecomment-6266959637). Originally posted by [thuanquang](https://github.com/thuanquang) on 2026-10-19T12:14:53Z. --- RDNA 2 data, the PS5's own architecture, which this PR hasn't had yet: RX 6700 XT (gfx1031), AMD driver 32.0.21045.5002, Windows 11 26200, WinLibs GCC 15.2.0 r7, Release. `main` `676269473`; full builds in both columns. **The test.** `agc_driver_look_back_scan`, 10 runs each: - `main` with only this PR's `LookBackScan.cpp`: fails 10 of 10, always in `buffer_store_dwordx2 whole scan 0`, e.g. `block 6's prefix is 1605, expected 2399` and `block 4's prefix is 794, expected 1589`. - `main` + this PR (`e5b4bd72d`): passes 10 of 10. The 27 tests matching `look_back|buffer_store|buffer_load|atomic|coherent|glc` pass, except `agc_driver_lds_mixed_width_atomics`, which fails on `main` here too (#6976). **The hardware claim** ("a glc or dlc `buffer_store_dwordx2` is one 64-bit write"), measured natively through HIP. In one dispatch of 32 wave32 waves, 16 waves each store 20,000 pairs `{i, i * 0x9e3779b9}` with glc to 32 slots, and the other 16 waves read those slots 20,000 times with glc dlc and count pairs whose halves don't match. 10,240,000 reads per run, 3 runs per row: | writer / reader | torn pairs per run | |---|---| | `buffer_store_dwordx2` / `buffer_load_dwordx2` | 0, 0, 0 | | `global_store_dwordx2` / `global_load_dwordx2` | 0, 0, 0 | | control: two `global_store_dword` / `global_load_dwordx2` | 2,296,992; 3,584,736; 1,728,480 | | control: `global_store_dwordx2` / two `global_load_dword` | 76,256; 65,120; 30,176 | So on RDNA 2 the 64-bit store and the 64-bit load are each single accesses, and the two controls show the check catches a split write or a split read when one exists. That supports emitting the pair as one 64-bit store and reading it as one, as this PR does. Desktop RDNA 2, not a PS5.
DavidAmsellem commented 2026-10-19 15:44:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DavidAmsellem on 2026-10-19T15:44:26Z.


First AMD-on-Linux (RADV) run of this PR. Merged onto main 43a2abaf7 (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): 1636/1638 with this PR, against 1636/1638 on main. The failures are the same two on both, so this PR adds none: agc_driver_image_table_vouched_lookups (#7766, fixed by #7916) and agc_driver_guest_memory_lifetime (#7784). The PR adds no new ctest entry; every existing test it touches passed.

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:6271204391 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7603#issuecomment-6271204391). Originally posted by [DavidAmsellem](https://github.com/DavidAmsellem) on 2026-10-19T15:44:26Z. --- First AMD-on-Linux (RADV) run of this PR. Merged onto `main` `43a2abaf7` (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`): **1636/1638 with this PR**, against 1636/1638 on `main`. The failures are the same two on both, so this PR adds none: `agc_driver_image_table_vouched_lookups` (#7766, fixed by #7916) and `agc_driver_guest_memory_lifetime` (#7784). The PR adds no new ctest entry; every existing test it touches passed. 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
adriadam10 commented 2026-10-20 10:45:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T10:45:01Z.


Checked the diff: the coherent dwordx2 store is now one device-scope 64-bit OpAtomicStore when both dwords are in bounds, adjacent and 8-byte aligned, otherwise the per-dword path; load and store share coherentPair, which also fixes the structured and swizzled pair cases of the load. The new LookBackScan store variant fails without the change (reported on RDNA 2 by @thuanquang) and passes on the NVIDIA, AMD (RDNA 2/3.5/4, RADV) and Intel runs in the thread; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6289120977 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7603#issuecomment-6289120977). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T10:45:01Z. --- Checked the diff: the coherent `dwordx2` store is now one device-scope 64-bit `OpAtomicStore` when both dwords are in bounds, adjacent and 8-byte aligned, otherwise the per-dword path; load and store share `coherentPair`, which also fixes the structured and swizzled pair cases of the load. The new `LookBackScan` store variant fails without the change (reported on RDNA 2 by @thuanquang) and passes on the NVIDIA, AMD (RDNA 2/3.5/4, RADV) and Intel runs in the thread; merged.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!7603
No description provided.