[PR #333] [CLOSED] Translate/Emit/Convert #1490

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/333
Author: @DanielSvoboda
Created: 7/28/2024
Status: Closed

Base: mainHead: Translate-Emit-Convert


📝 Commits (10+)

📊 Changes

13 files changed (+117 additions, -1 deletions)

View changed files

📝 src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp (+36 -0)
📝 src/shader_recompiler/backend/spirv/emit_spirv_instructions.h (+4 -0)
📝 src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp (+4 -0)
📝 src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp (+4 -0)
📝 src/shader_recompiler/backend/spirv/spirv_emit_context.cpp (+8 -0)
📝 src/shader_recompiler/frontend/translate/scalar_alu.cpp (+5 -0)
📝 src/shader_recompiler/frontend/translate/translate.cpp (+2 -1)
📝 src/shader_recompiler/frontend/translate/translate.h (+1 -0)
📝 src/shader_recompiler/frontend/translate/vector_alu.cpp (+16 -0)
📝 src/shader_recompiler/ir/ir_emitter.cpp (+22 -0)
📝 src/shader_recompiler/ir/opcodes.inc (+7 -0)
📝 src/shader_recompiler/ir/passes/resource_tracking_pass.cpp (+4 -0)
📝 src/video_core/amdgpu/pm4_cmds.h (+4 -0)

📄 Description

translate.cpp

  • DS_WRITE_B64
  • DS_READ_B64
  • DS_READ2_B64
  • S_MIN_U32
  • S_MAX_U32
  • V_CMP_U_F32
  • S_CMP_GT_U32
  • V_MIN3_I32
  • V_MBCNT_LO_U32_B32
  • V_MBCNT_HI_U32_B32
  • V_MAD_U32
  • V_MBCNT_U32_B32 -check

UConvert

  • ConvertU32U64
  • ConvertU64U32
  • ConvertU32x2U32
  • ConvertU32x2U64

  • EmitLoadBufferFormatF64xN
  • EmitLoadBufferFormatF64
  • EmitLoadBufferFormatF64x2
  • EmitLoadBufferFormatF64x3
  • EmitLoadBufferFormatF64x4
    68 to 68 - these are really necessary?
    some games call it 70,73,78,81... what's that?

  • GetGpuClock64 - it was not implemented, but it only has a hack with break

and some more corrections...


🔄 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/333 **Author:** [@DanielSvoboda](https://github.com/DanielSvoboda) **Created:** 7/28/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `Translate-Emit-Convert` --- ### 📝 Commits (10+) - [`96ba76d`](https://github.com/shadps4-emu/shadPS4/commit/96ba76d8598cdfa363357aa259837a781587f454) Update emit_spirv_atomic.cpp - [`5f93037`](https://github.com/shadps4-emu/shadPS4/commit/5f93037aebc125dff02bb685f5be98fc90973f92) Update ir_emitter.cpp - [`8c3eb0f`](https://github.com/shadps4-emu/shadPS4/commit/8c3eb0f4f7627a23e5d0f8529a6fcebcfc7c87a9) Update vector_memory.cpp - [`18a09f5`](https://github.com/shadps4-emu/shadPS4/commit/18a09f5a8702b94abdace75783fd5f366957732f) Update translate.h - [`112bb5c`](https://github.com/shadps4-emu/shadPS4/commit/112bb5cff44ef7465e1dd87d1cd2d4b7d130a585) Update translate.cpp - [`8cb77b3`](https://github.com/shadps4-emu/shadPS4/commit/8cb77b3fa568aafa099118931a51e485b0da2210) Update opcodes.inc - [`7a3334b`](https://github.com/shadps4-emu/shadPS4/commit/7a3334bb2d58f79fa74b55c347c5e4b5afdd1423) Update data_share.cpp - [`156c65b`](https://github.com/shadps4-emu/shadPS4/commit/156c65bfa9bed19417e1641bccbaa694a45d8290) Update emit_spirv_atomic.cpp - [`8bab2d3`](https://github.com/shadps4-emu/shadPS4/commit/8bab2d3e07a64c7b099c6145a54597745d58ac34) Update vector_memory.cpp - [`0d6fead`](https://github.com/shadps4-emu/shadPS4/commit/0d6fead8d27806c41090145214d29d859fc82324) Update translate.h ### 📊 Changes **13 files changed** (+117 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp` (+36 -0) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_instructions.h` (+4 -0) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp` (+4 -0) 📝 `src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp` (+4 -0) 📝 `src/shader_recompiler/backend/spirv/spirv_emit_context.cpp` (+8 -0) 📝 `src/shader_recompiler/frontend/translate/scalar_alu.cpp` (+5 -0) 📝 `src/shader_recompiler/frontend/translate/translate.cpp` (+2 -1) 📝 `src/shader_recompiler/frontend/translate/translate.h` (+1 -0) 📝 `src/shader_recompiler/frontend/translate/vector_alu.cpp` (+16 -0) 📝 `src/shader_recompiler/ir/ir_emitter.cpp` (+22 -0) 📝 `src/shader_recompiler/ir/opcodes.inc` (+7 -0) 📝 `src/shader_recompiler/ir/passes/resource_tracking_pass.cpp` (+4 -0) 📝 `src/video_core/amdgpu/pm4_cmds.h` (+4 -0) </details> ### 📄 Description translate.cpp - [X] DS_WRITE_B64 - [X] DS_READ_B64 - [X] DS_READ2_B64 - [X] S_MIN_U32 - [X] S_MAX_U32 - [X] V_CMP_U_F32 - [X] S_CMP_GT_U32 - [X] V_MIN3_I32 - [X] V_MBCNT_LO_U32_B32 - [X] V_MBCNT_HI_U32_B32 - [ ] V_MAD_U32 - [ ] V_MBCNT_U32_B32 -check ------------------------------------ UConvert - [X] ConvertU32U64 - [X] ConvertU64U32 - [ ] ConvertU32x2U32 - [ ] ConvertU32x2U64 ------------------------------------ - [ ] EmitLoadBufferFormatF64xN - [ ] EmitLoadBufferFormatF64 - [ ] EmitLoadBufferFormatF64x2 - [ ] EmitLoadBufferFormatF64x3 - [ ] EmitLoadBufferFormatF64x4 68 to 68 - these are really necessary? some games call it 70,73,78,81... what's that? ------------------------------------ - [X] GetGpuClock64 - it was not implemented, but it only has a hack with break and some more corrections... --- <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:47 +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#1490
No description provided.