tests: record form coverage for the remaining compute_store_aot draws #2160
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2168"
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 henriazz10 on 2026-11-25T02:35:36Z.
Record
FORM_COVERAGE_RECORDin the remaining 18compute_store_aot_*_${adapter}CTest entries and their underlying draw functions sotools/form_coverage.pycounts the gfx1013 forms they already prove.Tests updated (18)
compute_store_aot_${adapter}(tests/compute_store_check.pydraw)compute_store_aot_scratch_base_${adapter}(tests/compute_store_check.pydraw-scratch-base-write)compute_store_aot_dpp_${adapter}(tests/compute_store_check.pydraw-dpp)compute_store_aot_readlane_${adapter}(tests/compute_store_check.pydraw-readlane)compute_store_aot_guard_read_${adapter}(tests/compute_store_check.pydraw-guard-read)compute_store_aot_f32_${adapter}(tests/compute_store_check.pydraw-f32)compute_store_aot_ff1_scalar_${adapter}(tests/compute_store_check.pydraw-ff1-scalar)compute_store_aot_alu_minmax3_${adapter}(tests/compute_alu_minmax3_check.pydraw)compute_store_aot_alu_med3_${adapter}(tests/compute_alu_med3_check.pydraw)compute_store_aot_alu_xor3_${adapter}(tests/compute_alu_xor3_check.pydraw)compute_store_aot_alu_bcnt_${adapter}(tests/compute_alu_bcnt_check.pydraw)compute_store_aot_alu_mad_i24_${adapter}(tests/compute_alu_mad_i24_check.pydraw)compute_store_aot_alu_cvt_pk_u8_${adapter}(tests/compute_alu_cvt_pk_u8_check.pydraw)compute_store_aot_salu_absdiff_${adapter}(tests/compute_salu_absdiff_check.pydraw)compute_store_aot_gfx1013_image_store_${adapter}(tests/compute_mimg_float_store_check.py--draw)compute_store_aot_lane_mask_${adapter}(tests/compute_lane_mask_check.pydraw)compute_store_aot_mubuf_store_format_xyz_${adapter}(tests/compute_store_check.pydraw-mubuf-format-store-xyz)compute_store_aot_descriptor_store_format_${adapter}(tests/compute_store_check.pydraw-descriptor-store-format)Per-draw verification (WARP and NVIDIA GeForce RTX 5080)
All 18 draws ran sequentially in the foreground with
FORM_COVERAGE_RECORDset, exited 0, and wrote nonempty opcode records:Newly covered gfx1013 forms (+6: 1253 -> 1259 of 1968)
MUBUFbuffer_store_format_d16_xyzSOP1s_and_saveexec_b32SOPPs_waitcnt_depctrVOP3v_cvt_pk_u8_f32VOP3v_mad_i32_i24VOP3v_readlane_b32Checks
tests/form_coverage_check.py: exit 0tests/docs_links_check.py: exit 0tests/bidi_controls_check.py: exit 0controls()ontests/compute_store_check.pyand all 9 standalone test scripts: exit 0tests/compute_store_check.py binary):binary_exit=0AI-assisted. Gemini 4 Hydrogen (Antigravity CLI) wrote the change and ran the checks; Claude Code reviewed it.
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T03:16:27Z.
Review: COMMENTED
Review of head
53ef5d8dda(tests + CMake only, no product code).Logic: each touched check writes the first word of every accepted program line to the file named by FORM_COVERAGE_RECORD, and CMake sets that variable per test, so tools/form_coverage.py can count these draws. Matches the existing pixel_* record convention. No ISA semantics change. Clean-room: no new reference material. No competing open PR covers these draws (#1566 is unrelated LDS lowering).
Findings: P1 0, P2 0.
.LBB0_2:is written as an "opcode". The other checks filter lines ending in:. It shows up as a harmless entry in fixture_forms_not_in_reference. Suggest addingand not line.strip().endswith(":").Verification (local Linux, in the PR worktree):
python3 tests/docs_links_check.py-> pass (401 links)python3 tests/bidi_controls_check.py-> passgit diff --check origin/main...HEAD-> cleanpython3 -m py_compile tests/compute_*_check.py-> OKsplit()[0]->split()[1]) on compute_alu_bcnt_check.LINES: records change from mnemonics to operands (s0,,vmcnt(0)). Note: this was checked offline against the program text; the draw tests need a GPU renderer, so no Linux test run flipped to failing.python3 tests/form_coverage_check.pycould not run on Linux (missing iced_x86 module).Verification (Win2025 via the pipeline, Debug and Release -O2): the 36 compute_store_aot_* warp/hardware tests selected for the touched checks -> 36/36 passed. GitHub CI: Build and test on Windows = SUCCESS, Linux checks = SUCCESS, gfx1013 fixtures = SUCCESS.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T04:28:01Z.
Review: COMMENTED
Review of head
d5709fc96dScope: the PR adds a
FORM_COVERAGE_RECORDwriter to the remaining compute_store_aot draws and wiresENVIRONMENTin CMakeLists.txt; the new head also raises the timeout ofcompute_store_aot_guard_read_hardwareto 180 s.Findings
compute_alu_bcnt_check.py,compute_alu_cvt_pk_u8_check.py,compute_alu_mad_i24_check.py,compute_alu_med3_check.py,compute_alu_minmax3_check.py,compute_alu_xor3_check.py,compute_salu_absdiff_check.py, plus theff1_scalaranddppwriters incompute_store_check.py) useline.split()[0] for line in LINES if line.strip()without theendswith(":")filter the other writers use. Labels are recorded as forms: the bcnt record contains.LBB0_2:. Coverage counts are unaffected (it only lands infixture_forms_not_in_reference), but the filter should be the same everywhere.Win2025 (Debug, scoped to the touched tests, 141 tests): 140 pass, 1 fails:
compute_store_aot_mac_f32_hardware,AssertionError: mac_f32: mutation 'fused mad() instead of unfused multiply+add' escaped detection. Not caused by this PR: this PR does not touchmac_f32_drawor its mutation list (the mutation is already on main attests/compute_store_check.py:3351), and the assertion fires before any record code runs. It is the same equivalent-mutant failure already reported on #2164 (precisestops the fused form on the Basic Render Driver). It needs its own fix on main. Release /O2 was not reached (dev failed).Linux, run locally on this head
python3 tests/docs_links_check.py: pass (18 files, 401 links)python3 tests/bidi_controls_check.py: passgit diff --check origin/main...HEAD: cleanpython3 -m py_compileon every touched .py: passcompute_alu_bcnt_check.py, run through a stubbed renderer: baseline record gives 17 covered gfx1013 forms; droppingv_bcnt_u32_b32from the record gives 16; skipping the record write fails with a missing file. Both mutants are detected; the checkout was restored afterwards.Clean-room: only the repo's own fixtures and tools are used. CI
Build and test on Windowswas still pending when this was written.AI-assisted; commands listed were executed locally.