shader: lower remaining SOP1 *_saveexec_* and *_wrexec_* ops in direct Compute DXIL #3296

Closed
opened 2026-11-28 05:56:56 +00:00 by legacy-code-archaeologist · 0 comments
legacy-code-archaeologist commented 2026-11-28 05:56:56 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T05:56:56Z.


The direct Compute DXIL translator lowers s_and_saveexec_b32, s_or_saveexec_b32, and s_andn2_wrexec_b32 for wave32 and the *_saveexec_b64 + s_andn2_wrexec_b64 family for wave64, leaving the remaining 9 wave32 and 3 wave64 SOP1 EXEC-mask instructions unlowered:

  • Wave32 (SOP1): s_xor_saveexec_b32 (0x3e), s_andn2_saveexec_b32 (0x3f), s_orn2_saveexec_b32 (0x40), s_nand_saveexec_b32 (0x41), s_nor_saveexec_b32 (0x42), s_xnor_saveexec_b32 (0x43), s_andn1_saveexec_b32 (0x44), s_orn1_saveexec_b32 (0x45), and s_andn1_wrexec_b32 (0x46)
  • Wave64 (SOP1): s_andn1_saveexec_b64 (0x37), s_orn1_saveexec_b64 (0x38), and s_andn1_wrexec_b64 (0x39)

In addition, uses_scc_after() in src/gfx1013_direct_compute.inl and transfer() in src/gfx1013_compute_native.cpp should treat all of these (plus the remaining s_*_b64 mask ops) consistently as numeric SCC/EXEC definitions.

Refs #2935.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6660038906 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3296). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T05:56:56Z. --- The direct Compute DXIL translator lowers `s_and_saveexec_b32`, `s_or_saveexec_b32`, and `s_andn2_wrexec_b32` for wave32 and the `*_saveexec_b64` + `s_andn2_wrexec_b64` family for wave64, leaving the remaining 9 wave32 and 3 wave64 SOP1 EXEC-mask instructions unlowered: - **Wave32 (`SOP1`):** `s_xor_saveexec_b32` (`0x3e`), `s_andn2_saveexec_b32` (`0x3f`), `s_orn2_saveexec_b32` (`0x40`), `s_nand_saveexec_b32` (`0x41`), `s_nor_saveexec_b32` (`0x42`), `s_xnor_saveexec_b32` (`0x43`), `s_andn1_saveexec_b32` (`0x44`), `s_orn1_saveexec_b32` (`0x45`), and `s_andn1_wrexec_b32` (`0x46`) - **Wave64 (`SOP1`):** `s_andn1_saveexec_b64` (`0x37`), `s_orn1_saveexec_b64` (`0x38`), and `s_andn1_wrexec_b64` (`0x39`) In addition, `uses_scc_after()` in `src/gfx1013_direct_compute.inl` and `transfer()` in `src/gfx1013_compute_native.cpp` should treat all of these (plus the remaining `s_*_b64` mask ops) consistently as numeric SCC/EXEC definitions. Refs #2935. AI-assisted.
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#3296
No description provided.