mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 07:46:01 +03:00
[PR #613] [MERGED] shader_recompiler: constant propagation bitwise operations + S_CMPK_EQ_U32 fix #1666
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#1666
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/613
Author: @0xsegf4ult
Created: 8/27/2024
Status: ✅ Merged
Merged: 8/28/2024
Merged by: @raphaelthegreat
Base:
main← Head:gcn_opcodes📝 Commits (7)
ad52474rebase on main branch impl of V_LSHL_B64de7f6e1remove V_LSHR_B6464bacb2fix S_CMPK_EQ_u32b0d300bfix conflicts0fda82cfix broken merge19c3569remove duplicate cases01931ccremove duplicate declaration📊 Changes
7 files changed (+29 additions, -4 deletions)
View changed files
📝
src/shader_recompiler/backend/spirv/emit_spirv_instructions.h(+1 -0)📝
src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp(+7 -0)📝
src/shader_recompiler/frontend/translate/scalar_alu.cpp(+1 -1)📝
src/shader_recompiler/ir/ir_emitter.cpp(+12 -2)📝
src/shader_recompiler/ir/ir_emitter.h(+1 -1)📝
src/shader_recompiler/ir/opcodes.inc(+1 -0)📝
src/shader_recompiler/ir/passes/constant_propagation_pass.cpp(+6 -0)📄 Description
Currently S_CMPK_EQ_U32 uses src[0] which is not defined for a SOPK instruction and this code always fails an assertion as the operand field is left undefined.
I moved this to inst.dst[0] as specified in the ISA documentation and in line with how the decoder parses SOPK instructions
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.