shader: cover six mesh-entry lowerings that no draw observed #697
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/703"
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-22T21:19:36Z.
Change
This closes six coverage gaps in
tools/mesh_entry_aot.py. Each was a one-line mutation that passed every WARP test onmain. Onlytests/mesh_entry_check.pyandtests/mesh_indexed_check.pychange; the translator does not.SV_IsFrontFace(green only when back-facing)DepthClipEnableis set)0x200600(index 512) must be rejectedexp pos0 ...withoutdonemust be rejectedThe harness keeps
CullMode = NONE, so winding is only visible throughSV_IsFrontFace. The existing full-coverage check of the entry draw is kept with the new pixel shader. No pixel centre of the W = 2 triangle lies on an edge.Not covered: a container count limit of 128 instead of 256. It only shows in the LLVM binary mode, which this machine does not run.
Verification
On
e20a8df(branch ona3cf689), Windows 11 build 26300.9974, MSVC 14.44.35207, Python 3.14, WARP:All 297 tests pass.
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 read every attribute component from lane 0 was caught bymesh_attribute_draw_warp,mesh_textured_draw_warpandcompute_mesh_texture_warp, so the run does detect a broken translator. On this branch, each of the six mutations failsmesh_entry_draw_warpormesh_indexed_draw_warp.Checklist
AI-assisted.