Repository navigation
Track front-face entry-lane coverage through self-WQM - #6424
kacper-serewis wants to merge 3 commits into
Conversation
|
Verified against main 1cc6e3c: merges cleanly; test_ps_front_face_census.py runs Ran 8 (re-run) green, and mutation probes of preserves_entry_coverage (always-preserve / never-preserve) fail 7 and 1 tests respectively, so the suite genuinely discriminates despite its sub-10 ms runtime. Fixtures are hand-built DXBC stubs, stdlib-only, python -I clean, no game data. Checks pending. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Tested 561550d merged with main 1ce6eb5 on Linux/Python 3.12.16: concern New tool tools/ps_front_face_census.py and tests/test_ps_front_face_census.py.
Concern: I did not run the tool on a real shader corpus. |
Claimed PS-FRONT-FACE-ENTRY-LANES on board #6214.
Depends on: #6130 (head 4b04a19). Review the incremental change in 561550d. #6307 concerns the translator and is independent.
The first-use census tracks front-face values in lanes active at entry. An exact 64-bit self-WQM includes every lane in the incoming EXEC and can add helpers within occupied quads. Empty quads stay inactive. After an ordinary full-dword write under this guarantee, restoring the mask or activating additional lanes cannot recover a tracked value. A newly activated lane outside the entry set can still contain its own initial bits. Full-wave execution and the contents of inactive lanes remain unmeasured.
Both direct branch edges retain their own coverage state at joins. A narrow, an untracked restore, or an unsupported EXEC change leaves coverage unknown, including through a subsequent self-WQM.
Reran baseline and head over 26,503 indexed private stems on Windows (AMD Ryzen 5 9600X, CPU only, no GPU/driver or raw package used). Both examined all 1,984 declarations across 12,101 PS, with zero skipped. The 264 resolved readers retained the same read kinds. Resolved without an entry-value read rose from 5 to 510, and unresolved fell from 1,715 to 1,210. Possible lane-partial writes fell from 707 to 44. Once coverage is established, the destination opcode must still be classified: unclassified destinations rose from 8 to 158. Unknown flow/addressing stayed at 1,008. Reasons can overlap within one stem.
All eight synthetic census tests passed. A two-quad oracle enumerates all 256 entry masks and checks surviving lane values after a write, with and without prior narrowing. Fixtures exercise restore, later activation, an unknown path at a join, other WQM sources/widths and secondary EXEC destinations. Compileall and diff checks passed. AI-assisted with Codex.