shader: lower v_rcp_iflag_f32 in direct Compute and Pixel DXIL #3252

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

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:55:35Z.


Direct Compute and Pixel DXIL (src/gfx1013_direct_compute.inl), SDWA profile filtering (src/gfx1013_compute_native.cpp), and ALU/opcode tables (src/gfx1013_compute_alu.inl, src/gfx1013_compute_opcodes.inl) lower v_rcp_f32 (VOP1 0x2a, VOP3 0x1aa, SDWA, DPP), while v_rcp_iflag_f32 (VOP1 0x2b, VOP3 0x1ab) is not yet handled.

Lowering v_rcp_iflag_f32 identically (1.0f / x, matching tools/pixel_aot.py and tools/startup/gfx2hlsl.py) extends direct Compute and Pixel DXIL coverage (#2935).

Refs #2935

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6657474765 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3252). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T01:55:35Z. --- Direct Compute and Pixel DXIL (`src/gfx1013_direct_compute.inl`), SDWA profile filtering (`src/gfx1013_compute_native.cpp`), and ALU/opcode tables (`src/gfx1013_compute_alu.inl`, `src/gfx1013_compute_opcodes.inl`) lower `v_rcp_f32` (`VOP1 0x2a`, `VOP3 0x1aa`, SDWA, DPP), while `v_rcp_iflag_f32` (`VOP1 0x2b`, `VOP3 0x1ab`) is not yet handled. Lowering `v_rcp_iflag_f32` identically (`1.0f / x`, matching `tools/pixel_aot.py` and `tools/startup/gfx2hlsl.py`) extends direct Compute and Pixel DXIL coverage (#2935). 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#3252
No description provided.