shader: reject seven sampled-coverage programs the guards should refuse #708
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/714"
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-22T22:18:43Z.
Change
This closes seven coverage gaps in the guards of
tools/sampled_coverage_aot.py. Each was a one-line mutation that passed every WARP test onmain. Onlytests/sampled_coverage_check.pychanges (36 added lines); the translator does not.Seven rejection controls, each rejected by the intended guard and by no earlier one:
s_waitcnt lgkmcnt(0)s_waitcnt vmcnt(0)attr0.xandattr0.yswapped in the interpolationuv.x,uv.yin orderSample(samp, uv)would be wrongselector_byte=Falseint, not abools_load_dwordx8s_wqm_b64expanded froms[52:53]instead of the saved maskNot covered: the CLI output-suffix check. It only runs in the LLVM binary mode, which this machine does not run.
Verification
On
3c20938(branch on6f48648), Windows 11 build 26300.9974, MSVC 14.44.35207, Python 3.14, WARP:All 303 tests pass.
Each mutation was applied to
tools/sampled_coverage_aot.pyone at a time, and all WARP tests were run. Onmain, all of them passed for each mutation. A control that inverted the coordinate-order check was caught bysampled_coverage_warp, so the run does detect a broken translator. On this branch, each of the seven mutations failssampled_coverage_warp.Checklist
AI-assisted.