shader: lower the six packed 16-bit min/max forms in direct DXIL #3069
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#3069
Loading…
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?
@RonLogic on GitHub · 2026-11-27 13:49 UTC · original
Refs #2935 and #2022. The direct frontend refuses the canonical
v_pk_min/max_{i16,u16,f16}encodings even though the startup HLSL frontend already handles the family. Synthetic wave32 inputs reachdirect ALU operand modifiersat+0x30with the current native compiler. I’ll take the direct DXIL slice.Use the two independent half selectors for each source, write both halves under the original lane mask, and preserve numeric ordering for signed, unsigned and binary16 pairs. Check the float cases against the repository’s existing raw-bit contract for signed zero, subnormals and NaNs. Reject unsupported encodings and float modes. Verify synthetic Compute on a wave32 adapter and Pixel on WARP and RTX, with a selector or result-order control.
Cross-project reference: shadPS4’s public packed FP16 PR, merge
34b35b526e3bfbb8a6f22c11035cb051174ac6f1, observed 2026-11-27 (GPL-2.0, behavioral reference only). Instruction and selector sources are the AMD RDNA 2 ISA and AMD LLVM syntax guide. The DXIL implementation and fixture are written here.