feat(shader): implement ds_condxchg32_rtn_b64 #897

Closed
CnRJay wants to merge 1 commit from upstream-pr/897 into main
CnRJay commented 2026-10-06 14:19:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-06T14:19:23Z.


The decoder threw on DS opcode 0x7e. Each dword of the 64-bit data is written, without its bit 31, only when that bit is set, and both old dwords are returned. As in the ISA pseudocode the address is masked to 0xfff8, so the pair is always 8-byte aligned. The update goes through the locked 64-bit LDS path, so the pair is replaced atomically with respect to the other 64-bit LDS atomics.

Claude-Session: https://claude.ai/code/session_014xHeTxrwQ778X8G746GTcy

What

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 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:
  • AI-assisted:
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4760076098 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/897). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-06T14:19:23Z. --- The decoder threw on DS opcode 0x7e. Each dword of the 64-bit data is written, without its bit 31, only when that bit is set, and both old dwords are returned. As in the ISA pseudocode the address is masked to 0xfff8, so the pair is always 8-byte aligned. The update goes through the locked 64-bit LDS path, so the pair is replaced atomically with respect to the other 64-bit LDS atomics. Claude-Session: https://claude.ai/code/session_014xHeTxrwQ778X8G746GTcy ### What ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [ ] 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [ ] 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) - [ ] 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: <!-- #PR, or none --> - [ ] AI-assisted: <!-- yes / no -->
github-actions[bot] commented 2026-10-06 14:20:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T14:20:57Z.


Progress report (5895ea7 → 65a7f24)

📈 GPU shader instructions: 96.57% (+0.09%, +1 implemented instructions)

✅ 1 implemented
Encoding Name
DS DS_CONDXCHG32_RTN_B64
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6018319765 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/897#issuecomment-6018319765). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-06T14:20:57Z. --- <!-- progress-report --> ### Progress report (5895ea7 → 65a7f24) 📈 **GPU shader instructions**: 96.57% (+0.09%, +1 implemented instructions) <details> <summary>✅ 1 implemented</summary> | Encoding | Name | | - | - | | DS | `DS_CONDXCHG32_RTN_B64` | </details>

Pull request closed

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!897
No description provided.