Priority 0: Immediate (Blocks Everything)
shachi-validate (dc-lint + pvr-validate)
What: Two tools that catch hardware bugs before burning a disc. Why: Would have caught our TABLETS Underground Morton twiddle bug instantly. Sega never built this. Scope: ~500 lines total.
dc-lint.sh (~200 lines shell): - Scan source for
mixed pvr_prim() + pvr_dr_commit() in same
file - Flag MODULATEALPHA on opaque list - Check SQ
alignment - Check OPB sizes - Rules file grows with every new hardware
divergence
pvr-validate (~300 lines C): - Verify Morton twiddle bit order (Y-even, X-odd) - VQ codebook integrity (2048 bytes, 256 entries) - Mipmap chain completeness - Power-of-two dimensions (8-1024) - Pixel format flags vs actual data size - SmallVQ codebook size for texture dimensions
Integrate into Makefile: make validate before every
burn.