decoder: accept clamp on V_MIN3/MAX3/MED3_F16 #1116
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1116
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1116/head"
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?
@NeySlim on GitHub · 2026-10-06 19:44 UTC · original
NeySlim:fix/f16-ternary-clamp→main· +5 −1 · 1 files · 1 commits · merged 2026-10-06 21:24 UTCV_MED3_F16with the clamp bit (raw=[0xd757c006 0x02021ef2]) failed to decode withVOP3 source modifiers are not implemented, because clamp and omod were only accepted onV_FMA_F16among the f16 ternaries.WriteF16already applies the destination clamp for every f16 ternary throughApplyF32ResultModifiers, so this lets the decoder accept clamp onV_MIN3_F16,V_MAX3_F16andV_MED3_F16too (omod stays limited toV_FMA_F16).Seen in God of War Ragnarök (PPSA08332). Tested on Linux, RTX 4090.
@coderabbitai[bot] on GitHub · 2026-10-06 19:48 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
363b5c9a-a758-4308-bd74-19618121aa3e📥 Commits
Reviewing files that changed from the base of the PR and between
199d0a9d92and2cde8a1fb9.📒 Files selected for processing (1)
src/graphics/shader/recompiler/frontend/decode/VectorAluOps.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
📝 Walkthrough
Walkthrough
The decoder now recognizes V_MIN3_F16, V_MAX3_F16, and V_MED3_F16 as supporting native VOP3 result modifiers. For native VOP3 F16 ternary instructions, it no longer rejects clamp. It continues to reject nonzero omod except for V_FMA_F16.
Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
2cde8The decoder accepts clamp for the three F16 ternary instructions, and translation applies saturation to their results. No remaining concrete merge risk is identified in the reviewed change.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.