Commit Graph

4 Commits

Author SHA1 Message Date
c2d32249e6 image_bvh_census: fix v_cmpx/v_rcp/SDWA/CFG bugs and harden JSON I/O 2026-11-25 04:42:24 +01:00
70a0addc8b docs: point image_bvh_census at its --help usage line (#6573)
Squash-merged after diff review of PR #6573
2026-11-23 12:41:00 -06:00
a049544715 image_bvh_census: split some-paths reads by position, clear saved masks on inner back edges
The summary now says, per category, how many sites have a some-paths read
before the next call in program order and how many have them all after a
later call. strip() also drops the saved-mask SGPRs, so a mask saved in one
pass of an inner loop cannot place a read in the next. The docs quote the
split instead of guessing causes, name the integer mnemonics, and no longer
mention word 0 (the base field belongs to #3794).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 20:44:00 -07:00
0a49f5759e image_bvh_census: count image_bvh sites, descriptor fields and result-word reads
tools/image_bvh_census.py walks forward from every image_bvh*_intersect_ray
call and classifies each read of the four result words as ratio (divided by
word 1), high_half (sext(w1[31:16]) into v_mul_i32_i24), raw integer, raw
float, raw other or select, on every path or on some paths only. An EXEC lane
rule (narrowing, else-half of a saved mask, restores, join values) hides a
definition only when it can prove the read's lanes ran the overwrite or never
held the definition. The descriptor SGPRs are decoded into PAL sq_bvh_rsrc_t
fields. Counts, mnemonics and field values only; synthetic tests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 20:39:50 -07:00