venc debug: trunk shadow + GN-extent/temporal discriminators; localize #14 video gap to spatial trunk

Adds a fourth R4D_ENC_SEL=all shadow — the norm_out INPUT (v_lv[5].a, level-5 trunk) as an
f32 PERSIST cast twin (b_vtrunk), via a new trailing RadVideoGenDecl field dbg_ve_trunk (no ABI
bump) + layout rows + a 4-readback "all" slab (trunk|nout|q48|q2). ref_venc_parity.py gains
--evctrunk (whole-volume vs per-frame GroupNorm discriminator) and --expand/--zeropad (single-frame
temporal tests).

Device-anchored golden comparison on a 256x256 image exonerates, one by one: input normalization
(byte-identical affine + IMAGENET consts), norm_out (faithful, relFro 1.6e-3), GroupNorm extent
(device already per-frame; #20 closed), temporal handling (reference frame0 std flat 8.986 at N=1..17
under both replication and zero-padding vs device 4.40), a single multiplicative gain (nout differs
0.57 non-affinely after per-group norm => structural), and weight precision. The gap is a structural
~0.49x spatial-trunk deviation (conv_in/resnet/spatial-downsample), NOT confined/golden-fixable, so it
is documented precisely and left open — no shared-kernel edit. Host tier green.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
gearwave00001andClaude committed 2026-10-19 17:55:36 -05:00
1 parent 2acc0261ff
commit 1dc850d17f
6 files changed
+440 -17

No files matched your search

+8
View File
@@ -683,6 +683,14 @@ ABI_FIELD(RadVideoGenDecl, dbg_ae_pre)
ABI_FIELD(RadVideoGenDecl, dbg_ae_pre_bytes)
ABI_FIELD(RadVideoGenDecl, dbg_ae_amb)
ABI_FIELD(RadVideoGenDecl, dbg_ae_amb_bytes)
ABI_FIELD(RadVideoGenDecl, dbg_ve_q2)
ABI_FIELD(RadVideoGenDecl, dbg_ve_q2_bytes)
ABI_FIELD(RadVideoGenDecl, dbg_ve_q48)
ABI_FIELD(RadVideoGenDecl, dbg_ve_q48_bytes)
ABI_FIELD(RadVideoGenDecl, dbg_ve_nout)
ABI_FIELD(RadVideoGenDecl, dbg_ve_nout_bytes)
ABI_FIELD(RadVideoGenDecl, dbg_ve_trunk)
ABI_FIELD(RadVideoGenDecl, dbg_ve_trunk_bytes)
ABI_STRUCT(RadVideoGeom)
ABI_FIELD(RadVideoGeom, n_text)
ABI_FIELD(RadVideoGeom, frames)