shader: cover seven sampled-coverage lowerings that no draw observed #617
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/623"
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:19:39Z.
Change
This closes seven coverage gaps in
tools/sampled_coverage_aot.py. Each was a mutation of the translator that passed every WARP test onmain. Onlytests/sampled_coverage_check.pychanges; the translator does not.RED_PROGRAM,red_bindings): a descriptor selector that needs a shift of 8, a threshold read from constant vector 2, and a red sample that is 1 in texture 0 and 0 in texture 1. Its other-texture control is unchanged.(-1, -0.5), on the alpha program.Expected coverage is computed in Python from the texture contents in
tests/pixel_aot_render.cpp.Verification
On
cd17e1f(branch onefecacf), Windows 11 build 26300.9974, MSVC 14.44.35207, Python 3.14, WARP and NVIDIA GeForce RTX 5080:Both pass (281 of 281 for the full suite).
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 discard comparison was caught bysampled_coverage_warp, so the run does detect a broken translator. On this branch, each mutation failssampled_coverage_warp:Checklist
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by JB2WIN on 2026-11-22T18:53:34Z.
Independent Windows run of this PR on physical hardware:
cd17e1f(PR head), built from sourcectest --preset dev --no-tests=error -R '^pixel_aot_' -V: 22/22 passed (11 hardware + 11 WARP), no skips. The debug layer reporteddebug_errors=0on all 436 draws.pixel_aot_hardwaretook 34.6 s,pixel_aot_predicate_rounding_hardware32.3 s andpixel_aot_blend_scalar_hardware33.1 s.I only ran the unmutated PR, not the mutation table.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by rwZephyr on 2026-11-22T19:05:15Z.
Independent check of the x/w component-swap control on
cd17e1f85ff611633a28ee35c2af6771d8f2a611and its parentefecacfca7266cac0623226eb7ca8d40926c3407. Windows 10 22H2 build19045.6466, MSVC19.44.35230, Windows SDK10.0.26100.0, DXC1.8.2502.11, Debug with/MTd. D3D12 debug layer unavailable on both adapters.10de:2414), driver621.24(32.0.16.2124via DXGI). Clean fixture passed.1414:008c), driver10.0.19041.5794. Clean fixture passed. No skips on either adapter.The clean PR checked 64 pixels per draw across all 13 positive draws on each adapter. The final red case, which reads the scale from
.w, covered all 64 samples as expected.For the negative control I changed
'xyzw'[index % 4]to'wyzx'[index % 4]in a temporary in-memory copy oftools/sampled_coverage_aot.py. I rantests/sampled_coverage_check.py <dxc> <offscreen_check.exe> <hardware|warp>from the parent and PR with the same renderer. The parent fixture passed with and without the mutation. The PR fixture caught the mutation twice on each adapter at the.wcase:coverage pixel=0 expected=1 actual=0, thenSample coverage mismatch(exit 1). The tracked checkout stayed clean.AI-assisted. All reported tests ran locally.