Merge local/next d4772b3

The check of fetched pieces (VICTORY_FETCH_CHECK) with the landing pool:
pieces are gathered and ordered as there; with the check whole pieces come
down and are hashed by the job that lands them. Off, the fetch is the
landing's own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-24 22:36:00 -06:00
commit c11b92e9ac
31 files changed
+5562 -538

No files matched your search

+18
View File
@@ -53,12 +53,21 @@ pub(crate) struct Replay {
/// Leave out the argument clamps: what they bound is kept from a first run.
#[arg(long)]
skip_clamps: bool,
/// The argument clamps in batches, as VICTORY_INDIRECT_BATCH does (2:
/// a wait before every indirect dispatch).
#[arg(long, num_args = 0..=1, default_missing_value = "1", default_value_t = 0)]
batch_clamps: u32,
/// Leave out the hash and compare passes over card buffers.
#[arg(long)]
skip_hash_passes: bool,
/// Where buffers lie.
#[arg(long, value_enum, default_value_t = Buffers::AsRecorded)]
buffers: Buffers,
/// With --buffers, only the buffers all of these match: `name=<text>`,
/// `min=<bytes>`, `max=<bytes>`, `seen=<No, Cached, Combined>`,
/// `id=<a>..<b>`, or `!` and one of those (may be given several times).
#[arg(long)]
only_buffers: Vec<String>,
/// One ExecuteCommandLists for the whole frame.
#[arg(long)]
one_submit: bool,
@@ -124,6 +133,9 @@ pub(crate) struct Replay {
/// capture's `shaders` folder.
#[arg(long)]
dump: Option<String>,
/// Only write the frame's buffers and the commands of these lists (`3..7`).
#[arg(long)]
listing: Option<String>,
/// Use the D3D12 debug layer (slow).
#[arg(long)]
debug_layer: bool,
@@ -144,6 +156,10 @@ pub(crate) fn run(r: Replay) -> Result<()> {
}
return Ok(());
}
if let Some(text) = &r.listing {
let lists = range(text).with_context(|| format!("--listing {text}"))?;
return play::listing(&r.folder, lists, &mut |line| println!("{line}"));
}
let only = match &r.only {
Some(text) => Some(
range(text)
@@ -162,9 +178,11 @@ pub(crate) fn run(r: Replay) -> Result<()> {
Buffers::Vram => play::Buffers::Card,
Buffers::Sysmem => play::Buffers::Pc,
},
only_buffers: r.only_buffers,
no_barriers: r.no_barriers,
merge_barriers: r.merge_barriers,
skip_clamps: r.skip_clamps,
batch_clamps: r.batch_clamps,
skip_hash_passes: r.skip_hash_passes,
one_submit: r.one_submit,
merge: !r.no_merge,
+6
View File
@@ -598,6 +598,12 @@ fn check(
if let Some(keep) = &checks.keep {
lock(keep).push((label(), shader.clone()));
}
// With `--list`: a hash of the module and of what the host binds for it,
// to show which shaders a change to the translator touches.
if t.list {
let hash = blake3::hash(format!("{shader:?}").as_bytes()).to_hex();
t.lines.push(format!("{} emitted {}", label(), &hash[..16]));
}
// `VICTORY_EMIT_DUMP` with `--list`: every emitted shader as a file.
if t.list
&& let Ok(dir) = std::env::var("VICTORY_EMIT_DUMP")