PIN ref2va: verified device differential + ref-count gate (revert anchor)

Ref2VA ref-image conditioning verified on-device: ref step runs all steps no
fault; output differs ref-present vs ref-absent (by log). 6-9 images rejected
cleanly at submit (no engine crash). Merged-cell modulation (<=9) tracked next.
NOTE: placeholder author -- re-author before any push. Do NOT push this branch.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
gearwave00001andClaude committed 2026-10-19 12:04:47 -05:00
1 parent 816e24bd46
commit 490d4c604a
73 files changed
+16484 -432

No files matched your search

+15
View File
@@ -284,6 +284,21 @@ VideoPositionsFn rad_tools_video_positions(const LoadedPlugins& lp) {
return ap ? ap->arch_video_positions : nullptr;
}
VideoSegsFn rad_tools_video_segs(const LoadedPlugins& lp) {
const Plugin* ap = rad_tools_registry().plugin(lp.arch_plugin);
return ap ? ap->arch_video_segs : nullptr;
}
VideoPackFn rad_tools_video_pack(const LoadedPlugins& lp) {
const Plugin* ap = rad_tools_registry().plugin(lp.arch_plugin);
return ap ? ap->arch_video_pack : nullptr;
}
EncodeGeomFn rad_tools_encode_geom(const LoadedPlugins& lp) {
const Plugin* ap = rad_tools_registry().plugin(lp.arch_plugin);
return ap ? ap->arch_encode_geom : nullptr;
}
const RadAudioFormat* rad_tools_audio_format(const LoadedPlugins& lp, const RadModelMeta& meta) {
const Plugin* ap = rad_tools_registry().plugin(lp.arch_plugin);
if (!ap || !ap->arch_audio_format) return nullptr;
+16
View File
@@ -99,6 +99,22 @@ int rad_tools_text_prepare(const LoadedPlugins& plugins, int field, const std::s
using VideoPositionsFn = int64_t (*)(int, const RadVideoGeom*, float*, int64_t);
VideoPositionsFn rad_tools_video_positions(const LoadedPlugins& plugins);
/* The architecture plugin's video segment boundary table (rad_arch_video_segs), or null when it
* exports none -- the video driver then stages the plain table itself. */
using VideoSegsFn = int64_t (*)(const RadVideoGeom*, int32_t*, int64_t);
VideoSegsFn rad_tools_video_segs(const LoadedPlugins& plugins);
/* The architecture plugin's reference-aware sequence layout (rad_arch_video_pack), or null
* when it exports none -- the driver then refuses requests carrying VAE references. */
using VideoPackFn = int64_t (*)(const RadVideoGeom*, const int32_t*, int32_t*, int64_t, float*,
int64_t);
VideoPackFn rad_tools_video_pack(const LoadedPlugins& plugins);
/* The architecture plugin's encode-pass geometry (rad_arch_encode_geom), or null when it
* exports none -- the driver then runs no encode pass. */
using EncodeGeomFn = int64_t (*)(int32_t, const int64_t*, int32_t*, int64_t);
EncodeGeomFn rad_tools_encode_geom(const LoadedPlugins& plugins);
/* Run declare.
*
* `also` declares into the same builder after the architecture plugin, which is how the sampler