shader: cover eight depth-mask lowerings that no draw observed #624
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/630"
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:31:39Z.
Change
This closes eight coverage gaps in
tools/depth_mask_aot.py. Each was a one-line mutation of the translator that passed every WARP test onmain. Onlytests/depth_mask_check.pychanges; the translator does not.The check gains an extended program next to the existing one (which is unchanged):
0x18);s_add_i32and masks the result withs_and_b32 31;The extended program runs the existing positive draws and swap controls, plus thresholds of 62/64 and 63/64 at the top of its noise range. The expected pictures come from the check's own Python model.
Verification
On
91bc890(branch on2f1f832), 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/depth_mask_aot.pyone at a time, and all WARP tests were run. Onmain, all of them passed for each mutation. A control that inverted the depth comparison was caught bydepth_mask_draw_warp, so the run does detect a broken translator. On this branch, each mutation failsdepth_mask_draw_warp:offset // 32s_add_i32lowered as a subtractions_and_b32lowered as an OR<=Two limits remain: the maximum noise is 63/64, so removing the fract cap entirely would still pass, and the
& 31mask is a no-op for seed 7.Checklist
AI-assisted.