feat(shader): implement the float and 64-bit inc/dec flat and global atomics #506

Merged
adriadam10 merged 3 commits from upstream-pr/506 into main 2026-10-05 05:15:23 +00:00
adriadam10 commented 2026-10-04 10:52:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-04T10:52:12Z.


What

This implements the eight FLAT/GLOBAL atomics that #491 left throwing (16 with both segments): {flat,global}_atomic_fcmpswap, fmin, fmax, fcmpswap_x2, fmin_x2, fmax_x2, inc_x2, dec_x2. Before this, the decoder threw FLAT opcode is not supported for each of them.

They run through the same BDA atomic path as the integer ones (EmitBdaAtomic). The value is computed in a compare-exchange loop (AtomicUpdateTyped, on u32 or u64) with the rules #332 measured for the buffer forms (AtomicFloatBits). The float compare and minNum/maxNum work on the raw bits, so the driver's denormal and NaN float controls don't matter:

  • fcmpswap(_x2): mem = (mem == cmp) ? src : mem, compared as floats: −0 equals +0, NaN equals nothing, denormals compare exactly. src is in vdata[0] ([0:1] for x2) and cmp in vdata[1] ([2:3]), the same as the integer cmpswap.
  • fmin/fmax(_x2): IEEE minNum/maxNum, with −0 < +0. A signalling NaN operand gives that NaN quieted (src first). A quiet NaN loses to a number. Two quiet NaNs give src.
  • inc_x2/dec_x2: the 32-bit inc/dec wrap rule on u64.

AtomicFloatBits gets compareSwap, increment and decrement, and the buffer forms from #332 now call them, so each rule is written once.

Opcodes from llvm-mc -mcpu=gfx1013 -show-encoding: fcmpswap 0x3e, fmin 0x3f, fmax 0x40, inc_x2 0x5c, dec_x2 0x5d, fcmpswap_x2 0x5e, fmin_x2 0x5f, fmax_x2 0x60.

Depends on #491 (integer flat/global atomics, which includes #390) and #332 (float buffer atomics, which includes #321). Their commits are included here. Only the last commit is this PR.

Behaviour measured on HW

Radeon 660M (gfx1035, same FLAT encoding as gfx1013), with the memory in the coarse-grained pool (float atomics aren't performed on fine-grained system memory, see #332). Every pair of 16 f32 or f64 values was used: ±0, ±1, 1.5, −2.5, ±inf, quiet NaNs with and without payload, signalling NaNs, denormals, the largest finite value and the smallest normal. The fcmpswap comparator was the memory value, the memory with its sign flipped, another value, or the data. inc/dec_x2 used 16 integer edge values (0, 1, 2³²−1, 2³², 2⁶³, 2⁶⁴−1…) plus random rows with limit = mem or mem + 1. Each op ran through global_* and through flat_* with a 64-bit VGPR address: 4160/4160 rows match the model above, for both the returned pre-op value and the stored value. Global and flat gave the same results.

Tested

Arch Linux, RADV (Radeon 660M) plus lavapipe (local Mesa and the CI version, Ubuntu Mesa 25.2.8).

  • New execution test GlobalAtomicsFloat: 8 atomics with 64 HW rows each (512 rows), picked to cover every class pair. fcmpswap, fmax, fcmpswap_x2, fmin_x2 and inc_x2 go through global_*, while fmin, fmax_x2 and dec_x2 go through flat_*. It runs as wave32 and wave64 and checks the returned value, the stored value, and that nothing else in the 64 KiB guest block changes. It takes 6 s on CI's lavapipe.
  • GlobalAtomics, BufferAtomicsFloat and BufferAtomicsIncDec64 still pass (the buffer forms now use the shared helpers).
  • Negative checks: the test fails if fcmpswap compares bits (memory 0x0 … comparator 0x80000000), if fmin and fmax are swapped, if fmax picks by order without the NaN rules, if inc_x2/dec_x2 don't wrap, or if the flat fcmpswap drops its comparator.
  • Full Release build plus ctest: 188/189. The one failure, agc_driver_pixel_helper_lanes, also fails on main on local RADV since #305.

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: #491 (with #390), #332 (with #321); review only the last commit
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4733768806 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/506). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-04T10:52:12Z. --- ### What This implements the eight FLAT/GLOBAL atomics that #491 left throwing (16 with both segments): `{flat,global}_atomic_fcmpswap`, `fmin`, `fmax`, `fcmpswap_x2`, `fmin_x2`, `fmax_x2`, `inc_x2`, `dec_x2`. Before this, the decoder threw `FLAT opcode is not supported` for each of them. They run through the same BDA atomic path as the integer ones (`EmitBdaAtomic`). The value is computed in a compare-exchange loop (`AtomicUpdateTyped`, on u32 or u64) with the rules #332 measured for the buffer forms (`AtomicFloatBits`). The float compare and minNum/maxNum work on the raw bits, so the driver's denormal and NaN float controls don't matter: - `fcmpswap(_x2)`: `mem = (mem == cmp) ? src : mem`, compared as floats: −0 equals +0, NaN equals nothing, denormals compare exactly. `src` is in `vdata[0]` (`[0:1]` for x2) and `cmp` in `vdata[1]` (`[2:3]`), the same as the integer `cmpswap`. - `fmin/fmax(_x2)`: IEEE minNum/maxNum, with −0 < +0. A signalling NaN operand gives that NaN quieted (src first). A quiet NaN loses to a number. Two quiet NaNs give src. - `inc_x2`/`dec_x2`: the 32-bit `inc`/`dec` wrap rule on u64. `AtomicFloatBits` gets `compareSwap`, `increment` and `decrement`, and the buffer forms from #332 now call them, so each rule is written once. Opcodes from `llvm-mc -mcpu=gfx1013 -show-encoding`: fcmpswap 0x3e, fmin 0x3f, fmax 0x40, inc_x2 0x5c, dec_x2 0x5d, fcmpswap_x2 0x5e, fmin_x2 0x5f, fmax_x2 0x60. **Depends on #491** (integer flat/global atomics, which includes #390) and **#332** (float buffer atomics, which includes #321). Their commits are included here. Only the last commit is this PR. ### Behaviour measured on HW Radeon 660M (gfx1035, same FLAT encoding as gfx1013), with the memory in the coarse-grained pool (float atomics aren't performed on fine-grained system memory, see #332). Every pair of 16 f32 or f64 values was used: ±0, ±1, 1.5, −2.5, ±inf, quiet NaNs with and without payload, signalling NaNs, denormals, the largest finite value and the smallest normal. The fcmpswap comparator was the memory value, the memory with its sign flipped, another value, or the data. inc/dec_x2 used 16 integer edge values (0, 1, 2³²−1, 2³², 2⁶³, 2⁶⁴−1…) plus random rows with limit = mem or mem + 1. Each op ran through `global_*` and through `flat_*` with a 64-bit VGPR address: **4160/4160 rows** match the model above, for both the returned pre-op value and the stored value. Global and flat gave the same results. ### Tested Arch Linux, RADV (Radeon 660M) plus lavapipe (local Mesa and the CI version, Ubuntu Mesa 25.2.8). - New execution test `GlobalAtomicsFloat`: 8 atomics with 64 HW rows each (512 rows), picked to cover every class pair. fcmpswap, fmax, fcmpswap_x2, fmin_x2 and inc_x2 go through `global_*`, while fmin, fmax_x2 and dec_x2 go through `flat_*`. It runs as wave32 and wave64 and checks the returned value, the stored value, and that nothing else in the 64 KiB guest block changes. It takes 6 s on CI's lavapipe. - `GlobalAtomics`, `BufferAtomicsFloat` and `BufferAtomicsIncDec64` still pass (the buffer forms now use the shared helpers). - Negative checks: the test fails if fcmpswap compares bits (`memory 0x0 … comparator 0x80000000`), if fmin and fmax are swapped, if fmax picks by order without the NaN rules, if inc_x2/dec_x2 don't wrap, or if the flat fcmpswap drops its comparator. - Full Release build plus `ctest`: 188/189. The one failure, `agc_driver_pixel_helper_lanes`, also fails on `main` on local RADV since #305. ### 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 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: #491 (with #390), #332 (with #321); review only the last commit - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-04 10:52:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-04T10:52:33Z.


Progress report (00407df → c67634a)

📈 GPU shader instructions: 93.65% (+5.49%, +64 implemented instructions)

✅ 64 implemented
Encoding Name
FLAT FLAT_ATOMIC_ADD
FLAT FLAT_ATOMIC_ADD_X2
FLAT FLAT_ATOMIC_AND
FLAT FLAT_ATOMIC_AND_X2
FLAT FLAT_ATOMIC_CMPSWAP
FLAT FLAT_ATOMIC_CMPSWAP_X2
FLAT FLAT_ATOMIC_DEC
FLAT FLAT_ATOMIC_DEC_X2
FLAT FLAT_ATOMIC_FCMPSWAP
FLAT FLAT_ATOMIC_FCMPSWAP_X2
FLAT FLAT_ATOMIC_FMAX
FLAT FLAT_ATOMIC_FMAX_X2
FLAT FLAT_ATOMIC_FMIN
FLAT FLAT_ATOMIC_FMIN_X2
FLAT FLAT_ATOMIC_INC
FLAT FLAT_ATOMIC_INC_X2
FLAT FLAT_ATOMIC_OR
FLAT FLAT_ATOMIC_OR_X2
FLAT FLAT_ATOMIC_SMAX
FLAT FLAT_ATOMIC_SMAX_X2
FLAT FLAT_ATOMIC_SMIN
FLAT FLAT_ATOMIC_SMIN_X2
FLAT FLAT_ATOMIC_SUB
FLAT FLAT_ATOMIC_SUB_X2
FLAT FLAT_ATOMIC_SWAP
FLAT FLAT_ATOMIC_SWAP_X2
FLAT FLAT_ATOMIC_UMAX
FLAT FLAT_ATOMIC_UMAX_X2
FLAT FLAT_ATOMIC_UMIN
FLAT FLAT_ATOMIC_UMIN_X2
FLAT FLAT_ATOMIC_XOR
FLAT FLAT_ATOMIC_XOR_X2
GLOBAL GLOBAL_ATOMIC_ADD
GLOBAL GLOBAL_ATOMIC_ADD_X2
GLOBAL GLOBAL_ATOMIC_AND
GLOBAL GLOBAL_ATOMIC_AND_X2
GLOBAL GLOBAL_ATOMIC_CMPSWAP
GLOBAL GLOBAL_ATOMIC_CMPSWAP_X2
GLOBAL GLOBAL_ATOMIC_DEC
GLOBAL GLOBAL_ATOMIC_DEC_X2
GLOBAL GLOBAL_ATOMIC_FCMPSWAP
GLOBAL GLOBAL_ATOMIC_FCMPSWAP_X2
GLOBAL GLOBAL_ATOMIC_FMAX
GLOBAL GLOBAL_ATOMIC_FMAX_X2
GLOBAL GLOBAL_ATOMIC_FMIN
GLOBAL GLOBAL_ATOMIC_FMIN_X2
GLOBAL GLOBAL_ATOMIC_INC
GLOBAL GLOBAL_ATOMIC_INC_X2
GLOBAL GLOBAL_ATOMIC_OR
GLOBAL GLOBAL_ATOMIC_OR_X2
GLOBAL GLOBAL_ATOMIC_SMAX
GLOBAL GLOBAL_ATOMIC_SMAX_X2
GLOBAL GLOBAL_ATOMIC_SMIN
GLOBAL GLOBAL_ATOMIC_SMIN_X2
GLOBAL GLOBAL_ATOMIC_SUB
GLOBAL GLOBAL_ATOMIC_SUB_X2
GLOBAL GLOBAL_ATOMIC_SWAP
GLOBAL GLOBAL_ATOMIC_SWAP_X2
GLOBAL GLOBAL_ATOMIC_UMAX
GLOBAL GLOBAL_ATOMIC_UMAX_X2
GLOBAL GLOBAL_ATOMIC_UMIN
GLOBAL GLOBAL_ATOMIC_UMIN_X2
GLOBAL GLOBAL_ATOMIC_XOR
GLOBAL GLOBAL_ATOMIC_XOR_X2
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5979197624 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/506#issuecomment-5979197624). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-04T10:52:33Z. --- <!-- progress-report --> ### Progress report (00407df → c67634a) 📈 **GPU shader instructions**: 93.65% (+5.49%, +64 implemented instructions) <details> <summary>✅ 64 implemented</summary> | Encoding | Name | | - | - | | FLAT | `FLAT_ATOMIC_ADD` | | FLAT | `FLAT_ATOMIC_ADD_X2` | | FLAT | `FLAT_ATOMIC_AND` | | FLAT | `FLAT_ATOMIC_AND_X2` | | FLAT | `FLAT_ATOMIC_CMPSWAP` | | FLAT | `FLAT_ATOMIC_CMPSWAP_X2` | | FLAT | `FLAT_ATOMIC_DEC` | | FLAT | `FLAT_ATOMIC_DEC_X2` | | FLAT | `FLAT_ATOMIC_FCMPSWAP` | | FLAT | `FLAT_ATOMIC_FCMPSWAP_X2` | | FLAT | `FLAT_ATOMIC_FMAX` | | FLAT | `FLAT_ATOMIC_FMAX_X2` | | FLAT | `FLAT_ATOMIC_FMIN` | | FLAT | `FLAT_ATOMIC_FMIN_X2` | | FLAT | `FLAT_ATOMIC_INC` | | FLAT | `FLAT_ATOMIC_INC_X2` | | FLAT | `FLAT_ATOMIC_OR` | | FLAT | `FLAT_ATOMIC_OR_X2` | | FLAT | `FLAT_ATOMIC_SMAX` | | FLAT | `FLAT_ATOMIC_SMAX_X2` | | FLAT | `FLAT_ATOMIC_SMIN` | | FLAT | `FLAT_ATOMIC_SMIN_X2` | | FLAT | `FLAT_ATOMIC_SUB` | | FLAT | `FLAT_ATOMIC_SUB_X2` | | FLAT | `FLAT_ATOMIC_SWAP` | | FLAT | `FLAT_ATOMIC_SWAP_X2` | | FLAT | `FLAT_ATOMIC_UMAX` | | FLAT | `FLAT_ATOMIC_UMAX_X2` | | FLAT | `FLAT_ATOMIC_UMIN` | | FLAT | `FLAT_ATOMIC_UMIN_X2` | | FLAT | `FLAT_ATOMIC_XOR` | | FLAT | `FLAT_ATOMIC_XOR_X2` | | GLOBAL | `GLOBAL_ATOMIC_ADD` | | GLOBAL | `GLOBAL_ATOMIC_ADD_X2` | | GLOBAL | `GLOBAL_ATOMIC_AND` | | GLOBAL | `GLOBAL_ATOMIC_AND_X2` | | GLOBAL | `GLOBAL_ATOMIC_CMPSWAP` | | GLOBAL | `GLOBAL_ATOMIC_CMPSWAP_X2` | | GLOBAL | `GLOBAL_ATOMIC_DEC` | | GLOBAL | `GLOBAL_ATOMIC_DEC_X2` | | GLOBAL | `GLOBAL_ATOMIC_FCMPSWAP` | | GLOBAL | `GLOBAL_ATOMIC_FCMPSWAP_X2` | | GLOBAL | `GLOBAL_ATOMIC_FMAX` | | GLOBAL | `GLOBAL_ATOMIC_FMAX_X2` | | GLOBAL | `GLOBAL_ATOMIC_FMIN` | | GLOBAL | `GLOBAL_ATOMIC_FMIN_X2` | | GLOBAL | `GLOBAL_ATOMIC_INC` | | GLOBAL | `GLOBAL_ATOMIC_INC_X2` | | GLOBAL | `GLOBAL_ATOMIC_OR` | | GLOBAL | `GLOBAL_ATOMIC_OR_X2` | | GLOBAL | `GLOBAL_ATOMIC_SMAX` | | GLOBAL | `GLOBAL_ATOMIC_SMAX_X2` | | GLOBAL | `GLOBAL_ATOMIC_SMIN` | | GLOBAL | `GLOBAL_ATOMIC_SMIN_X2` | | GLOBAL | `GLOBAL_ATOMIC_SUB` | | GLOBAL | `GLOBAL_ATOMIC_SUB_X2` | | GLOBAL | `GLOBAL_ATOMIC_SWAP` | | GLOBAL | `GLOBAL_ATOMIC_SWAP_X2` | | GLOBAL | `GLOBAL_ATOMIC_UMAX` | | GLOBAL | `GLOBAL_ATOMIC_UMAX_X2` | | GLOBAL | `GLOBAL_ATOMIC_UMIN` | | GLOBAL | `GLOBAL_ATOMIC_UMIN_X2` | | GLOBAL | `GLOBAL_ATOMIC_XOR` | | GLOBAL | `GLOBAL_ATOMIC_XOR_X2` | </details>
oneandonlydean commented 2026-10-04 21:08:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T21:08:00Z.


Thanks. I looked at the last commit only, as asked. The opcodes match LLVM's gfx1013 encodings (fcmpswap/fmin/fmax 0x3e to 0x40, the _x2 forms 0x5e to 0x60, inc/dec _x2 0x5c/0x5d), the 64-bit inc/dec wrap rules match the ISA, and the float ops reuse the NaN and signed-zero handling from #332, so the result doesn't depend on the host's NaN behaviour. It passes here together with the rest of the stack.

Since it carries #390, #491, #321 and #332, which are still open, I'll come back to it once those are in. A rebase down to this commit then would make it quick to merge; it touches #332's buffer atomic emitters, so I'll also run it through my PPSA21564 check at that point.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5984396082 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/506#issuecomment-5984396082). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-04T21:08:00Z. --- Thanks. I looked at the last commit only, as asked. The opcodes match LLVM's gfx1013 encodings (fcmpswap/fmin/fmax 0x3e to 0x40, the `_x2` forms 0x5e to 0x60, inc/dec `_x2` 0x5c/0x5d), the 64-bit inc/dec wrap rules match the ISA, and the float ops reuse the NaN and signed-zero handling from #332, so the result doesn't depend on the host's NaN behaviour. It passes here together with the rest of the stack. Since it carries #390, #491, #321 and #332, which are still open, I'll come back to it once those are in. A rebase down to this commit then would make it quick to merge; it touches #332's buffer atomic emitters, so I'll also run it through my PPSA21564 check at that point.
adriadam10 commented 2026-10-05 01:39:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-05T01:39:36Z.


Rebased on current main: #321 and #332 are merged and dropped from the branch; the #390 and #491 commits are patch-identical to those PRs' heads and the last commit applied unchanged. agc_driver_global_atomics_float_tests passes on RADV and lavapipe, full ctest green on RADV apart from the known agc_driver_pixel_helper_lanes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5986655799 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/506#issuecomment-5986655799). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-05T01:39:36Z. --- Rebased on current main: #321 and #332 are merged and dropped from the branch; the #390 and #491 commits are patch-identical to those PRs' heads and the last commit applied unchanged. `agc_driver_global_atomics_float_tests` passes on RADV and lavapipe, full ctest green on RADV apart from the known `agc_driver_pixel_helper_lanes`.
oneandonlydean commented 2026-10-05 02:47:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T02:47:07Z.


Thanks for the rebase, and you're right that the #390 and #491 commits here are patch-identical to those PRs, and your last commit applied unchanged. agc_driver_global_atomics_float passes here on the merged branch.

One merge-order detail, though: patch-identical isn't quite enough for GitHub. #390's branch is at 673401b, #491 carries an older copy of that commit (6a58101), #495 another one (6ce4b28), and this branch a third (357bb14). Merged as they stand, #390 and then #491, #495 or this one conflict in ResourceTracker.cpp, SpirvBda.hpp and SpirvBdaRead.cpp. If the chain shared one set of commits, each PR would merge cleanly after the one before it. The simplest way I can see: rebase #491 onto #390's head, then this one and #495 onto #491's new head. I checked that main plus 357bb14 (your copy of #390) and then #569 merges cleanly, so #569 doesn't need to change for this.

#390 and #491 are still waiting on my PPSA21564 check (PPSA21564 has a few global_load_dword* shaders), so there's no rush; the float and 64-bit atomics here aren't in any PPSA21564 shader.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5987227732 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/506#issuecomment-5987227732). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-05T02:47:07Z. --- Thanks for the rebase, and you're right that the #390 and #491 commits here are patch-identical to those PRs, and your last commit applied unchanged. `agc_driver_global_atomics_float` passes here on the merged branch. One merge-order detail, though: patch-identical isn't quite enough for GitHub. #390's branch is at 673401b, #491 carries an older copy of that commit (6a58101), #495 another one (6ce4b28), and this branch a third (357bb14). Merged as they stand, #390 and then #491, #495 or this one conflict in `ResourceTracker.cpp`, `SpirvBda.hpp` and `SpirvBdaRead.cpp`. If the chain shared one set of commits, each PR would merge cleanly after the one before it. The simplest way I can see: rebase #491 onto #390's head, then this one and #495 onto #491's new head. I checked that main plus 357bb14 (your copy of #390) and then #569 merges cleanly, so #569 doesn't need to change for this. #390 and #491 are still waiting on my PPSA21564 check (PPSA21564 has a few `global_load_dword*` shaders), so there's no rush; the float and 64-bit atomics here aren't in any PPSA21564 shader.
adriadam10 commented 2026-10-05 03:06:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-05T03:06:43Z.


Thanks, done: #491, #495 and this PR now share the same commits. #491 was rebased onto current main (be866e42 = #390's patch, then 038ded63), and #495 and this branch sit directly on 038ded63, each with only its own commit on top. A rebase onto #390's head itself didn't work: 673401b3 is based on 313de1c5, and main has since added the FLAT D16 rows and the float64 analysis next to the lines #491 changes, and this commit needs main's newer atomic helpers. I simulated the merges with git merge-tree: #390 → #491 → #495 → this one merges cleanly at every step (also #491 before #390, and #569 after #390). agc_driver_global_atomics, agc_driver_flat_store, agc_driver_flat_cache_bits and agc_driver_global_atomics_float pass on RADV and lavapipe on their branches.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5987393302 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/506#issuecomment-5987393302). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-05T03:06:43Z. --- Thanks, done: #491, #495 and this PR now share the same commits. #491 was rebased onto current main (be866e42 = #390's patch, then 038ded63), and #495 and this branch sit directly on 038ded63, each with only its own commit on top. A rebase onto #390's head itself didn't work: 673401b3 is based on 313de1c5, and main has since added the FLAT D16 rows and the float64 analysis next to the lines #491 changes, and this commit needs main's newer atomic helpers. I simulated the merges with `git merge-tree`: #390 → #491 → #495 → this one merges cleanly at every step (also #491 before #390, and #569 after #390). `agc_driver_global_atomics`, `agc_driver_flat_store`, `agc_driver_flat_cache_bits` and `agc_driver_global_atomics_float` pass on RADV and lavapipe on their branches.
oneandonlydean commented 2026-10-05 05:04:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T05:04:02Z.


Gated on PPSA21564 on top of #491: no visual or FPS change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5988442312 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/506#issuecomment-5988442312). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-05T05:04:02Z. --- Gated on PPSA21564 on top of #491: no visual or FPS change.
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!506
No description provided.