[PR #2856] [MERGED] Implement MUBUF instructions for shorts/bytes #3034

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2856
Author: @baggins183
Created: 4/27/2025
Status: Merged
Merged: 7/18/2025
Merged by: @georgemoralis

Base: mainHead: subword_load_store


📝 Commits (7)

  • d7a4555 implement loads/store instructions for types smaller than dwords
  • efc6262 initialize s16/s8 types
  • 97f7043 set profile for int8/16/64
  • 5b6f9f7 also need to zero extend u8/u16 to u32 result
  • e51d31b document unrelated bugs with atomic fmin/max
  • a608b96 remove profile checks and simple emit for added opcodes
  • 3b674fe Merge branch 'main' into subword_load_store

📊 Changes

11 files changed (+120 additions, -58 deletions)

View changed files

📝 src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp (+2 -0)
📝 src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp (+18 -50)
📝 src/shader_recompiler/backend/spirv/emit_spirv_instructions.h (+2 -0)
📝 src/shader_recompiler/backend/spirv/spirv_emit_context.cpp (+2 -0)
📝 src/shader_recompiler/frontend/translate/translate.h (+4 -3)
📝 src/shader_recompiler/frontend/translate/vector_memory.cpp (+53 -5)
📝 src/shader_recompiler/ir/ir_emitter.cpp (+18 -0)
📝 src/shader_recompiler/ir/ir_emitter.h (+1 -0)
📝 src/shader_recompiler/ir/opcodes.inc (+2 -0)
📝 src/video_core/renderer_vulkan/vk_instance.h (+15 -0)
📝 src/video_core/renderer_vulkan/vk_pipeline_cache.cpp (+3 -0)

📄 Description

No description provided


🔄 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/2856 **Author:** [@baggins183](https://github.com/baggins183) **Created:** 4/27/2025 **Status:** ✅ Merged **Merged:** 7/18/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `subword_load_store` --- ### 📝 Commits (7) - [`d7a4555`](https://github.com/shadps4-emu/shadPS4/commit/d7a45554ad1a671dd2ef9cb93a205a46a82ac633) implement loads/store instructions for types smaller than dwords - [`efc6262`](https://github.com/shadps4-emu/shadPS4/commit/efc6262c9e47d1309eca788892275c91afd69aca) initialize s16/s8 types - [`97f7043`](https://github.com/shadps4-emu/shadPS4/commit/97f7043330ae18cebc25a89ceb57aa43aebfd06c) set profile for int8/16/64 - [`5b6f9f7`](https://github.com/shadps4-emu/shadPS4/commit/5b6f9f78202e1f2f0ed8b162d49a28e9b79a8883) also need to zero extend u8/u16 to u32 result - [`e51d31b`](https://github.com/shadps4-emu/shadPS4/commit/e51d31b359559849ed8974273295100549ae42d1) document unrelated bugs with atomic fmin/max - [`a608b96`](https://github.com/shadps4-emu/shadPS4/commit/a608b962a4c87f504cc923895e6a06c528b30d8b) remove profile checks and simple emit for added opcodes - [`3b674fe`](https://github.com/shadps4-emu/shadPS4/commit/3b674fed32a22d579ea140f7c0c5f9a18c398f9c) Merge branch 'main' into subword_load_store ### 📊 Changes **11 files changed** (+120 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp` (+2 -0) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp` (+18 -50) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_instructions.h` (+2 -0) 📝 `src/shader_recompiler/backend/spirv/spirv_emit_context.cpp` (+2 -0) 📝 `src/shader_recompiler/frontend/translate/translate.h` (+4 -3) 📝 `src/shader_recompiler/frontend/translate/vector_memory.cpp` (+53 -5) 📝 `src/shader_recompiler/ir/ir_emitter.cpp` (+18 -0) 📝 `src/shader_recompiler/ir/ir_emitter.h` (+1 -0) 📝 `src/shader_recompiler/ir/opcodes.inc` (+2 -0) 📝 `src/video_core/renderer_vulkan/vk_instance.h` (+15 -0) 📝 `src/video_core/renderer_vulkan/vk_pipeline_cache.cpp` (+3 -0) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:02:11 +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#3034
No description provided.