Replay: --skip-clamps and --batch-clamps read a capture's batched clamp passes (VICTORY_INDIRECT_BATCH, play.ps1's default) as plain ones #621
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#621
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@adrianmjim on GitHub · 2026-11-27 14:23 UTC · original
On a capture recorded with the settings of
scripts/play.ps1,victory replay --skip-clampsstops with an error that does not say what is wrong, and--batch-clampsruns but draws another picture. Both take the capture's clamp passes for unbatched ones; withVICTORY_INDIRECT_BATCH=2(whichplay.ps1sets, L21) they are already batched.Machine: RX 7900 XT (RDNA 3), driver 32.0.32029.2010, Windows 11 26300, a-publier
4eb6cfd, diag build with diagnostics. The replays ran on4eb6cfdplus #550, without which no replay of this capture loads on this card. One capture: a world frame of the opening sequence, Series S, recorded on4eb6cfdwithVICTORY_INDIRECT_BATCH=2(39 submissions, 274 lists, 1,024 pipelines).What happens
replay <capture> --skip-clamps --loops 3: no report, andError: clamp capture has no completed scratch transition in its command list.It is the same with #550 alone and with my other replay changes on top (#551 among them).
replay <capture> --batch-clamps --loops 3: it runs. The note says--batch-clamps: 118 clamp passes became 68, of 0 records, and the picture is 47.8 dB against the presented one. Runs of the recorded commands give 57.2-59.3 dB, or more in a run's first loop (172 loops in 15 runs).One run of each.
Why, by the code and the capture's
--listingmake_fromnames what it makesvictory: argument clamp(indirect.rs#L356), and it makes the plain clamp (L263) and the batched one (L559).keep_clamped(edit.rs#L220) waits for a source buffer to be moved to the indirect-argument state. The listing has 118 transitions to that state. All are of the 39 buffers bound at parameter 5 of a clamp pass (the arguments it writes), and none is of the 48 bound at parameter 3. So no clamp gets its copy, and the check at the end fails with the message above.--batch-clampsputs passes that are already batches into batches again. I did not trace what it then runs; "of 0 records" and the picture say it is not the same work.What it means
With
play.ps1's settings these two experiments cannot be used on a capture, and one of them fails without saying so.docs/replay.mddescribes--batch-clampsas doing whatVICTORY_INDIRECT_BATCHdoes, which suggests a capture recorded withVICTORY_INDIRECT_BATCH=0. I have not recorded one.Two ways I can see, and I can send a PR for either:
Not checked
VICTORY_INDIRECT_BATCH=0or=1.github-bot referenced this issue2026-11-27 15:14:16 +00:00