shader: lower v_dot8_i32_i4 and v_dot8_u32_u4 in the direct compute path #3077

Closed
opened 2026-11-27 14:30:24 +00:00 by github-bot · 0 comments
Owner

@⁠R0D4X on GitHub · 2026-11-27 14:26 UTC · original

Refs #2935.

The direct C++ compute frontend (src/gfx1013_direct_compute.inl) already lowers VOP3P v_dot2_{i32_i16,u32_u16} and v_dot4_{i32_i8,u32_u8}, and the ISA table (src/gfx1013_isa_tables.inl) already decodes v_dot8_i32_i4 (0x18) and v_dot8_u32_u4 (0x19), but the direct compute path does not lower the two 4-bit packed dot products yet.

I am taking this slice.

Planned scope

  • Lower VOP3P v_dot8_i32_i4 and v_dot8_u32_u4 in src/gfx1013_direct_compute.inl (wrapping and clamp accumulator saturation, enforcing canonical VOP3P OP_SEL/OP_SEL_HI and zero NEG_LO/NEG_HI).
  • Add tests/native_packed_dot8_check.py, tests/cmake/native_packed_dot8.cmake, and docs/experiments/native-packed-dot8.md covering DXIL controls, modifier refusals, EXEC masking, and native_store_replay hardware readback with no-clamp negative controls.
**@⁠R0D4X** on GitHub · 2026-11-27 14:26 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3077) Refs #2935. The direct C++ compute frontend (`src/gfx1013_direct_compute.inl`) already lowers VOP3P `v_dot2_{i32_i16,u32_u16}` and `v_dot4_{i32_i8,u32_u8}`, and the ISA table (`src/gfx1013_isa_tables.inl`) already decodes `v_dot8_i32_i4` (`0x18`) and `v_dot8_u32_u4` (`0x19`), but the direct compute path does not lower the two 4-bit packed dot products yet. I am taking this slice. ### Planned scope - Lower VOP3P `v_dot8_i32_i4` and `v_dot8_u32_u4` in `src/gfx1013_direct_compute.inl` (wrapping and `clamp` accumulator saturation, enforcing canonical VOP3P `OP_SEL`/`OP_SEL_HI` and zero `NEG_LO`/`NEG_HI`). - Add `tests/native_packed_dot8_check.py`, `tests/cmake/native_packed_dot8.cmake`, and `docs/experiments/native-packed-dot8.md` covering DXIL controls, modifier refusals, `EXEC` masking, and `native_store_replay` hardware readback with no-clamp negative controls.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 14:30:24 +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#3077
No description provided.