mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #2082] [MERGED] shader_recompiler: Fix V_CMP_U_F32 #2478
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#2478
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/2082
Author: @squidbus
Created: 1/7/2025
Status: ✅ Merged
Merged: 1/7/2025
Merged by: @georgemoralis
Base:
main← Head:fix-cmp📝 Commits (1)
1b77fdeshader_recompiler: Fix V_CMP_U_F32📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/shader_recompiler/frontend/translate/vector_alu.cpp(+1 -1)📄 Description
Spotted this in CUSA28193, which has shader code like
V_CMP_U_F32(value, value) ? 0 : value. There is a typo in the AMD ISA docs for GCN;V_CMP_U_F32is supposed to beD.u = (isNaN(S0) || isNaN(S1)), notD.u = (!isNaN(S0) || !isNaN(S1)). This is supported by checking LLVM and Mesa compilers instruction usage, as well as docs for future ISA revisions listing it asD[threadId] = (isNan(S0) || isNan(S1)).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.