shader: lower binary32 add, sub, subrev and mul in the mesh-entry translator #1110
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1117"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T01:17:19Z.
Change
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
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T01:17:30Z.
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.