shader: lower v_madmk_f32 and v_madak_f32 in direct Compute and Pixel DXIL #3251

Closed
opened 2026-11-28 01:49:50 +00:00 by github-bot · 0 comments
Owner

@⁠legacy-code-archaeologist on GitHub · 2026-11-28 01:46 UTC · original

DirectCompute::float_alu() (src/gfx1013_direct_compute.inl) lowers v_mad_f32, v_mad_legacy_f32, v_mac_f32, and v_mac_legacy_f32, while v_madmk_f32 (VOP2 0x20: S0 * K + S1) and v_madak_f32 (VOP2 0x21: S0 * S1 + K) — already decoded with trailing literal support in src/gfx1013_compute_native.cpp — remain unlowered.

Lowering v_madmk_f32 and v_madak_f32 in the unfused_mad path (with input/product/addend/sum FTZ and separate fmul + fadd with no FMA contraction, matching #3005) finishes unfused f32 multiply-add coverage in both direct Compute and Pixel DXIL (#2935).

Refs #2935
Refs #3005

AI-assisted.

**@⁠legacy-code-archaeologist** on GitHub · 2026-11-28 01:46 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3249) `DirectCompute::float_alu()` (`src/gfx1013_direct_compute.inl`) lowers `v_mad_f32`, `v_mad_legacy_f32`, `v_mac_f32`, and `v_mac_legacy_f32`, while `v_madmk_f32` (`VOP2 0x20`: `S0 * K + S1`) and `v_madak_f32` (`VOP2 0x21`: `S0 * S1 + K`) — already decoded with trailing literal support in `src/gfx1013_compute_native.cpp` — remain unlowered. Lowering `v_madmk_f32` and `v_madak_f32` in the `unfused_mad` path (with input/product/addend/sum FTZ and separate `fmul` + `fadd` with no FMA contraction, matching #3005) finishes unfused f32 multiply-add coverage in both direct Compute and Pixel DXIL (#2935). Refs #2935 Refs #3005 AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:49:50 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3251
No description provided.