GPU diagnostics: a black frame's trace keeps the draws that end the frame #1254
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1254
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1254"
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?
@EduAzevedo on GitHub · 2026-11-24 16:49 UTC · original
EduAzevedo:diag/black-frame-tail→main· +181 −18 · 2 files · 2 commits · openCloses #954 (the branch was posted there while PR creation was limited to collaborators).
Two commits on
ffe310e:2e2f167(this change) and83a8ec3by @andrewpozdnakov7-jpg, which marks the draw that actually failed instead of the latest trace entry (found by @DrDarkDK in #954).Why
The black-frame trace (
VICTORY_LOG=info,victory_gpu::draw=debug) kept a frame's first 256 draws. A world frame runs thousands, so the trace stopped in the geometry passes and never reached the lighting, composite and full-screen draws that end the frame, which is what a black picture (#850, #293) is about. In a run onintegration/testersevery black frame in the world was cut at 256 lines, all of them G-buffer mesh draws.What
... N draws not kept here (VICTORY_BLACK_FRAME_DRAWS raises the limit).VICTORY_BLACK_FRAME_DRAWS=<n>sets the limit (default 256, as before; at least 2). Documented in the README's diagnostics table.Tested
cargo test -p victory-gpu --lib: 55 passed, 0 failed, 1 ignored with both commits, including the newframe_trace_tests(a short frame is kept whole; a long frame keeps both ends and counts what was left out; an interleaved failure marks the draw that failed). No GPU needed.cargo clippy -p victory-gpu --all-targets -- -D warnings, with and without--features diagnostics: clean.cargo xtask policy: 154 files ok.ffe310e+ #493 + #189 + #206 with this commit,VICTORY_SHADER_LOOP_LIMIT=32. Two black frames in the first world minutes now read... 106 draws not kept hereand... 1,108 draws not kept here, followed by the frame's last 128 draws (shadow and 2560x1440 passes and their drops), which the old trace never showed.No game data in this PR. AI-assisted.
@Marvisak on GitHub · 2026-11-25 01:19 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-gpu/src/draw.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 07:10 UTC · original
I verified that this PR contains both
2e2f167and83a8ec3with their original authors. I reproduced the conflict in draw.rs against940d32f69b.Rebased branch keeps two separate commits on that exact main, 8d4bd0a by EduAzevedo and 7ee2387 by andrewpozdnakov7-jpg. The rebase keeps the current draw failure reasons, command-list notes and GPU tests. Compute failures without a trace entry still get their command-list note.
All five frame-trace tests passed, including the interleaved failure and the late or evicted entries. The full GPU suite on WARP passed 151 tests with two ignored. Strict GPU Clippy passed with and without diagnostics, and asset policy passed. This branch is ready to use for the head update.
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 17:32 UTC · original
I moved both commits to current main
13f91caee2. ae4af79 retains EduAzevedo as Git author. d1f4e1a retains andrewpozdnakov7-jpg. Fork branch · ae4af79 · d1f4e1aThe five trace tests pass. The ten-draw fixture keeps draws 0, 1, 8 and 9 with a six-draw omission line. With the old last-entry rule the interleaved test marks the second draw. The updated code marks the first draw that actually failed. The late failure case keeps the next frame's trace intact. Serial GPU suite on WARP passed with 203 passed and 1 ignored with both debug flag settings. Strict GPU Clippy and repository policy passed.
If you fold the attribution fix or its test into another commit, please preserve the Git author or add this trailer.
Co-authored-by: andrewpozdnakov7-jpg [email protected]
AI-assisted. Synthetic tests only.
@andrewpozdnakov7-jpg on GitHub · 2026-11-26 01:28 UTC · original
I refreshed the two commits onto main
63bcca43c6a00a758510398fa43096ce7e4f7df0. The only conflict was the README diagnostics table. The rebase retains the currentVICTORY_SKIP_PIPELINESwording and adds the draw trace setting.1dff808— trace retention, EduAzevedo6401ede— mark the draw that failed, andrewpozdnakov7-jpgIn six paired runs of the same synthetic interleaving test, restoring the old last-entry rule marked the second draw. The rebased code marked the first draw, which is the one that failed. All five frame-trace tests and the full Windows/WARP GPU suite passed (251 passed, 1 ignored). Strict GPU Clippy passed with and without diagnostics. I also checked that the rebased branch composes cleanly with #2666 at
13a2b92.If you carry over the second commit, please preserve its Git author. If you fold it into another commit, please add:
Co-authored-by: andrewpozdnakov7-jpg [email protected]
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.