perf(recompiler): loop the BDA byte stores and written-page probes #1265

Merged
popcoder565 merged 4 commits from upstream-pr/1265 into main 2026-10-09 22:40:51 +00:00
popcoder565 commented 2026-10-07 20:28:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-07T20:28:23Z.


What

Addresses the code size reported in #1256. Two changes, one commit each. Neither changes what is stored, which faults are recorded or in which order.

  • Every 8- and 16-bit BDA store, and the unaligned path of every 32-bit store, emitted one get_bda_write_pointer lookup and one note_bda_write per byte at the store site, so a 32-bit store carried five write lookups. These byte stores now call write_bda_bytes (one per coherence, DontInline like read_bda_dword_bytes), which loops over the bytes and does, per byte and in order, the same lookup, the store when the byte is mapped and the write note. Aligned 32-bit stores keep their single 4-byte lookup. The probe-first path of the reads is not used here, as it would change how an aligned store that crosses a range boundary records its fault.
  • note_bda_write unrolled its 8 compare-exchange probes and is inlined at every BDA store and atomic. The probes now run in a loop that tries the same slots in the same order and stops at the same slot, so the recorded pages and the overflow flag are unchanged.

Tested

Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, NVIDIA GeForce RTX 3060 Laptop GPU.

agc_driver_flat_store with APS5_PIPELINE_STATS=1, ANYPS5_NO_SHADER_CACHE=1 and a fresh APS5_LOOP_GUARD per run to miss the driver's pipeline cache:

main byte store helper + probe loop
wave32 binary 496,256 B 138,240 B 75,648 B
wave64 binary 928,384 B 225,152 B 130,560 B
cold run 19.7 s 2.2 s 1.2 s

Every other test with BDA stores or atomics shrinks too: largest pipeline, same settings, main 1e1e1390 against it merged with this PR.

main this PR
global_vcc_base 413,312 B, 6.9 s 79,616 B, 1.5 s
global_store_addtid 367,360 B, 4.5 s 44,160 B, 0.8 s
global_atomics_float 138,240 B 72,576 B
flat_cache_bits 105,984 B 48,256 B
global_atomics 102,400 B 49,792 B
global_atomics64 91,904 B 47,232 B
global_atomics_lanes 71,168 B 36,736 B
global_atomic_csub 53,888 B 31,360 B

Buffer, LDS and image atomics are unchanged.

  • The stored bytes and the read-only run are unchanged; the read-only run reports the same first fault (instruction 0x4c, 4 bytes, permission).
  • Built with ANYPS5_ENABLE_SPIRV_TOOLS=ON, which validates every module before and after optimization: flat_store, global_store_addtid, global_atomics, global_atomics64, global_atomics_float, global_atomics_lanes, global_atomic_csub, flat_cache_bits, global_vcc_base, flat_loads, d16_memory and agc_driver_bda_device_tests pass.
  • Full ctest passes except guest_system_font, which fails the same way on main on Windows (#1172); agc_driver_bda_device_tests (not in ctest) passes.

Measured on Intel by @hashaam1217 (comment): Linux, Iris Xe (Alder Lake GT2), Mesa 25.2.8 ANV, cold caches, applied to 2cc5735d.

flat_store main this PR
cold run 84.4 s 27.0 s
peak RSS 7.04 GiB 1.81 GiB
GEN instructions, two pipelines 55,929 / 111,860 26,393 / 50,309
  • global_store_addtid and global_vcc_base shrink the same way: 20,550 → 8,725 and 67,050 → 43,416 GEN instructions for their largest pipelines.
  • The full Intel suite fails the same 34 tests as main, and their RTX 3060 run passes all 402.
  • With #1185, which compiles these shaders at SIMD32, flat_store and global_vcc_base pass instead of being killed above 5 GiB.

Measured on AMD by @johnmaia (comment): Ubuntu 24.04, Radeon RX 7600 (RADV NAVI33, Mesa 25.2.8), cold caches, merged onto 6b56175a.

largest pipeline main this PR
flat_store 278,268 B, 1.01 s 126,612 B, 0.55 s
global_vcc_base 314,648 B, 2.41 s 195,996 B, 1.56 s
global_store_addtid 202,284 B, 1.14 s 82,636 B, 0.49 s
  • ACO already compiles these quickly on main, so RADV never had the long cold compiles. The store-heavy pipelines still shrink by 38–59%; the atomics tests change by about 2%.
  • Full ctest passes 479/479 on main and on this PR, with the GPU tests on the RX 7600.
  • DOOM homebrew (PPSA99666) stays at 60 FPS; GPU time per frame is 1.45 ms on main and 1.43 ms here.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4778089222 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1265). Originally posted by [popcoder565](https://github.com/popcoder565) on 2026-10-07T20:28:23Z. --- ### What Addresses the code size reported in #1256. Two changes, one commit each. Neither changes what is stored, which faults are recorded or in which order. - Every 8- and 16-bit BDA store, and the unaligned path of every 32-bit store, emitted one `get_bda_write_pointer` lookup and one `note_bda_write` per byte at the store site, so a 32-bit store carried five write lookups. These byte stores now call `write_bda_bytes` (one per coherence, `DontInline` like `read_bda_dword_bytes`), which loops over the bytes and does, per byte and in order, the same lookup, the store when the byte is mapped and the write note. Aligned 32-bit stores keep their single 4-byte lookup. The probe-first path of the reads is not used here, as it would change how an aligned store that crosses a range boundary records its fault. - `note_bda_write` unrolled its 8 compare-exchange probes and is inlined at every BDA store and atomic. The probes now run in a loop that tries the same slots in the same order and stops at the same slot, so the recorded pages and the overflow flag are unchanged. ### Tested Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, NVIDIA GeForce RTX 3060 Laptop GPU. `agc_driver_flat_store` with `APS5_PIPELINE_STATS=1`, `ANYPS5_NO_SHADER_CACHE=1` and a fresh `APS5_LOOP_GUARD` per run to miss the driver's pipeline cache: | | `main` | byte store helper | + probe loop | |---|---|---|---| | wave32 binary | 496,256 B | 138,240 B | 75,648 B | | wave64 binary | 928,384 B | 225,152 B | 130,560 B | | cold run | 19.7 s | 2.2 s | 1.2 s | Every other test with BDA stores or atomics shrinks too: largest pipeline, same settings, `main` 1e1e1390 against it merged with this PR. | | `main` | this PR | |---|---|---| | `global_vcc_base` | 413,312 B, 6.9 s | 79,616 B, 1.5 s | | `global_store_addtid` | 367,360 B, 4.5 s | 44,160 B, 0.8 s | | `global_atomics_float` | 138,240 B | 72,576 B | | `flat_cache_bits` | 105,984 B | 48,256 B | | `global_atomics` | 102,400 B | 49,792 B | | `global_atomics64` | 91,904 B | 47,232 B | | `global_atomics_lanes` | 71,168 B | 36,736 B | | `global_atomic_csub` | 53,888 B | 31,360 B | Buffer, LDS and image atomics are unchanged. - The stored bytes and the read-only run are unchanged; the read-only run reports the same first fault (instruction 0x4c, 4 bytes, permission). - Built with `ANYPS5_ENABLE_SPIRV_TOOLS=ON`, which validates every module before and after optimization: `flat_store`, `global_store_addtid`, `global_atomics`, `global_atomics64`, `global_atomics_float`, `global_atomics_lanes`, `global_atomic_csub`, `flat_cache_bits`, `global_vcc_base`, `flat_loads`, `d16_memory` and `agc_driver_bda_device_tests` pass. - Full ctest passes except `guest_system_font`, which fails the same way on `main` on Windows (#1172); `agc_driver_bda_device_tests` (not in ctest) passes. Measured on Intel by @hashaam1217 ([comment](https://github.com/boykopovar/AnyPS5/pull/1265#issuecomment-6050729570)): Linux, Iris Xe (Alder Lake GT2), Mesa 25.2.8 ANV, cold caches, applied to 2cc5735d. | `flat_store` | `main` | this PR | |---|---|---| | cold run | 84.4 s | 27.0 s | | peak RSS | 7.04 GiB | 1.81 GiB | | GEN instructions, two pipelines | 55,929 / 111,860 | 26,393 / 50,309 | - `global_store_addtid` and `global_vcc_base` shrink the same way: 20,550 → 8,725 and 67,050 → 43,416 GEN instructions for their largest pipelines. - The full Intel suite fails the same 34 tests as `main`, and their RTX 3060 run passes all 402. - With #1185, which compiles these shaders at SIMD32, `flat_store` and `global_vcc_base` pass instead of being killed above 5 GiB. Measured on AMD by @johnmaia ([comment](https://github.com/boykopovar/AnyPS5/pull/1265#issuecomment-6066954325)): Ubuntu 24.04, Radeon RX 7600 (RADV NAVI33, Mesa 25.2.8), cold caches, merged onto 6b56175a. | largest pipeline | `main` | this PR | |---|---|---| | `flat_store` | 278,268 B, 1.01 s | 126,612 B, 0.55 s | | `global_vcc_base` | 314,648 B, 2.41 s | 195,996 B, 1.56 s | | `global_store_addtid` | 202,284 B, 1.14 s | 82,636 B, 0.49 s | - ACO already compiles these quickly on `main`, so RADV never had the long cold compiles. The store-heavy pipelines still shrink by 38–59%; the atomics tests change by about 2%. - Full ctest passes 479/479 on `main` and on this PR, with the GPU tests on the RX 7600. - DOOM homebrew (PPSA99666) stays at 60 FPS; GPU time per frame is 1.45 ms on `main` and 1.43 ms here. ### 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
hashaam1217 commented 2026-10-08 02:09:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hashaam1217 on 2026-10-08T02:09:30Z.


Measured on Intel, which the description lists as not run: Linux, Iris Xe (Alder Lake GT2), Mesa 25.2.8 ANV, applied to 2cc5735d, cold caches.

  • flat_store: 84.4 s and 7.04 GiB peak RSS on main, 27.0 s and 1.81 GiB with this change. Its two pipelines compile to 26,393 and 50,309 GEN instructions instead of 55,929 and 111,860.
  • global_store_addtid and global_vcc_base shrink the same way (20,550 → 8,725 and 67,050 → 43,416 instructions for the largest pipeline).
  • The full Intel suite fails the same 34 tests as main, and NVIDIA (RTX 3060) passes 402/402.
  • Together with #1185, which makes these compile at SIMD32, flat_store and global_vcc_base pass instead of being killed above 5 GiB.

Tables and the other PRs are in https://github.com/boykopovar/AnyPS5/issues/1256#issuecomment-6050724960.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6050729570 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1265#issuecomment-6050729570). Originally posted by [hashaam1217](https://github.com/hashaam1217) on 2026-10-08T02:09:30Z. --- Measured on Intel, which the description lists as not run: Linux, Iris Xe (Alder Lake GT2), Mesa 25.2.8 ANV, applied to 2cc5735d, cold caches. - `flat_store`: 84.4 s and 7.04 GiB peak RSS on main, 27.0 s and 1.81 GiB with this change. Its two pipelines compile to 26,393 and 50,309 GEN instructions instead of 55,929 and 111,860. - `global_store_addtid` and `global_vcc_base` shrink the same way (20,550 → 8,725 and 67,050 → 43,416 instructions for the largest pipeline). - The full Intel suite fails the same 34 tests as main, and NVIDIA (RTX 3060) passes 402/402. - Together with #1185, which makes these compile at SIMD32, `flat_store` and `global_vcc_base` pass instead of being killed above 5 GiB. Tables and the other PRs are in https://github.com/boykopovar/AnyPS5/issues/1256#issuecomment-6050724960.
popcoder565 commented 2026-10-08 02:58:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-08T02:58:32Z.


@hashaam1217 thanks for measuring this on Intel. That was the gap in my testing, so I've added your numbers to the Tested section, with a link to your comment.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6051254205 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1265#issuecomment-6051254205). Originally posted by [popcoder565](https://github.com/popcoder565) on 2026-10-08T02:58:32Z. --- @hashaam1217 thanks for measuring this on Intel. That was the gap in my testing, so I've added your numbers to the Tested section, with a link to your comment.
blawesom commented 2026-10-08 12:31:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-08T12:31:28Z.

Review: APPROVED


Reviewed the semantics against the unrolled original and the surrounding helpers; this matches what the description claims, and the two things I specifically tried to break both hold:

  • The coherence gating is sound. BdaCoherent(state, inst) reads memoryInfo[index].coherent from the same vector the any_of in DefineBdaByteWriteFunctions scans, so coherentAccesses == false provably implies no store can select index 1 and hit the function == 0 failure. The Fail remains as a genuine assertion, not a reachable path.
  • The loops are correct structured SPIR-V (OpLoopMerge immediately before the header's conditional branch, back-edge from the continuation block, entry block closed with a branch), and the per-byte/per-probe behaviour — guest address computation, shift amounts (max 24 for a 4-byte store), fault pc propagation, probe slot order and early-exit-on-done — is identical to the unrolled forms. BdaAccessMask(coherent) inside the helper equals BdaAccessMask(state, inst) at every call site by construction.

Two things before this lands, one a request for a number, one a coverage note:

1. Every measurement in the PR is cold-compile time or code size — there is no runtime number for the path that changed. Byte stores (all 8/16-bit stores plus the unaligned half of 32-bit stores) now pay a DontInline function call and a loop where they previously had inline unrolled code. On paper that is the right trade for a 20x cold-compile win, but a shader doing a large volume of small stores in a hot loop is exactly the case where it could regress runtime while every compile-time metric improves. A warm-run timing of agc_driver_flat_store (or a title with heavy byte-store traffic) on the NVIDIA box that produced the other numbers would close this; if it is flat, this is unambiguously good.

2. Not run on AMD (stated in the description). The probe-loop conversion changes the shape of atomically-executed code in note_bda_write substantially, and this repo's test failures cluster on RADV/RDNA (e.g. #825, #985). A single RADV run of the BDA/atomics set (agc_driver_flat_store, global_atomics*, flat_cache_bits) would rule out a driver-specific surprise — happy to run it if someone confirms the commands.

Minor, no action needed: the non-coherent write_bda_bytes is defined for every program with bdaWrites even when only aligned 32-bit stores are emitted, so such programs carry one dead helper. Drivers strip it and it is a handful of instructions; only worth touching if you ever gate it on a pre-scan.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5456591330 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1265#pullrequestreview-5456591330). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-08T12:31:28Z. **Review:** APPROVED --- Reviewed the semantics against the unrolled original and the surrounding helpers; this matches what the description claims, and the two things I specifically tried to break both hold: - **The coherence gating is sound.** `BdaCoherent(state, inst)` reads `memoryInfo[index].coherent` from the same vector the `any_of` in `DefineBdaByteWriteFunctions` scans, so `coherentAccesses == false` provably implies no store can select index 1 and hit the `function == 0` failure. The `Fail` remains as a genuine assertion, not a reachable path. - **The loops are correct structured SPIR-V** (`OpLoopMerge` immediately before the header's conditional branch, back-edge from the continuation block, entry block closed with a branch), and the per-byte/per-probe behaviour — guest address computation, shift amounts (max 24 for a 4-byte store), fault `pc` propagation, probe slot order and early-exit-on-`done` — is identical to the unrolled forms. `BdaAccessMask(coherent)` inside the helper equals `BdaAccessMask(state, inst)` at every call site by construction. Two things before this lands, one a request for a number, one a coverage note: **1. Every measurement in the PR is cold-compile time or code size — there is no runtime number for the path that changed.** Byte stores (all 8/16-bit stores plus the unaligned half of 32-bit stores) now pay a `DontInline` function call and a loop where they previously had inline unrolled code. On paper that is the right trade for a 20x cold-compile win, but a shader doing a large volume of small stores in a hot loop is exactly the case where it could regress runtime while every compile-time metric improves. A warm-run timing of `agc_driver_flat_store` (or a title with heavy byte-store traffic) on the NVIDIA box that produced the other numbers would close this; if it is flat, this is unambiguously good. **2. Not run on AMD (stated in the description).** The probe-loop conversion changes the shape of atomically-executed code in `note_bda_write` substantially, and this repo's test failures cluster on RADV/RDNA (e.g. #825, #985). A single RADV run of the BDA/atomics set (`agc_driver_flat_store`, `global_atomics*`, `flat_cache_bits`) would rule out a driver-specific surprise — happy to run it if someone confirms the commands. Minor, no action needed: the non-coherent `write_bda_bytes` is defined for every program with `bdaWrites` even when only aligned 32-bit stores are emitted, so such programs carry one dead helper. Drivers strip it and it is a handful of instructions; only worth touching if you ever gate it on a pre-scan.
blawesom commented 2026-10-08 12:31:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-08T12:31:38Z.


Correction to my review: I wrote I was happy to run the RADV set — I checked afterwards and this box has no Vulkan device (virtual VGA, no ICDs), so the AMD run needs someone with a RADV GPU. Everything else in the review stands.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6059918836 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1265#issuecomment-6059918836). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-08T12:31:38Z. --- Correction to my review: I wrote I was happy to run the RADV set — I checked afterwards and this box has no Vulkan device (virtual VGA, no ICDs), so the AMD run needs someone with a RADV GPU. Everything else in the review stands.
johnmaia commented 2026-10-08 18:59:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-08T18:59:02Z.


Measured on AMD, which the description lists as not run: Ubuntu 24.04.5 (kernel 6.8), GCC 13.3, Release, AMD Radeon RX 7600 (RADV NAVI33, Mesa 25.2.8). This PR's head is d3cdffac, merged onto main 6b56175a.

The settings were ANYPS5_NO_SHADER_CACHE=1 and MESA_SHADER_CACHE_DISABLE=true, so every run compiles cold, plus APS5_PIPELINE_STATS=1 for RADV's code size and instruction count. Times are the median of three runs.

test main code size / instructions (largest pipeline) this PR main run this PR
flat_store 278,268 B / 55,958 126,612 B / 25,507 1.01 s, 355 MiB 0.55 s, 221 MiB
global_vcc_base 314,648 B / 57,002 195,996 B / 35,670 2.41 s, 420 MiB 1.56 s, 313 MiB
global_store_addtid 202,284 B / 36,137 82,636 B / 14,845 1.14 s, 277 MiB 0.49 s, 170 MiB
flat_cache_bits 70,232 B / 12,623 50,420 B / 9,047 0.21 s 0.18 s
global_atomics 51,912 B / 10,542 51,016 B / 10,330 0.16 s 0.16 s
global_atomics64 46,744 B / 9,560 45,976 B / 9,377 0.14 s 0.14 s
global_atomics_float 34,680 B / 7,095 34,168 B / 6,955 0.19 s 0.19 s
global_atomics_lanes 18,600 B / 3,812 18,280 B / 3,731 0.11 s 0.13 s
global_atomic_csub 11,728 B / 2,449 11,536 B / 2,401 0.08 s 0.09 s
  • ACO compiles these quickly even on main, so RADV never showed the 20 s and 84 s cold compiles seen on NVIDIA and Intel. The byte-store helper still cuts the store-heavy pipelines by 38–59%.
  • The atomics tests barely change here (about 2%), unlike the roughly 50% on NVIDIA. RADV's code for the unrolled probes was already close to the loop's.
  • Full ctest: 479/479 pass on main and on this PR, with the GPU tests running on the RX 7600 (none skipped).
  • DOOM homebrew PPSA99666 (built from source) stays on the AGC compute presenter at the display's 60 FPS on both. GPU time per presented frame (APS5_PROFILE_GPU, two 10 s windows of about 600 presents): 1.45 ms on main, 1.43 ms here.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6066954325 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1265#issuecomment-6066954325). Originally posted by [johnmaia](https://github.com/johnmaia) on 2026-10-08T18:59:02Z. --- Measured on AMD, which the description lists as not run: Ubuntu 24.04.5 (kernel 6.8), GCC 13.3, Release, AMD Radeon RX 7600 (RADV NAVI33, Mesa 25.2.8). This PR's head is `d3cdffac`, merged onto main `6b56175a`. The settings were `ANYPS5_NO_SHADER_CACHE=1` and `MESA_SHADER_CACHE_DISABLE=true`, so every run compiles cold, plus `APS5_PIPELINE_STATS=1` for RADV's code size and instruction count. Times are the median of three runs. | test | `main` code size / instructions (largest pipeline) | this PR | `main` run | this PR | |---|---|---|---|---| | `flat_store` | 278,268 B / 55,958 | 126,612 B / 25,507 | 1.01 s, 355 MiB | 0.55 s, 221 MiB | | `global_vcc_base` | 314,648 B / 57,002 | 195,996 B / 35,670 | 2.41 s, 420 MiB | 1.56 s, 313 MiB | | `global_store_addtid` | 202,284 B / 36,137 | 82,636 B / 14,845 | 1.14 s, 277 MiB | 0.49 s, 170 MiB | | `flat_cache_bits` | 70,232 B / 12,623 | 50,420 B / 9,047 | 0.21 s | 0.18 s | | `global_atomics` | 51,912 B / 10,542 | 51,016 B / 10,330 | 0.16 s | 0.16 s | | `global_atomics64` | 46,744 B / 9,560 | 45,976 B / 9,377 | 0.14 s | 0.14 s | | `global_atomics_float` | 34,680 B / 7,095 | 34,168 B / 6,955 | 0.19 s | 0.19 s | | `global_atomics_lanes` | 18,600 B / 3,812 | 18,280 B / 3,731 | 0.11 s | 0.13 s | | `global_atomic_csub` | 11,728 B / 2,449 | 11,536 B / 2,401 | 0.08 s | 0.09 s | - ACO compiles these quickly even on `main`, so RADV never showed the 20 s and 84 s cold compiles seen on NVIDIA and Intel. The byte-store helper still cuts the store-heavy pipelines by 38–59%. - The atomics tests barely change here (about 2%), unlike the roughly 50% on NVIDIA. RADV's code for the unrolled probes was already close to the loop's. - Full ctest: 479/479 pass on `main` and on this PR, with the GPU tests running on the RX 7600 (none skipped). - DOOM homebrew PPSA99666 (built from source) stays on the AGC compute presenter at the display's 60 FPS on both. GPU time per presented frame (`APS5_PROFILE_GPU`, two 10 s windows of about 600 presents): 1.45 ms on `main`, 1.43 ms here.
popcoder565 commented 2026-10-09 02:56:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T02:56:18Z.


@johnmaia thanks for the AMD run. I added a summary of it to the description in place of "Not run on AMD".

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6073310802 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1265#issuecomment-6073310802). Originally posted by [popcoder565](https://github.com/popcoder565) on 2026-10-09T02:56:18Z. --- @johnmaia thanks for the AMD run. I added a summary of it to the description in place of "Not run on AMD". _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
github-actions[bot] commented 2026-10-09 22:03:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T22:03:29Z.


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
#2305 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvBda.hpp L28
#2349 core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp L234-235
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6090007701 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1265#issuecomment-6090007701). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T22:03:29Z. --- <!-- 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 | |---|---|---|---| | #2305 | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvBda.hpp` [L28](https://github.com/boykopovar/AnyPS5/blob/64fe74399528c84fd74c3f736e632f89f4a7f211/core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvBda.hpp#L28) | | | | #2349 | `core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp` [L234-235](https://github.com/boykopovar/AnyPS5/blob/64fe74399528c84fd74c3f736e632f89f4a7f211/core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp#L234-L235) | | |
adriadam10 commented 2026-10-09 22:40:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T22:40:47Z.


Checked the diff against the unrolled original: the byte loop keeps the per-byte order (write lookup, store when mapped, write note), the 8-probe loop in note_bda_write tries the same slots and stops at the same one, and BdaCoherent matches the any_of that decides which variants exist. Built on current main: ctest green apart from patched_libraries (missing libkernel.prx in the build dir, unrelated); the BDA store/atomic tests pass on RADV. Intel/AMD/NVIDIA numbers from @hashaam1217, @johnmaia and the PR author cover the rest. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6090473763 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1265#issuecomment-6090473763). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-09T22:40:47Z. --- Checked the diff against the unrolled original: the byte loop keeps the per-byte order (write lookup, store when mapped, write note), the 8-probe loop in `note_bda_write` tries the same slots and stops at the same one, and `BdaCoherent` matches the `any_of` that decides which variants exist. Built on current `main`: ctest green apart from `patched_libraries` (missing `libkernel.prx` in the build dir, unrelated); the BDA store/atomic tests pass on RADV. Intel/AMD/NVIDIA numbers from @hashaam1217, @johnmaia and the PR author cover the rest. 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!1265
No description provided.