feat(replay): --bytes shows what a capture holds of a buffer #577
No reviewers
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/lobomfz--VIctory-xmem!577
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-577"
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?
@Serph91P on GitHub · 2026-12-05 11:13 UTC · original
Serph91P:feat/replay-bytes→main· +308 −2 · 3 files · 2 commits · openWhat this does
victory replay <capture> --bytes <resource>[:<at>:<bytes>]reads the capture's files alone: a buffer's contents at the frame's start and what the CPU had changed in it by each submission, each with how many dwords are not zero and the dwords of the window asked for, as hex and floats (48 at most). No device is made.It tells constants that were wrong in the title's bytes already from ones lost on the way to the card.
Ported by hand from the VIctory-7900XTX tree, where it was commit 8003422 on
secure-silicon/VIctory-7900XTX, branchfaces-and-replay-bytes, authored aslocal <local@localhost>(kept as co-author; the commit carries no other identity). Changed in the port: the window's text is checked, a texture is named as one instead of read as a buffer, and a piece the file does not hold all of is an error.Checks
docs/DIAGNOSTICS.md, "What a capture holds of a buffer".look.rs, so that it does not collide with the--flow-drawsPR.replay::play::look::tests::a_pieces_dwords_are_counted_and_shown,a_buffers_bytes_are_read_from_the_capture(a synthetic capture's files), andvictory replay::tests::a_buffers_window_is_read. They call functions that are new.mainat8bf4878(built and tested so).cargo xtask policypasses.Verified
Hardware and stack: RX 7900 XTX, the patched RADV 26.3.1 and vkd3d-proton that
./setup.shbuilds, Proton-CachyOS wine.cargo xtask policy: ok.cargo fmt --all --check: no new diffs againstmain(which has its own); clippy forvictory-gpuandvictorygives the same warning set asmain../build.shandPROFILE=diag ./build.sh: ok.PROFILE=diag PKG=victory-gpu ./build.sh test --lib -- replay::: 29 passed, 1 ignored.PROFILE=diag PKG=victory ./build.sh test -- replay: 3 passed.victory-gpulib suite (diag):descriptor::tests::views_die_with_their_resourceends the test process here onmaintoo (exit 5), so the whole suite was run serially without it: 396 passed, 7 failed, 24 ignored;main: 394 passed and the same 7 failed (2 inindirect::tests, 4 inwatch, 1 intimeline::report).victory.exe replay <capture> --bytes 23 --bytes 20:0:20 --bytes 12 --bytes 999on the capturetests/replay.rsrecords: the shared buffer's three changed pages by submission, the default-heap buffer's contents at the frame's start, "#12 'target' is a texture", "#999 is not in the capture".--bytes 12:40is refused with the form it wants.Cost
None outside
--bytes.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.