mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #2793] [MERGED] shader_recompiler: Implement S_FLBIT_I32_B32 and V_MUL_HI_I32. #2983
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2983
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/2793
Author: @squidbus
Created: 4/16/2025
Status: ✅ Merged
Merged: 4/16/2025
Merged by: @georgemoralis
Base:
main← Head:flbit-mul📝 Commits (1)
9274552shader_recompiler: Implement S_FLBIT_I32_B32 and V_MUL_HI_I32.📊 Changes
8 files changed (+33 additions, -12 deletions)
View changed files
📝
src/shader_recompiler/backend/spirv/emit_spirv_instructions.h(+2 -2)📝
src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp(+9 -4)📝
src/shader_recompiler/frontend/translate/scalar_alu.cpp(+13 -0)📝
src/shader_recompiler/frontend/translate/translate.h(+1 -0)📝
src/shader_recompiler/frontend/translate/vector_alu.cpp(+3 -1)📝
src/shader_recompiler/ir/ir_emitter.cpp(+2 -2)📝
src/shader_recompiler/ir/ir_emitter.h(+1 -1)📝
src/shader_recompiler/ir/opcodes.inc(+2 -2)📄 Description
S_FLBIT_I32_B32same asV_FFBH_U32, since they seem to do the same thing but for scalar vs vector.V_MUL_HI_I32. Added casting to the SPIR-V implementation to satisfy type rules forOpSMulExtended, which relies on the fact that our other integer instructions always produceU32to be valid. Refactored the IR instructions to just return thehicomponent to make this casting easier.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.