Archived
tests: regenerate abi_layout_table.h at ABI 24; complete abi_layout_rows.h
abi_layout_test has been red since 9d67df3 bumped RAD_ABI_VERSION to 24 without regenerating the snapshot, and the row file never listed Batch.sampler or any of the trailing debug fields (dbg_ve_*, dbg_dit_*, dbg_vd_* — 61 rows missing from the snapshot). Verified purely additive: no previously-listed field moved or changed size, both growths are fields past the old struct ends. kTableAbi 24. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
80b13b49d8
commit
5fb9dc92ad
3 files changed
+90
-6
No files matched your search
@@ -625,6 +625,7 @@ ABI_FIELD(RadVideoGenBatch, enc_geom_d)
|
||||
ABI_FIELD(RadVideoGenBatch, enc_kind)
|
||||
ABI_FIELD(RadVideoGenBatch, ref_tab)
|
||||
ABI_FIELD(RadVideoGenBatch, mod_cu)
|
||||
ABI_FIELD(RadVideoGenBatch, sampler)
|
||||
ABI_STRUCT(RadVideoGenDecl)
|
||||
ABI_FIELD(RadVideoGenDecl, name)
|
||||
ABI_FIELD(RadVideoGenDecl, tmpl)
|
||||
@@ -703,6 +704,30 @@ ABI_FIELD(RadVideoGenDecl, dbg_ve_l3)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_ve_l3_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_ve_l4)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_ve_l4_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_h0)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_h0_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_vel)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_vel_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_temb)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_temb_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_mod)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_mod_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_blk)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_blk_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_hn)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_hn_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_nout)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_dit_nout_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_vd_lat)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_vd_lat_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_vd_x0)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_vd_x0_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_vd_blk)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_vd_blk_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_vd_n)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_vd_n_bytes)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_vd_pix)
|
||||
ABI_FIELD(RadVideoGenDecl, dbg_vd_pix_bytes)
|
||||
ABI_STRUCT(RadVideoGeom)
|
||||
ABI_FIELD(RadVideoGeom, n_text)
|
||||
ABI_FIELD(RadVideoGeom, frames)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* abi_layout_table.h -- every abi/ struct's size and field offsets at RAD_ABI_VERSION 23 and
|
||||
/* abi_layout_table.h -- every abi/ struct's size and field offsets at RAD_ABI_VERSION 24 and
|
||||
* RAD_FORMAT_VER 2, as { type, field, offset, size } rows ("" is the struct itself). A snapshot
|
||||
* of the headers on x86-64 Linux, which abi_layout_test.cpp holds the layout to; regenerate it
|
||||
* from the test's printout only together with a version bump. */
|
||||
@@ -588,7 +588,7 @@
|
||||
{ "RadTunable", "n_values", 16, 4 },
|
||||
{ "RadTunable", "deflt", 24, 8 },
|
||||
{ "RadTunable", "doc", 32, 8 },
|
||||
{ "RadVideoGenBatch", "", 0, 248 },
|
||||
{ "RadVideoGenBatch", "", 0, 280 },
|
||||
{ "RadVideoGenBatch", "lane", 0, 4 },
|
||||
{ "RadVideoGenBatch", "geom", 4, 24 },
|
||||
{ "RadVideoGenBatch", "geom_d", 32, 8 },
|
||||
@@ -619,7 +619,11 @@
|
||||
{ "RadVideoGenBatch", "enc_channels", 232, 4 },
|
||||
{ "RadVideoGenBatch", "enc_slot", 236, 4 },
|
||||
{ "RadVideoGenBatch", "enc_geom_d", 240, 8 },
|
||||
{ "RadVideoGenDecl", "", 0, 352 },
|
||||
{ "RadVideoGenBatch", "enc_kind", 248, 4 },
|
||||
{ "RadVideoGenBatch", "ref_tab", 256, 8 },
|
||||
{ "RadVideoGenBatch", "mod_cu", 264, 8 },
|
||||
{ "RadVideoGenBatch", "sampler", 272, 4 },
|
||||
{ "RadVideoGenDecl", "", 0, 784 },
|
||||
{ "RadVideoGenDecl", "name", 0, 8 },
|
||||
{ "RadVideoGenDecl", "tmpl", 8, 8 },
|
||||
{ "RadVideoGenDecl", "max_text", 16, 8 },
|
||||
@@ -666,6 +670,61 @@
|
||||
{ "RadVideoGenDecl", "max_enc_samples", 336, 8 },
|
||||
{ "RadVideoGenDecl", "enc_ratio", 344, 4 },
|
||||
{ "RadVideoGenDecl", "ref_rows", 348, 4 },
|
||||
{ "RadVideoGenDecl", "max_ref_segs", 352, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_enca", 356, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_enca_bytes", 360, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_evc", 368, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_evc_bytes", 376, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ae_mp", 384, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ae_mp_bytes", 392, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ae_pre", 400, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ae_pre_bytes", 408, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ae_amb", 416, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ae_amb_bytes", 424, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_q2", 432, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_q2_bytes", 440, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_q48", 448, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_q48_bytes", 456, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_nout", 464, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_nout_bytes", 472, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_trunk", 480, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_trunk_bytes", 488, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_cin", 496, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_cin_bytes", 504, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_l0", 512, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_l0_bytes", 520, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_l1", 528, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_l1_bytes", 536, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_l2", 544, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_l2_bytes", 552, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_l3", 560, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_l3_bytes", 568, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_l4", 576, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_ve_l4_bytes", 584, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_h0", 592, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_h0_bytes", 600, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_vel", 608, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_vel_bytes", 616, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_temb", 624, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_temb_bytes", 632, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_mod", 640, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_mod_bytes", 648, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_blk", 656, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_blk_bytes", 664, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_hn", 672, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_hn_bytes", 680, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_nout", 688, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_dit_nout_bytes", 696, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_lat", 704, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_lat_bytes", 712, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_x0", 720, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_x0_bytes", 728, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_blk", 736, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_blk_bytes", 744, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_n", 752, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_n_bytes", 760, 8 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_pix", 768, 4 },
|
||||
{ "RadVideoGenDecl", "dbg_vd_pix_bytes", 776, 8 },
|
||||
{ "RadVideoGeom", "", 0, 24 },
|
||||
{ "RadVideoGeom", "n_text", 0, 4 },
|
||||
{ "RadVideoGeom", "frames", 4, 4 },
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Checked: a C translation unit (abi_c_test.c, strict C11) lays every struct out as C++ does; every
|
||||
* struct's listed fields account for its size, so the list in abi_layout_rows.h is complete; and
|
||||
* the layout agrees with the table below, taken at RAD_ABI_VERSION 23 and RAD_FORMAT_VER 2. Under
|
||||
* the layout agrees with the table below, taken at RAD_ABI_VERSION 24 and RAD_FORMAT_VER 2. Under
|
||||
* those versions a listed field may not move or change size, an ABI struct may only grow by fields
|
||||
* past its old end, and an on-disk struct may not change at all. The table is a snapshot of the
|
||||
* headers: nothing else states the layout. When it disagrees the test prints the live table.
|
||||
@@ -57,8 +57,8 @@ std::vector<Row> cpp_rows() {
|
||||
};
|
||||
}
|
||||
|
||||
/* The layout at RAD_ABI_VERSION 23 / RAD_FORMAT_VER 2 (see the file header). */
|
||||
constexpr uint32_t kTableAbi = 23, kTableFormat = 2;
|
||||
/* The layout at RAD_ABI_VERSION 24 / RAD_FORMAT_VER 2 (see the file header). */
|
||||
constexpr uint32_t kTableAbi = 24, kTableFormat = 2;
|
||||
const AbiRow kTable[] = {
|
||||
#include "abi_layout_table.h"
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user