shader: lower binary32 add, sub, subrev and mul in the mesh-entry translator #1117
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1117
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1117/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@tedin7 on GitHub · 2026-11-24 01:17 UTC · original
tedin7:x2w-mesh-entry-f32-sub-mul-add64→main· +186 −1 · 4 files · 1 commits · merged 2026-11-24 01:48 UTCChange
The mesh-entry translator now lowers the per-lane binary32 encodings
v_add_f32_e64and the_e32and_e64forms ofv_sub_f32,v_subrev_f32andv_mul_f32. They becomeprecise floatexpressions (subrev is source 1 minus source 0; the multiply is IEEE, not the legacy zero-wins form). Source and output modifiers are still refused. The code is separate from the scalar and vector u32 work in #1080.AI-assisted.
Verification
python3 -B tests/mesh_entry_check.py binary llvm-mc-19 llvm-objcopy-19 /usr/lib/llvm-19/lib/libLLVM-19.so: exit 0 on this branch (LLVM 19 locally; CI runs LLVM 15).tools/mesh_entry_aot.pyfrom origin/main: fails (the translator rejects the new opcodes).python3 -B tests/rdna2_tools_check.py: OK (skipped=10).mesh_entry_float_draw_<adapter>(draw-float) is written for Windows and was not run here (no D3D12 adapter on this Linux host). Its control flow was exercised only with stubbeddxcand renderer.Evidence and follow-up
Mesh export trace mismatchfor a depth one ulp off and for each sibling opcode.Checklist
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 01:17 UTC · original · edited 2026-11-24 01:20 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
9866ee6ℹ️ About Codex in GitHub
Your 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.