[PR #814] [MERGED] shader_recompiler: Implement data share append and consume operations #1787

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/814
Author: @raphaelthegreat
Created: 9/6/2024
Status: Merged
Merged: 9/6/2024
Merged by: @raphaelthegreat

Base: mainHead: swap


📝 Commits (10+)

  • 61cde67 shader_recompiler: Add more format swap modes
  • 743a290 texture_cache: Handle stencil texture reads
  • 0f492a3 emulator: Support loading font library
  • 1989c19 readme: Add thanks section
  • d2ff0a8 shader_recompiler: Constant buffers as integers
  • 122a87d shader_recompiler: Typed buffers as integers
  • fd6611e shader_recompiler: Separate thread bit scalars
  • 75aaa64 shader_recompiler: Implement data append/consume operations
  • cac23f7 clang format
  • f4966ba buffer_cache: Simplify invalidation scheme

📊 Changes

34 files changed (+506 additions, -266 deletions)

View changed files

📝 README.md (+14 -0)
📝 src/emulator.cpp (+3 -2)
📝 src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp (+16 -0)
📝 src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp (+19 -31)
📝 src/shader_recompiler/backend/spirv/emit_spirv_instructions.h (+10 -18)
📝 src/shader_recompiler/frontend/translate/data_share.cpp (+18 -0)
📝 src/shader_recompiler/frontend/translate/export.cpp (+6 -0)
📝 src/shader_recompiler/frontend/translate/scalar_alu.cpp (+10 -6)
📝 src/shader_recompiler/frontend/translate/translate.h (+5 -3)
📝 src/shader_recompiler/frontend/translate/vector_alu.cpp (+26 -9)
📝 src/shader_recompiler/frontend/translate/vector_memory.cpp (+17 -16)
📝 src/shader_recompiler/info.h (+2 -1)
📝 src/shader_recompiler/ir/basic_block.h (+1 -0)
📝 src/shader_recompiler/ir/ir_emitter.cpp (+18 -11)
📝 src/shader_recompiler/ir/ir_emitter.h (+3 -1)
📝 src/shader_recompiler/ir/microinstruction.cpp (+6 -5)
📝 src/shader_recompiler/ir/opcodes.inc (+13 -14)
📝 src/shader_recompiler/ir/passes/resource_tracking_pass.cpp (+73 -24)
📝 src/shader_recompiler/ir/passes/ssa_rewrite_pass.cpp (+34 -12)
📝 src/video_core/amdgpu/liverpool.cpp (+11 -0)

...and 14 more files

📄 Description

Allows Bloodborne to boot on main without any hacks. Also fixes Gravity Rush remastered crashing before title screen (though still wont go in-game due to a problematic shader).

Also implements remaining MRT swap modes so that crash should go away


🔄 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/814 **Author:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Created:** 9/6/2024 **Status:** ✅ Merged **Merged:** 9/6/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `swap` --- ### 📝 Commits (10+) - [`61cde67`](https://github.com/shadps4-emu/shadPS4/commit/61cde67012638f77dc3c8aa736d38734e686c492) shader_recompiler: Add more format swap modes - [`743a290`](https://github.com/shadps4-emu/shadPS4/commit/743a290c6a507a471f3796406fe55cc4ea508786) texture_cache: Handle stencil texture reads - [`0f492a3`](https://github.com/shadps4-emu/shadPS4/commit/0f492a3108f44a5c2709f19b7db13ca92c6579e7) emulator: Support loading font library - [`1989c19`](https://github.com/shadps4-emu/shadPS4/commit/1989c197351fcaacbdc4fc428c9f3082af2111f4) readme: Add thanks section - [`d2ff0a8`](https://github.com/shadps4-emu/shadPS4/commit/d2ff0a8a2a0266c8e45612b68060bd473eb50260) shader_recompiler: Constant buffers as integers - [`122a87d`](https://github.com/shadps4-emu/shadPS4/commit/122a87dd2310329e770915b797fba11da1117224) shader_recompiler: Typed buffers as integers - [`fd6611e`](https://github.com/shadps4-emu/shadPS4/commit/fd6611ed54749e0f1d2618a1d8a009d70417e0f0) shader_recompiler: Separate thread bit scalars - [`75aaa64`](https://github.com/shadps4-emu/shadPS4/commit/75aaa6435b762c015324a7aa305e8ea481ee6923) shader_recompiler: Implement data append/consume operations - [`cac23f7`](https://github.com/shadps4-emu/shadPS4/commit/cac23f7441515e21ffdb5456e0edffa7154a44a8) clang format - [`f4966ba`](https://github.com/shadps4-emu/shadPS4/commit/f4966ba4afb8f0369e4edf1588527dff0937f980) buffer_cache: Simplify invalidation scheme ### 📊 Changes **34 files changed** (+506 additions, -266 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+14 -0) 📝 `src/emulator.cpp` (+3 -2) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp` (+16 -0) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp` (+19 -31) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_instructions.h` (+10 -18) 📝 `src/shader_recompiler/frontend/translate/data_share.cpp` (+18 -0) 📝 `src/shader_recompiler/frontend/translate/export.cpp` (+6 -0) 📝 `src/shader_recompiler/frontend/translate/scalar_alu.cpp` (+10 -6) 📝 `src/shader_recompiler/frontend/translate/translate.h` (+5 -3) 📝 `src/shader_recompiler/frontend/translate/vector_alu.cpp` (+26 -9) 📝 `src/shader_recompiler/frontend/translate/vector_memory.cpp` (+17 -16) 📝 `src/shader_recompiler/info.h` (+2 -1) 📝 `src/shader_recompiler/ir/basic_block.h` (+1 -0) 📝 `src/shader_recompiler/ir/ir_emitter.cpp` (+18 -11) 📝 `src/shader_recompiler/ir/ir_emitter.h` (+3 -1) 📝 `src/shader_recompiler/ir/microinstruction.cpp` (+6 -5) 📝 `src/shader_recompiler/ir/opcodes.inc` (+13 -14) 📝 `src/shader_recompiler/ir/passes/resource_tracking_pass.cpp` (+73 -24) 📝 `src/shader_recompiler/ir/passes/ssa_rewrite_pass.cpp` (+34 -12) 📝 `src/video_core/amdgpu/liverpool.cpp` (+11 -0) _...and 14 more files_ </details> ### 📄 Description Allows Bloodborne to boot on main without any hacks. Also fixes Gravity Rush remastered crashing before title screen (though still wont go in-game due to a problematic shader). Also implements remaining MRT swap modes so that crash should go away --- <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:57 +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#1787
No description provided.