feat(shader): implement the integer flat and global atomics #491

Merged
adriadam10 merged 2 commits from upstream-pr/491 into main 2026-10-05 05:14:00 +00:00
adriadam10 commented 2026-10-04 08:27:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-04T08:27:25Z.


What

Implements the 24 integer FLAT/GLOBAL atomics of gfx1013 (flat_atomic_* and global_atomic_*: swap, cmpswap, add, sub, smin, umin, smax, umax, and, or, xor, inc, dec, plus the _x2 forms of swap through xor). flat_atomic_inc_x2/dec_x2 (0x5c, 0x5d) and their global forms are not in this PR and still throw. Found by the ISA coverage sweep; on main the decoder throws FLAT opcode is not supported for all of them. The float ones (fcmpswap, fmin, fmax and their _x2) are not in this PR and still throw.

Depends on #390 (DotDebian, stores through FLAT/GLOBAL addresses): the atomics need the same BDA write path (write lookup, note_bda_write, bdaWrites). Its commit is included here; only the second commit is this PR.

  • Decoder: opcodes 0x30-0x3d and 0x50-0x5b (from llvm-mc -mcpu=gfx1013 -show-encoding) in the FLAT table. glc is accepted for atomics only (it selects the pre-op return); the data operand goes to source2; without glc the destination is None, so no VGPR is counted as written. Scratch-segment atomics still throw.
  • IR: AddressAtomic*32/*64 with a new AddressAccess::Atomic. They count as side effects, set bdaWrites and, for the 64-bit ones, the Int64Atomics requirement the buffer _x2 atomics already use.
  • SPIR-V (EmitBdaAtomic): one get_bda_write_pointer lookup for the 4 or 8 bytes, then the native atomic on the PhysicalStorageBuffer pointer, then note_bda_write. A misaligned address records an Unaligned fault and returns 0, the way the EmitBdaWrite V# store does. A read-only or unmapped range is not written and returns 0. inc/dec use the existing AtomicUpdate CAS loop with AtomicIncrement/AtomicDecrement (the same rule as the LDS/image atomics). The VGPR limit also counts the atomic's data registers (x2 cmpswap = 4).

Behaviour measured on HW

Every opcode was run on a Radeon 660M (gfx1035, same VMEM atomics as gfx1013) with global_atomic_* ... glc over 32 lanes of edge values (0, 1, INT_MIN/MAX, -1, carries across the 64-bit halves, inc/dec at and around the limit, cmpswap hit and miss). That's 768 rows, and a Python model matches all of them: integer semantics as in the ISA doc, inc = old >= src ? 0 : old + 1, dec = old == 0 || old > src ? src : old - 1, cmpswap = old == cmp ? src : old with data in vdata[0] ([0:1] for x2) and the comparator in vdata[1] ([2:3]), return = pre-op value.

Tested

Arch Linux, RADV (Radeon 660M) plus lavapipe (local Mesa and the CI version, Ubuntu Mesa 25.2.8): new execution test GlobalAtomics. 64 threads run as wave32 and wave64, and a third dispatch runs against a read-only range:

  • 16 HW rows per opcode (24 opcodes), checking the returned value per lane and the final memory byte for byte across the whole 64 KiB block (nothing outside the targets changes).
  • flat_atomic_xor through a 64-bit VGPR address, a contended non-returning global_atomic_add onto one dword (the sum is checked, and every lane's return must be a distinct prefix sum), a non-returning global_atomic_or under a partial EXEC, and the read-only range left untouched.

The test fails without each piece of the fix (negative checks): cmpswap operand order, x2 comparator register offset, inc vs dec, signed vs unsigned min, EXEC ignored, glc return dropped, and x2 data width (the IR validator rejects it). Dropping note_bda_write is not visible to the test (as in #390's FlatStore).
Full Release build plus ctest: 174/175; the one failure, agc_driver_pixel_helper_lanes, also fails on main on local RADV since #305. GlobalAtomics takes ~34 s on lavapipe (BDA lookups are slow there; FlatStore takes ~80 s locally).

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: #390
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4732970299 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/491). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-04T08:27:25Z. --- ### What Implements the 24 integer FLAT/GLOBAL atomics of gfx1013 (`flat_atomic_*` and `global_atomic_*`: swap, cmpswap, add, sub, smin, umin, smax, umax, and, or, xor, inc, dec, plus the `_x2` forms of swap through xor). `flat_atomic_inc_x2`/`dec_x2` (0x5c, 0x5d) and their global forms are not in this PR and still throw. Found by the ISA coverage sweep; on `main` the decoder throws `FLAT opcode is not supported` for all of them. The float ones (fcmpswap, fmin, fmax and their `_x2`) are not in this PR and still throw. **Depends on #390** (DotDebian, stores through FLAT/GLOBAL addresses): the atomics need the same BDA write path (write lookup, `note_bda_write`, `bdaWrites`). Its commit is included here; only the second commit is this PR. - Decoder: opcodes 0x30-0x3d and 0x50-0x5b (from `llvm-mc -mcpu=gfx1013 -show-encoding`) in the FLAT table. `glc` is accepted for atomics only (it selects the pre-op return); the data operand goes to `source2`; without `glc` the destination is `None`, so no VGPR is counted as written. Scratch-segment atomics still throw. - IR: `AddressAtomic*32`/`*64` with a new `AddressAccess::Atomic`. They count as side effects, set `bdaWrites` and, for the 64-bit ones, the `Int64Atomics` requirement the buffer `_x2` atomics already use. - SPIR-V (`EmitBdaAtomic`): one `get_bda_write_pointer` lookup for the 4 or 8 bytes, then the native atomic on the `PhysicalStorageBuffer` pointer, then `note_bda_write`. A misaligned address records an `Unaligned` fault and returns 0, the way the `EmitBdaWrite` V# store does. A read-only or unmapped range is not written and returns 0. inc/dec use the existing `AtomicUpdate` CAS loop with `AtomicIncrement`/`AtomicDecrement` (the same rule as the LDS/image atomics). The VGPR limit also counts the atomic's data registers (x2 cmpswap = 4). ### Behaviour measured on HW Every opcode was run on a Radeon 660M (gfx1035, same VMEM atomics as gfx1013) with `global_atomic_* ... glc` over 32 lanes of edge values (0, 1, INT_MIN/MAX, -1, carries across the 64-bit halves, inc/dec at and around the limit, cmpswap hit and miss). That's 768 rows, and a Python model matches all of them: integer semantics as in the ISA doc, inc = `old >= src ? 0 : old + 1`, dec = `old == 0 || old > src ? src : old - 1`, cmpswap = `old == cmp ? src : old` with data in `vdata[0]` (`[0:1]` for x2) and the comparator in `vdata[1]` (`[2:3]`), return = pre-op value. ### Tested Arch Linux, RADV (Radeon 660M) plus lavapipe (local Mesa and the CI version, Ubuntu Mesa 25.2.8): new execution test `GlobalAtomics`. 64 threads run as wave32 and wave64, and a third dispatch runs against a read-only range: - 16 HW rows per opcode (24 opcodes), checking the returned value per lane and the final memory byte for byte across the whole 64 KiB block (nothing outside the targets changes). - `flat_atomic_xor` through a 64-bit VGPR address, a contended non-returning `global_atomic_add` onto one dword (the sum is checked, and every lane's return must be a distinct prefix sum), a non-returning `global_atomic_or` under a partial EXEC, and the read-only range left untouched. The test fails without each piece of the fix (negative checks): cmpswap operand order, x2 comparator register offset, inc vs dec, signed vs unsigned min, EXEC ignored, `glc` return dropped, and x2 data width (the IR validator rejects it). Dropping `note_bda_write` is not visible to the test (as in #390's FlatStore). Full Release build plus `ctest`: 174/175; the one failure, `agc_driver_pixel_helper_lanes`, also fails on `main` on local RADV since #305. `GlobalAtomics` takes ~34 s on lavapipe (BDA lookups are slow there; FlatStore takes ~80 s locally). ### 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: #390 - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-04 08:27:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-04T08:27:46Z.


Progress report (00407df → 038ded6)

📈 GPU shader instructions: 92.28% (+4.12%, +48 implemented instructions)

✅ 48 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_INC
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_INC
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:5978104569 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/491#issuecomment-5978104569). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-04T08:27:46Z. --- <!-- progress-report --> ### Progress report (00407df → 038ded6) 📈 **GPU shader instructions**: 92.28% (+4.12%, +48 implemented instructions) <details> <summary>✅ 48 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_INC` | | 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_INC` | | 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 09:52:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T09:52:38Z.


Thanks, this looks right to me. The opcodes match LLVM's gfx10 FLAT and GLOBAL tables, and all 384 rows in the test agree with the ISA definitions: inc and dec at the limits, cmpswap with the data in vdata[0] and the comparator in vdata[1], and the pre-op return with glc. Read-only, unmapped and misaligned addresses go through the same write lookup as the stores in #390, so they're reported instead of written.

One small thing for the description: gfx10 also has flat_atomic_inc_x2 and dec_x2 (0x5c and 0x5d). They still throw here, which is fine, but "all but inc/dec" reads as if they don't exist.

Since this carries #390's commit unchanged, I'd like #390 to land first. After that it's ready to merge from my side once it has been through my PPSA21564 test runs.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5978697114 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/491#issuecomment-5978697114). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-04T09:52:38Z. --- Thanks, this looks right to me. The opcodes match LLVM's gfx10 FLAT and GLOBAL tables, and all 384 rows in the test agree with the ISA definitions: inc and dec at the limits, cmpswap with the data in vdata[0] and the comparator in vdata[1], and the pre-op return with glc. Read-only, unmapped and misaligned addresses go through the same write lookup as the stores in #390, so they're reported instead of written. One small thing for the description: gfx10 also has flat_atomic_inc_x2 and dec_x2 (0x5c and 0x5d). They still throw here, which is fine, but "all but inc/dec" reads as if they don't exist. Since this carries #390's commit unchanged, I'd like #390 to land first. After that it's ready to merge from my side once it has been through my PPSA21564 test runs.
adriadam10 commented 2026-10-04 10:03:37 +00:00 (Migrated from github.com)

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


  • Description: says now that flat_atomic_inc_x2/dec_x2 (0x5c, 0x5d) and their global forms exist and still throw.
  • Rebased on current main (conflicts: FLAT table next to the new D16 rows, and the float64 requirement check in SpirvAnalysis.cpp; both sides kept). #390's commit is carried unchanged (same patch as its current head). GlobalAtomics, FlatStore and D16Memory pass on RADV and lavapipe.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5978817737 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/491#issuecomment-5978817737). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-04T10:03:37Z. --- - Description: says now that `flat_atomic_inc_x2`/`dec_x2` (0x5c, 0x5d) and their global forms exist and still throw. - Rebased on current main (conflicts: FLAT table next to the new D16 rows, and the float64 requirement check in `SpirvAnalysis.cpp`; both sides kept). #390's commit is carried unchanged (same patch as its current head). GlobalAtomics, FlatStore and D16Memory pass on RADV and lavapipe.
oneandonlydean commented 2026-10-04 22:38:08 +00:00 (Migrated from github.com)

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


Thanks, the description now covers flat_atomic_inc_x2/dec_x2, and the rebase only adds the FLAT table rows and the float64 check next to #390's code; #390's commit is carried unchanged (same patch as #390's head). agc_driver_global_atomics and agc_driver_flat_store pass on my NVIDIA machine on current main, and both fail on main's code. I'll put #390 and this one through my PPSA21564 test runs together and merge #390 first if they pass.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5985220117 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/491#issuecomment-5985220117). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-04T22:38:08Z. --- Thanks, the description now covers `flat_atomic_inc_x2`/`dec_x2`, and the rebase only adds the FLAT table rows and the float64 check next to #390's code; #390's commit is carried unchanged (same patch as #390's head). `agc_driver_global_atomics` and `agc_driver_flat_store` pass on my NVIDIA machine on current main, and both fail on main's code. I'll put #390 and this one through my PPSA21564 test runs together and merge #390 first if they pass.
github-actions[bot] commented 2026-10-04 22:40:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-04T22:40:17Z.


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
#569 core/libs/prx/libSceAgcDriver/tests/execution/FlatStore.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5985236298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/491#issuecomment-5985236298). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-04T22:40:17Z. --- <!-- 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 | |---|---|---|---| | #569 | | | `core/libs/prx/libSceAgcDriver/tests/execution/FlatStore.cpp` |
adriadam10 commented 2026-10-05 03:06:46 +00:00 (Migrated from github.com)

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


Rebased onto current main so #495 and #506 can share these exact commits (requested on #506). The #390 commit is still the same patch as #390's head, and the atomics commit is unchanged. #390 then this one merges cleanly, and agc_driver_global_atomics and agc_driver_flat_store pass on RADV and lavapipe.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5987393721 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/491#issuecomment-5987393721). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-05T03:06:46Z. --- Rebased onto current main so #495 and #506 can share these exact commits (requested on #506). The #390 commit is still the same patch as #390's head, and the atomics commit is unchanged. #390 then this one merges cleanly, and `agc_driver_global_atomics` and `agc_driver_flat_store` pass on RADV and lavapipe.
oneandonlydean commented 2026-10-05 05:03:48 +00:00 (Migrated from github.com)

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


Thanks for rebasing the three of them onto one set of commits: #495 and #506 now sit directly on 038ded6, and #491, then #495 and #506 (in either order) merge cleanly here. Your own commits are the same patches as before, and the full ctest passes with all three merged.

The step before that still conflicts for me, though: #390 itself, then this one. #390's branch is still at 673401b (based on 313de1c), and this branch carries be866e4, a separate copy of the same patch. Patch-identical copies are fine on their own, but your atomics commit then changes lines that #390 adds, so git sees two different edits of the same lines:

  • ResourceTracker.cpp: the m_info.bdaWrites = ... line (yours adds || addressInfo.access == AddressAccess::Atomic)
  • SpirvBda.hpp: the EmitBdaAtomic declaration after EmitBdaStore
  • SpirvBdaRead.cpp: EmitBdaAtomic after the end of EmitBdaStore

I checked with git merge-tree --write-tree (git 2.55): on top of main plus #390, and also #390's head against this one directly, the result is the same. The old three-argument form of git merge-tree doesn't report conflicts the same way, which may explain the clean result you saw. Merging this one first and #390 after it conflicts in the same three files.

Since this branch already carries DotDebian's commit with their authorship, I'm merging this one (then #495 and #506) and closing #390 as included here.

#569 has a fourth copy of the #390 commit (f65e21f). #569 will need a rebase onto main once this lands. After that, #569 and this one only overlap in one place: both add enum entries after FlatStoreDwordx4 in RdnaOpcode.hpp, and the fix is to keep both.

I gated this together with #495 and #506 on PPSA21564, including be866e4: no visual or FPS change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5988440224 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/491#issuecomment-5988440224). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-05T05:03:48Z. --- Thanks for rebasing the three of them onto one set of commits: #495 and #506 now sit directly on 038ded6, and #491, then #495 and #506 (in either order) merge cleanly here. Your own commits are the same patches as before, and the full ctest passes with all three merged. The step before that still conflicts for me, though: #390 itself, then this one. #390's branch is still at 673401b (based on 313de1c), and this branch carries be866e4, a separate copy of the same patch. Patch-identical copies are fine on their own, but your atomics commit then changes lines that #390 adds, so git sees two different edits of the same lines: - `ResourceTracker.cpp`: the `m_info.bdaWrites = ...` line (yours adds `|| addressInfo.access == AddressAccess::Atomic`) - `SpirvBda.hpp`: the `EmitBdaAtomic` declaration after `EmitBdaStore` - `SpirvBdaRead.cpp`: `EmitBdaAtomic` after the end of `EmitBdaStore` I checked with `git merge-tree --write-tree` (git 2.55): on top of main plus #390, and also #390's head against this one directly, the result is the same. The old three-argument form of `git merge-tree` doesn't report conflicts the same way, which may explain the clean result you saw. Merging this one first and #390 after it conflicts in the same three files. Since this branch already carries DotDebian's commit with their authorship, I'm merging this one (then #495 and #506) and closing #390 as included here. #569 has a fourth copy of the #390 commit (f65e21f). #569 will need a rebase onto main once this lands. After that, #569 and this one only overlap in one place: both add enum entries after `FlatStoreDwordx4` in `RdnaOpcode.hpp`, and the fix is to keep both. I gated this together with #495 and #506 on PPSA21564, including be866e4: 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!491
No description provided.