[PR #295] [MERGED] Implemented load_buffer_format_* conversions #1460

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/295
Author: @roamic
Created: 7/15/2024
Status: Merged
Merged: 7/16/2024
Merged by: @raphaelthegreat

Base: mainHead: buffer-format-conversion


📝 Commits (2)

  • 66435a2 Implemented load_buffer_format_* conversions
  • ab02984 clang-format insists on ugly things

📊 Changes

15 files changed (+469 additions, -85 deletions)

View changed files

📝 src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp (+195 -34)
📝 src/shader_recompiler/backend/spirv/emit_spirv_instructions.h (+4 -0)
📝 src/shader_recompiler/backend/spirv/spirv_emit_context.cpp (+2 -3)
📝 src/shader_recompiler/backend/spirv/spirv_emit_context.h (+1 -0)
📝 src/shader_recompiler/frontend/translate/translate.cpp (+22 -11)
📝 src/shader_recompiler/frontend/translate/translate.h (+1 -1)
📝 src/shader_recompiler/frontend/translate/vector_memory.cpp (+4 -2)
📝 src/shader_recompiler/ir/ir_emitter.cpp (+16 -0)
📝 src/shader_recompiler/ir/ir_emitter.h (+2 -0)
📝 src/shader_recompiler/ir/opcodes.inc (+4 -0)
📝 src/shader_recompiler/ir/passes/resource_tracking_pass.cpp (+109 -24)
📝 src/shader_recompiler/runtime_info.h (+1 -2)
📝 src/video_core/amdgpu/pixel_format.cpp (+106 -0)
📝 src/video_core/amdgpu/pixel_format.h (+2 -0)
📝 src/video_core/amdgpu/resource.h (+0 -8)

📄 Description

Buffer is still represented by u32[] or f32[]. Every fetch is a bit extract for formats with component width less than 32 bits and plain conversion for other formats.


🔄 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/295 **Author:** [@roamic](https://github.com/roamic) **Created:** 7/15/2024 **Status:** ✅ Merged **Merged:** 7/16/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `buffer-format-conversion` --- ### 📝 Commits (2) - [`66435a2`](https://github.com/shadps4-emu/shadPS4/commit/66435a2e049d82885323b13470dad72cfcb37277) Implemented load_buffer_format_* conversions - [`ab02984`](https://github.com/shadps4-emu/shadPS4/commit/ab02984e20e8476705f86d75e817e855bb162d81) clang-format insists on ugly things ### 📊 Changes **15 files changed** (+469 additions, -85 deletions) <details> <summary>View changed files</summary> 📝 `src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp` (+195 -34) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_instructions.h` (+4 -0) 📝 `src/shader_recompiler/backend/spirv/spirv_emit_context.cpp` (+2 -3) 📝 `src/shader_recompiler/backend/spirv/spirv_emit_context.h` (+1 -0) 📝 `src/shader_recompiler/frontend/translate/translate.cpp` (+22 -11) 📝 `src/shader_recompiler/frontend/translate/translate.h` (+1 -1) 📝 `src/shader_recompiler/frontend/translate/vector_memory.cpp` (+4 -2) 📝 `src/shader_recompiler/ir/ir_emitter.cpp` (+16 -0) 📝 `src/shader_recompiler/ir/ir_emitter.h` (+2 -0) 📝 `src/shader_recompiler/ir/opcodes.inc` (+4 -0) 📝 `src/shader_recompiler/ir/passes/resource_tracking_pass.cpp` (+109 -24) 📝 `src/shader_recompiler/runtime_info.h` (+1 -2) 📝 `src/video_core/amdgpu/pixel_format.cpp` (+106 -0) 📝 `src/video_core/amdgpu/pixel_format.h` (+2 -0) 📝 `src/video_core/amdgpu/resource.h` (+0 -8) </details> ### 📄 Description Buffer is still represented by u32[] or f32[]. Every fetch is a bit extract for formats with component width less than 32 bits and plain conversion for other formats. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:12:38 +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#1460
No description provided.