VICTORY_SHOW_NEW_LATER=1: slots show a texture made while earlier lists run only once those ran (off)

Ported from Belobug/VIctory-Belobug-AMD 4cd2d13 and 91018a5, where it is on
by default. Every device loss with the texture pool in that fork's report
(n08, n11, n15, steps-ab2, start-3, a user's play-1125-2107 without ray
tracing) was a page fault at the first byte of a texture in a block made
that millisecond, its title slot changed "at once" (`mirror`) while lists
sent before read that slot by index; VICTORY_SHOW_AFTER covers only some
paths (a draw's table, the texture pass's own uploads). We run the pool.

With the switch, `HostHeap::mirror` holds a slot whose new view shows a
pooled texture made while a submission begun before it may still run
(`pool::begun_before`: the submissions begun when it was made, noted in
`pool::made_now`) on what it showed, or the neutral texture if that cannot
stand for it (`keep_shown`), and flips it when every such submission has
finished (`FLIPS`, `texture_slots_flip`); a slot held back is held once, not
again at each draw or pass that reads it (`NEW_PENDING`, 91018a5). A line
says how many slots were held back since the start (with the switch on).
Also an A/B switch in diag builds (VICTORY_AB).

Off by default (not behaviour-neutral: a slot shows its new texture one or
more submissions later); with it off, `made_now` notes nothing more than
before and nothing else changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
readmet3xt-labandClaude Opus 5.5 committed 2026-11-27 01:08:54 +05:30
1 parent 185bc4cc84
commit ee3fb5201a
3 files changed
+156 -4

No files matched your search

+7
View File
@@ -9192,6 +9192,13 @@ impl Meter {
parts[7].saturating_sub(due_by_memory + remade + due_list),
);
}
if crate::descriptor::host::show_new_later() {
tracing::info!(
"slots of textures made while lists sent before them ran, shown once those had run \
(VICTORY_SHOW_NEW_LATER=1), since the start: {}",
crate::descriptor::host::NEW_LATER.load(Ordering::Relaxed)
);
}
// The queue's lock by place (`crate::descriptor::queue_site`).
let lock = crate::descriptor::QUEUE_LOCK.each_ref().map(|row| row.each_ref().map(|n| n.swap(0, Ordering::Relaxed)));
let [taken, waited, held, skipped] = lock;