shader: cover four mesh-entry lowerings that no draw observed #626
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/632"
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 Leyukaka on 2026-11-22T16:46:48Z.
Change
This closes four coverage gaps in
tools/mesh_entry_aot.py. Each was a one-line mutation of the translator that passed every WARP test onmain. Onlytests/mesh_entry_check.pychanges; the translator does not.The check gains
offset_draw(), a second draw of the existing mesh program. It folds four extra values into the exported depth:0x104(row 16), with a different decoy at byte0x4;0x404(word 257, 0.0625);buffer_load_dwordat0x408(word 258, 0.125);s_cmp_lt_u32 3, 3whose true arm would add 1.25.Geometry words 1 and 2 hold different decoys (0.875 and 1.125). The expected depth, 0.6875, is exact in binary32; each mutation pushes every vertex past the far plane. The existing draw and its wrong-primitive-index control are unchanged.
Verification
On
88eb7a1(branch on84c1506), Windows 11 build 26300.9974, MSVC 14.44.35207, Python 3.14, WARP and NVIDIA GeForce RTX 5080:Both pass (282 of 282 for the full suite).
Each mutation was applied to
tools/mesh_entry_aot.pyone at a time, and all WARP tests were run. Onmain, all of them passed for each mutation. A control that reordered the packed primitive indices was caught by six mesh WARP tests, so the run does detect a broken translator. On this branch, each mutation failsmesh_entry_draw_warp:s_cmp_lt_u32lowered as<=Checklist
AI-assisted.