[PR #566] [MERGED] shader_recompiler: BUFFER_ATOMIC_SWAP Opcode #1636

Closed
opened 2026-02-27 21:13:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/566
Author: @lzardy
Created: 8/24/2024
Status: Merged
Merged: 8/26/2024
Merged by: @raphaelthegreat

Base: mainHead: main


📝 Commits (4)

  • 824d1dd shader_recompiler: BUFFER_ATOMIC_SWAP Opcode
  • 1d5cf78 clang
  • 4b054b3 Merge remote-tracking branch 'upstream/main'
  • d142708 follow 32 convention

📊 Changes

8 files changed (+15 additions, -12 deletions)

View changed files

📝 src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp (+1 -1)
📝 src/shader_recompiler/backend/spirv/emit_spirv_instructions.h (+1 -1)
📝 src/shader_recompiler/frontend/translate/vector_memory.cpp (+3 -1)
📝 src/shader_recompiler/ir/ir_emitter.cpp (+3 -3)
📝 src/shader_recompiler/ir/ir_emitter.h (+2 -2)
📝 src/shader_recompiler/ir/microinstruction.cpp (+1 -1)
📝 src/shader_recompiler/ir/opcodes.inc (+2 -2)
📝 src/shader_recompiler/ir/passes/resource_tracking_pass.cpp (+2 -1)

📄 Description

Additions:

  • Translation of BUFFER_ATOMIC_SWAP MUBUF instruction
  • BufferAtomicSwap Emitter and IR Opcode
    • Replaces nonexistent BufferAtomicExchange32

Related to issue #496, ref: BUFFER_ATOMIC_SWAP


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/566 **Author:** [@lzardy](https://github.com/lzardy) **Created:** 8/24/2024 **Status:** ✅ Merged **Merged:** 8/26/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (4) - [`824d1dd`](https://github.com/shadps4-emu/shadPS4/commit/824d1dd9d4c2fb08c507a26a779fb8b2c33ffd8f) shader_recompiler: BUFFER_ATOMIC_SWAP Opcode - [`1d5cf78`](https://github.com/shadps4-emu/shadPS4/commit/1d5cf78906de706def7b4c5e711c2df84f25d453) clang - [`4b054b3`](https://github.com/shadps4-emu/shadPS4/commit/4b054b3eabad9ddbd4747104aba4dff9ffd2c60a) Merge remote-tracking branch 'upstream/main' - [`d142708`](https://github.com/shadps4-emu/shadPS4/commit/d142708af5ac55500c0307a75c3b93a7019c6dbd) follow 32 convention ### 📊 Changes **8 files changed** (+15 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp` (+1 -1) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_instructions.h` (+1 -1) 📝 `src/shader_recompiler/frontend/translate/vector_memory.cpp` (+3 -1) 📝 `src/shader_recompiler/ir/ir_emitter.cpp` (+3 -3) 📝 `src/shader_recompiler/ir/ir_emitter.h` (+2 -2) 📝 `src/shader_recompiler/ir/microinstruction.cpp` (+1 -1) 📝 `src/shader_recompiler/ir/opcodes.inc` (+2 -2) 📝 `src/shader_recompiler/ir/passes/resource_tracking_pass.cpp` (+2 -1) </details> ### 📄 Description Additions: - Translation of `BUFFER_ATOMIC_SWAP` MUBUF instruction - BufferAtomicSwap Emitter and IR Opcode - Replaces nonexistent BufferAtomicExchange32 Related to issue #496, ref: [BUFFER_ATOMIC_SWAP](https://github.com/shadps4-emu/shadPS4/issues/496#issuecomment-2308520893) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:13:22 +03:00
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
starred/shadPS4#1636
No description provided.