shader: lower v_sin_f16 and v_cos_f16 in direct Compute DXIL #3300
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#3300
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?
@legacy-code-archaeologist on GitHub · 2026-11-28 06:13 UTC · original
The direct Compute DXIL translator lowers binary16 VOP1/VOP3 transcendentals (
v_rcp_f16,v_sqrt_f16,v_exp_f16,v_rsq_f16) viabinary16_unary(), and lowersv_sin_f32/v_cos_f32with turn-based range reduction (part = a - trunc(a)), signed-zero preservation, and exact quarter-turn zeros.v_sin_f16(0x60/0x1e0) andv_cos_f16(0x61/0x1e1) are still unlowered.Plan:
v_sin_f16andv_cos_f16tobinary16_unary()insrc/gfx1013_compute_native.cpp(preserving DPP refusal, SDWA low/high half selection,MODEchecks, andD[31:16]preservation).DirectCompute::float_alu()(src/gfx1013_direct_compute.inl) using turn reduction (a - trunc(a)),-0preservation, quarter-turn exact zeros (|part| == 0.5for sin,0.25/0.75for cos),packed_half_rne,+-Inf/NaN ->0x7e00, and-0.0preservation onv_sin_f16.tests/native_sin_cos_f16_check.py(ir,controls,hardware),tests/cmake/native_sin_cos_f16.cmake, anddocs/experiments/native-sin-cos-f16.md.Refs #2935.
AI-assisted.
github-bot referenced this issue2026-11-30 04:51:55 +00:00