Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Ran it, checked the helper arithmetic independently, and found one term the fixture does not pinWindows 11 build 26300.9974, device-free: out/pe-env/Scripts/python.exe -B tests/startup_gfx2hlsl_mul_hi_u32_check.py
gfx2hlsl mul_hi_u32: all checks passed exit 0The helper is correctI evaluated the emitted body as HLSL Including the carry case that halfword decompositions usually get wrong: Mutations
The survivor is a real arithmetic change, not an equivalent mutant: Both differ from the reference by exactly the carry the term supplies. The fixture asserts that the helper is present and that it Suggested check, in the style of the other value-level tests in
|
The new helper spelled its halfword shifts as '>> 16)', which the v_cvt_f32_ubyte2 mutation control also matches, so the control saw 11 hits instead of 4. Spell the shifts as '>> 16u)'.
|
CI fix pushed at a0830b0: the new Verification:
AI-assisted; commands listed were executed locally. |
Part of #1792
What this unblocks:
v_mul_hi_u32(register and literal forms) lowers instead of being refused, removing 1 of the loading-screen shader refusals under #870.Changes:
tools/startup/gfx2hlsl.py:v_mul_hi_u32lowers to a preamble helpermul_hi_u32built from halfword products (no 64-bit multiply in these stages; a plain*would give the low half).tests/startup_gfx2hlsl_mul_hi_u32_check.py(+ cteststartup_gfx2hlsl_mul_hi_u32): synthetic VOP3A words (opcode0x16a) are decoded, then translated. It checks the register form, the literal form0xaaaaaaab, thatv_mul_lo_u32is unchanged, and that the helper is in the preamble with halfword products.docs/experiments.md: entry added.Not in this slice:
v_mul_hi_i32, the 24-bit_u24forms, DXC/draw results.Verification:
Run on Linux. Not yet run on Win2025: ctest
-R startup_gfx2hlsl_mul_hi_u32and an FXC/DXC compile of the lowered output.AI-assisted; commands listed were executed locally.