[PR #428] [MERGED] shader_recompiler: BUFFER_ATOMIC & DS_* Opcodes #1554

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/428
Author: @lzardy
Created: 8/14/2024
Status: Merged
Merged: 8/17/2024
Merged by: @raphaelthegreat

Base: mainHead: main


📝 Commits (10+)

📊 Changes

11 files changed (+375 additions, -27 deletions)

View changed files

📝 src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp (+85 -0)
📝 src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp (+1 -0)
📝 src/shader_recompiler/backend/spirv/emit_spirv_instructions.h (+16 -0)
📝 src/shader_recompiler/frontend/translate/data_share.cpp (+48 -0)
📝 src/shader_recompiler/frontend/translate/translate.h (+4 -0)
📝 src/shader_recompiler/frontend/translate/vector_memory.cpp (+58 -0)
📝 src/shader_recompiler/ir/ir_emitter.cpp (+66 -0)
📝 src/shader_recompiler/ir/ir_emitter.h (+23 -0)
📝 src/shader_recompiler/ir/microinstruction.cpp (+16 -0)
📝 src/shader_recompiler/ir/opcodes.inc (+20 -0)
📝 src/shader_recompiler/ir/passes/resource_tracking_pass.cpp (+38 -27)

📄 Description

  • Emitters for BufferAtomic and SharedAtomic
  • Addition of BufferAtomic and SharedAtomic opcodes to IR
  • Translator for BUFFER_ATOMIC Opcodes (currently only BUFFER_ATOMIC_ADD is supported)
  • Translators for DS_MAX/MIN/ADD_U32 Opcodes

🔄 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/428 **Author:** [@lzardy](https://github.com/lzardy) **Created:** 8/14/2024 **Status:** ✅ Merged **Merged:** 8/17/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`1ff5c65`](https://github.com/shadps4-emu/shadPS4/commit/1ff5c6558625ceb1bc065864c5d2c25b2b644e4a) BUFFER_ATOMIC | DS_MINMAX_U32 - [`600e1bc`](https://github.com/shadps4-emu/shadPS4/commit/600e1bc88863cda8a0eb54e04ec077836fc62fb7) Merge branch 'main' of https://github.com/lzardy/shadPS4 - [`d4dab94`](https://github.com/shadps4-emu/shadPS4/commit/d4dab94acd2ff44ffd03ac4549d66f2e3e864b76) Clang Format & UNREACHABLE_MSG - [`fcf4b20`](https://github.com/shadps4-emu/shadPS4/commit/fcf4b20f30b4db1766abd800a8437411ce949b9b) clang - [`ac80849`](https://github.com/shadps4-emu/shadPS4/commit/ac80849860c842c891c06cb02a1581240f1986f4) no crash on compile - [`3f1a85c`](https://github.com/shadps4-emu/shadPS4/commit/3f1a85c96993d3df323e981fbd0ee64b58f0f6d9) clang - [`b7771fd`](https://github.com/shadps4-emu/shadPS4/commit/b7771fd58f2261a838482197fc67f0ded8dbc404) Merge branch 'shadps4-emu:main' into main - [`89e564a`](https://github.com/shadps4-emu/shadPS4/commit/89e564a400e609a78f4a4bfb1204c8945f2a0e0f) Merge remote-tracking branch 'upstream/main' - [`9de11cd`](https://github.com/shadps4-emu/shadPS4/commit/9de11cd6bb22a2fa7552ad69216817beac77636d) Shared Atomics - [`ba1ebeb`](https://github.com/shadps4-emu/shadPS4/commit/ba1ebeb8548a566fd7bd9c8ca98d32724aaba171) rebase to upstream ### 📊 Changes **11 files changed** (+375 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp` (+85 -0) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp` (+1 -0) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_instructions.h` (+16 -0) 📝 `src/shader_recompiler/frontend/translate/data_share.cpp` (+48 -0) 📝 `src/shader_recompiler/frontend/translate/translate.h` (+4 -0) 📝 `src/shader_recompiler/frontend/translate/vector_memory.cpp` (+58 -0) 📝 `src/shader_recompiler/ir/ir_emitter.cpp` (+66 -0) 📝 `src/shader_recompiler/ir/ir_emitter.h` (+23 -0) 📝 `src/shader_recompiler/ir/microinstruction.cpp` (+16 -0) 📝 `src/shader_recompiler/ir/opcodes.inc` (+20 -0) 📝 `src/shader_recompiler/ir/passes/resource_tracking_pass.cpp` (+38 -27) </details> ### 📄 Description - Emitters for BufferAtomic and SharedAtomic - Addition of BufferAtomic and SharedAtomic opcodes to IR - Translator for BUFFER_ATOMIC Opcodes (currently only BUFFER_ATOMIC_ADD is supported) - Translators for DS_MAX/MIN/ADD_U32 Opcodes --- <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:03 +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#1554
No description provided.