shader: preserve untouched half in VOP1 B16 writes #370
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!370
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/370/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?
@Techx3 on GitHub · 2026-08-28 22:52 UTC · original
Techx3:techx3/vop1-f16-preserve-high-half→main· +244 −90 · 8 files · 1 commits · merged 2026-08-30 15:33 UTCSummary
Why
GFX10 16-bit VOP1 operations update one 16-bit lane of VDST. Writing the complete DWORD clears the untouched upper half; a later half-precision operation can then consume zero instead of the guest value and produce incorrect infinity or NaN results.
The decoder already models this behavior for low-half VOP2 FP16 instructions. This change applies the same destination selection to every implemented VOP1 instruction with a 16-bit result.
Scope
Only destination-lane preservation is changed. Arithmetic, rounding, overflow, and SDWA behavior remain separate.
Validation